Ask Your Question

error code 18

asked 2015-03-01 22:08:20 -0600

I am trying to view a BAM file in GenomeBrowse and I am getting error code 18. I have the whole genome as a fasta file downloaded from NCBI as the reference used to create the BAM file. I used the convert function to import that FASTA as the reference, and then opened the BAM and got the error.

What am I doing wrong?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2015-04-27 09:11:10 -0600

Hi Mike,

I am sorry you are having issues loading your BAM files for visualization in GenomeBrowse.

The "Error Code 18" message is an error that occurs when there is a mismatch between either the chromosome names or chromosome lengths that are listed in your converted reference sequence and the header lines of your BAM file.

If you click on the BAM file in the Plot Tree and then scroll to the bottom of the Console window you can see the values that are listed in your BAM file, it should look similar to the following where the SN values are the chromosome names and the LN values are the lengths of each region.

image description

This information needs to match what is listed in the genome assembly file that was created when you converted your FASTA file to a reference sequence source. If you go to Tools > Annotations Folder and then move up one folder level to the /CommonData/ folder you should see a folder called /Assemblies/, if you open the assembly file for your species and build in a text editor (Notepad++) you should see something like the following.

image description

If these values are different (aside from the extra “chr” in the chromosome name) then you will see the error message you reported. If it is the chromosome names that are different you can add additional names directly to the assembly file, for example like the following:

image description

Then just save your changes, close and reopen GenomeBrowse so it will recognize the changes and you should be good to go. If the length values are different then that is a more of an issue to change.

If you can provided screenshots of what you are seeing I may be able to provide further suggestions. Alternatively if you would be willing to share your BAM and FASTA file I can take a look directly at the data to see what may be going wrong.

Let me know how I can help you further.

Thanks, Jami…

edit flag offensive delete link more
Login/Signup to Answer

Questions should be tagged FeatureRequest for asking about a non-existing feature or proposing a new idea, GeneralInquiry for general questions about GenomeBrowse or directions on how to do something, or RanIntoProblem if you want to report an issue or had difficulty getting to an expected result.

Question Tools

1 follower


Asked: 2015-03-01 22:08:20 -0600

Seen: 286 times

Last updated: Apr 27 '15