You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am using samtools to get coverage for each chromosome and some specific region.
Here is the code: samtools coverage -r chr1:1M-12M /Users/lyn/seq_data/WGSdata/tumor_sample_raw_data/Bam/CN9R1_1.final.bam
and error looks like this:
samtools coverage: Failed to parse region "chr1:1M-12M": No such file or directory
I wonder if the problem comes from how I write the specific region? Thanks!
The text was updated successfully, but these errors were encountered:
The most probable cause is that chr1 does not exist as a contig name in the BAM file header. You can inspect all the contig names with the following command (assuming SN is the 2nd column) :
Hello,
I am using samtools to get coverage for each chromosome and some specific region.
Here is the code:
samtools coverage -r chr1:1M-12M /Users/lyn/seq_data/WGSdata/tumor_sample_raw_data/Bam/CN9R1_1.final.bam
and error looks like this:
I wonder if the problem comes from how I write the specific region? Thanks!
The text was updated successfully, but these errors were encountered: