Fail to determine the sequence name
1
0
Entering edit mode
8.3 years ago
zwang10 ▴ 30

I am new to BAM file and samtools. I want to extract part of bam file by

samtools view _SRA_RUN_AUTO_ARCHIVE_TEST_vault_EGAR00001003032_5499_1.bam "Chr5:18000-45500" > output.bam

But I got

[bam_parse_region] fail to determine the sequence name.
[main_samview] region "Chr5:18000-45500" specifies an unknown reference name. Continue anyway.

What happened?

bam samtools • 3.3k views
ADD COMMENT
0
Entering edit mode

Hello zwang10!

It appears that your post has been cross-posted to another site: http://seqanswers.com/forums/showpost.php?p=187067&postcount=1

This is typically not recommended as it runs the risk of annoying people in both communities.

ADD REPLY
0
Entering edit mode
8.3 years ago

chech there is a really a Chr5 (case sensitive) in the bam by printing the header:

samtools view -H _SRA_RUN_AUTO_ARCHIVE_TEST_vault_EGAR00001003032_5499_1.bam
ADD COMMENT

Login before adding your answer.

Traffic: 3208 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6