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

Zero reads in index error #211

Open
setshabaTaukobong opened this issue Jun 19, 2024 · 4 comments
Open

Zero reads in index error #211

setshabaTaukobong opened this issue Jun 19, 2024 · 4 comments
Labels
troubleshooting workflow and data preparation questions

Comments

@setshabaTaukobong
Copy link

Good day,

I am trying to detect base modifications but I keep getting a specific error.
I basecalled using the Promethion instrument and got multiple bam files.

I then merged these bam files using the following command:
samtools merge merged.bam *.bam

I then proceeded to sort and index the final file.
From there I used the following command:
modkit pileup Final.bam pileup.bed --log-filepath pileup.log
I however get this error:
calculated chunk size: 6, interval size 100000, processing 600000 positions concurrently
attempting to sample 10042 reads
Error! zero reads found in bam index

Could I please get some assistance on how to solve this?
Thank you

@ArtRand
Copy link
Contributor

ArtRand commented Jun 19, 2024

Hello @setshabaTaukobong,

Did you run alignment concurrently with basecalling? To run modkit pileup you need to have reads aligned to a reference. You can inspect the base modifications on a read level with modkit extract and modkit summary.

@ArtRand ArtRand added the troubleshooting workflow and data preparation questions label Jun 19, 2024
@setshabaTaukobong
Copy link
Author

Hi @ArtRand
thank you so much for getting back to me.
So just so understand, I would have to provide the sequencing machine with a reference file during basecalling?

@ArtRand
Copy link
Contributor

ArtRand commented Jun 25, 2024

Hello @setshabaTaukobong,

You can perform alignment during basecalling by providing a reference, or if you've already basecalled the reads I would align them to the reference using dorado aligner. I would not re-basecall the reads if you don't have to - just align them. Unless, of course, you want to use a different basecalling or modified base model.

@ArtRand
Copy link
Contributor

ArtRand commented Jul 1, 2024

@setshabaTaukobong any luck?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
troubleshooting workflow and data preparation questions
Projects
None yet
Development

No branches or pull requests

2 participants