-
Notifications
You must be signed in to change notification settings - Fork 27
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
samtools sort #404
Comments
Yes I am aware. However I think the issue is that some assemblies consist of many many many contigs, and that blows up in memory. But that is from memory ( +/- a year ago). I will leave this open, and test again. You can already use sambamba as a sorter, but ... ofcourse there are minor differences in the way they sort. Samtools & sambamba sort slightly different on read names (not coordinates, and not sure anymore on what, but think about order of capital letters), which makes some tools very unhappy. So I decided that every downstream tool MUST use the samtools-coordinate sorted bam, since I never had troubles with those. If you only do alignment, then you can choose the sort_order (coordinate/queryname) and sorter (samtools/sambamba). |
Ah, sounds reasonable. I suspected there might be a good reason. In any case, it might be good to have the |
Note for instance that genrich specifically uses sambamba-queryname sorted bams, this is because it explodes when you give it samtools-queryname sorted bams. This means that during some workflows two versions of the same bam exist, but they differ just by sorters/sort orders. See for instance: biod/sambamba#132.
Yes, will do |
seq2science/seq2science/rules/alignment.smk
Line 302 in cf045b3
Have you tried / benchmarked setting larger memory for
samtools sort
(-m 4G
)? With the defautl settingssamtools sort
generates many small files for sorting. I think this can slow down the process. An alternative is alsosambamba
which seems to sort faster (at least, the last time I looked at it).The text was updated successfully, but these errors were encountered: