Problem with samtools view - retrieving reads mapped to a region
1
0
Entering edit mode
5.9 years ago
MarVi ▴ 30

Hello all,

I would like to know if someone knows what is causing this message when I am using samview in order to retrieve all the reads that are falling in that region?

[main_samview] region "chr2:63209526-63209337" could not be parsed. Continue anyway.

I am using this command :

samtools view $aligmentFile $region  | cut -f1

Where $aligmentFile is my bam file and the $region is one of the several regions that I want to retrieve the reads.

For some regions, it works fine, but I have this message for several of them.

Thanks in advance for your responses,

RNA-Seq sequence software error • 3.7k views
ADD COMMENT
0
Entering edit mode

Can you post the complete command you are using?

ADD REPLY
0
Entering edit mode

Oh sure!! Sorry, I forgot. It is done now.

ADD REPLY
0
Entering edit mode

samview

So, like, samtools view.

ADD REPLY
0
Entering edit mode

Hello Marvi,

make sure you have a chr2. I guess your chromosome names are not prefixed with chr. So the name is just 2.

fin swimmer

ADD REPLY
4
Entering edit mode
5.9 years ago

chr2:63209526-63209337

The begin of your interval is larger than the end, so that interval is invalid.

ADD COMMENT
0
Entering edit mode

Oohhh! So sorry I didn't pay attention to that!! My bad. So, thank you very much!!! and so sorry again.

ADD REPLY
0
Entering edit mode

Haha yeah it's obvious as soon as you see it, but can be very puzzling :)

ADD REPLY

Login before adding your answer.

Traffic: 1593 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