modkit icon indicating copy to clipboard operation
modkit copied to clipboard

Zero reads in index error

Open setshabaTaukobong opened this issue 1 year ago • 5 comments

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

setshabaTaukobong avatar Jun 19 '24 11:06 setshabaTaukobong

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 avatar Jun 19 '24 21:06 ArtRand

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?

setshabaTaukobong avatar Jun 25 '24 11:06 setshabaTaukobong

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 avatar Jun 25 '24 21:06 ArtRand

@setshabaTaukobong any luck?

ArtRand avatar Jul 01 '24 16:07 ArtRand

I ran into the same issue and this solution helped. Thanks.

courtnicles avatar Nov 13 '24 18:11 courtnicles