Entering edit mode
7.2 years ago
teresayahu
•
0
I am using samtools function mpileup to get reads in sites. The command I used is:
samtools mpileup -l hg19.position -f hg19.fa -Q 20 -q 20 -I file.bam
in the command, hg19.position is position-based site file.
When running these is an error printed on screen: ...
[E::faidx_fetch_seq] The sequence "1" not found
[E::faidx_fetch_seq] The sequence "1" not found
[E::faidx_fetch_seq] The sequence "1" not found
[E::faidx_fetch_seq] The sequence "1" not found
[E::faidx_fetch_seq] The sequence "1" not found
[E::faidx_fetch_seq] The sequence "1" not found
...
May I ask the reason of this error and how could I fix it? Thanks! Ya
Have you indexed the hg19.fa file using the same version of
samtools
as per your command above and using thesamtools faidx
command?I tried the index command you suggested,
After pressing Enter there's a few second pause, followed by a new line:
... Does this mean the fa file is now indexed?
If so, why do I keep getting the same error, "[E::faidx_fetch_seq] The sequence "1" not found", when executing my initial command:
Thanks for any help,
For added context, here's a view of some lines from the BAM file using the samtools view H command:
I would say you're bam or your reference using the 'chr1' notation, not just '1'
Thanks! both the bam and reference files are using the '1'. Is there a way that I can change bam notation from '1' to 'chr1'?
Please use
ADD COMMENT/ADD REPLY
when responding to existing posts to keep threads logically organized.what about hg19.position ??