Ask Your Question
0

When I try to add a BAM file to a project that already has several BAM files, I get this: "BAM file truncated (error code 3)" What causes this error? I see no list of error codes in the GH manual.

asked 2019-11-14 21:22:57 -0700

Whit Athey gravatar image

This error occurred during the computation of the BAI index.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-11-15 15:53:20 -0700

I believe that issues is simply that your BAM file is in fact truncated (corrupted).

BAM files are essentially a specific type of compressed gz file with a series of compressed chunks. When reading a file for indexing, we are reading the entire contents and following the internal structure. This error says a given chunk expected more bytes than the file contained, usually indicating that the BAM file was copied from some other location but not in its entirety.

Without a valid BAM file, we can't build an index and display it.

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

Follow
1 follower

Stats

Asked: 2019-11-14 21:22:57 -0700

Seen: 7 times

Last updated: Nov 15