-
Notifications
You must be signed in to change notification settings - Fork 127
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
Error because of large chromosomes #132
Comments
Hi @MargaridaMCM , this is interesting. I have never had to use these big chromosomes. Would you mind to make the changes and see what happens? I am not sure if all tools are compatible with this... |
Hi @lpantano - I ran dev forcing samtools to index using the CSI instead of the BAI index, and that solved the problem! The pipeline finished successfully, and all the expected output files were generated. I forced indexing using the CSI index by going to |
Closed via #391 |
Important! Template update for nf-core/tools v2.9
As part of the pipeline, Bowtie alignment files are indexed using samtools' BAI index. The problem is that the BAI index can only index chromosomes smaller than 512 Mbp. For larger chromosomes, a CSI index (also from samtools) needs to be used instead (it doesn't have a hardcoded limit).
The marsupial opossum's chromosomes 1 and 2 are larger than 512 Mbp. The same is true for other marsupials and several plants.
Would it be possible to update the pipeline to use a CSI index instead of a BAI index? I realise the answer depends on the downstream tools that use the .bai file. If the .bai file is only required for samtools own use, the fix would be straightforward (using option -c when indexing the bam file with samtools).
The text was updated successfully, but these errors were encountered: