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

Merging pre-sorted BAM files: is sorting merged bam needed again? #266

Closed
terrymun opened this issue Jan 14, 2017 · 2 comments
Closed

Merging pre-sorted BAM files: is sorting merged bam needed again? #266

terrymun opened this issue Jan 14, 2017 · 2 comments

Comments

@terrymun
Copy link

Thanks for the amazing tool! I have a question and it isn't immediately clear from the documentation for sambamba merge:

sambamba merge is used for merging several sorted BAM files into one. The sorting order of all the files must be the same, and it is maintained in the output file.

Does that mean that if I am using a list of sorted BAM files for merging using sambamba, I do not have to re-sort the merged BAM file?

@lomereiter
Copy link
Contributor

Yep, that's right. FYI, in CS jargon 'merge' almost always refers to the https://en.wikipedia.org/wiki/Merge_algorithm, in this case K-way merging.

@terrymun
Copy link
Author

terrymun commented Jan 14, 2017

Thanks for the clarification 👍

p/s: I'm extremely impressed by the speed and efficiency of sambamba, thanks again for the amazing work.

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