Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

FASTA error: invalid refId specified #13

Open
cegamorim opened this issue Feb 15, 2021 · 4 comments
Open

FASTA error: invalid refId specified #13

cegamorim opened this issue Feb 15, 2021 · 4 comments

Comments

@cegamorim
Copy link

Hi Gabriel,

I'm trying to run schmutzi.pl and I am getting the following error:

running cmd endoCaller  -seq b07_npred_1_endo.fa   -log b07_npred_1_endo.log  -name MT  -qual 0  -logindel 50  -deamread  -deam5p b07_npred_1_endo.5p.prof  -deam3p b07_npred_1_endo.3p.prof  -cont 0.205  -deam5pc b07_npred_1_cont.5p.prof  -deam3pc b07_npred_1_cont.3p.prof  -single   -seqc b07_npred_1_cont.fa   -logc b07_npred_1_cont.log  -namec MTc  -l 16569  ./refGenomes/MT.fa ../b07.mtDNA.sorted.calMD.bam 
Reading genome file ...
... done
Reading BAM file ...
FASTA error: invalid refId specified: 24
bamtools convert ERROR: pileup conversion - could not read reference base from FASTA file at chr 24 position 0
This can be normally solved by calling samtools' calmd on your bam file

I have already used samtools calmd. It looks like bamtools is referring to the mtDNA as "24" but in my BAM file it is "MT" and in the fasta file it is ">MT"; also the endoCaller command specifies " -name MT."

Do you know where is this refId being specified as 24? Could you please help me to fix this issue?

Thank you,

Eduardo

@grenaud
Copy link
Owner

grenaud commented Feb 15, 2021 via email

@cegamorim
Copy link
Author

Thanks for your prompt reply!
I subset the mt reads from a bigger BAm file aligned against the whole genome hg19.

@grenaud
Copy link
Owner

grenaud commented Feb 15, 2021 via email

@cegamorim
Copy link
Author

Awesome! Thank you so much!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants