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

"The sequence "chr1" was not found" #48

Closed
selasphoruskershaw opened this issue Jan 28, 2021 · 1 comment
Closed

"The sequence "chr1" was not found" #48

selasphoruskershaw opened this issue Jan 28, 2021 · 1 comment

Comments

@selasphoruskershaw
Copy link

Hello,

I'm trying to follow the msmc tutorial to prepare my data for msmc2. However, I am receiving the following error:
"[E::faidx_adjust_position] The sequence "chr1" was not found"

I am using the following command:

samtools mpileup -q 20 -Q 20 -C 50 -u -r chr1 -f ragtag.scaffolds.fasta s2800_chr.bam | bcftools call -c -V indels | ~/Swallows/msmc2/msmc-tools/bamCaller.py 12 out_mask.bed.gz | gzip -c > out.s2800.vcf.gz

I get the following message:
[warning] samtools mpileup option u is functional, but deprecated. Please switch to using bcftools mpileup in future.
Note: none of --samples-file, --ploidy or --ploidy-file given, assuming all sites are diploid
[mpileup] 1 samples in 1 input files

Then the following repeats over and over again:
"[E::faidx_adjust_position] The sequence "chr1" was not found"

If you could please help me get this running I'd greatly appreciate it!

@stschiff
Copy link
Owner

I think the error message is pretty clear. It seems you're trying to run samtools mpileup queuing a chromosome that doesn't exist in your BAM file.

@stschiff stschiff closed this as completed Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants