Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with merging pacbio bam files #182

Closed
nspies opened this issue Nov 20, 2015 · 1 comment
Closed

Problems with merging pacbio bam files #182

nspies opened this issue Nov 20, 2015 · 1 comment

Comments

@nspies
Copy link

nspies commented Nov 20, 2015

I get this error:

sambamba-merge: BAM file is not coordinate-sorted: read 'm[??7?m??`??' must be before read 'm150209_042724_42177R_c100779832550000001823165208251590_s1_p0/101549/11999_40392' (at virtual offset 879295/0)

When I try to run this command:

sambamba merge test.bam BWA-MEM_Chr21_HG003_merged_11_12.sort.bam BWA-MEM_Chr22_HG003_merged_11_12.sort.bam

(Files from here: ftp://ftp-trace.ncbi.nih.gov//giab/ftp/data/AshkenazimTrio/HG004_NA24143_mother/PacBio_MtSinai_NIST/CSHL_bwamem_bam_GRCh37)

I'm not sure if there are problems with the read lengths from pacbio bams, but samtools merge works fine. sambamba view on the file merged from samtools works great.

@lomereiter
Copy link
Contributor

Thanks for reporting, that's indeed a serious bug. Somehow I totally forgot about existence of large reads when I was adding on-the-fly indexing feature — should work now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants