samtools + map
1
0
Entering edit mode
10.6 years ago
elfeusilva • 0

I did a mapping in bowtie2 using paired-end reads. Suppose I have R1 and R2. When R1 and R2 I have a mapped properly paired, correct? I can to identify which of the R (R1 or R2) were mapped?

Thank you very much.

properly-paired samtools bowtie singletons • 2.8k views
ADD COMMENT
0
Entering edit mode

It is really hard to understand what exactly you are trying to ask. Kindly rewrite your question.

ADD REPLY
0
Entering edit mode

I would like to make a subset with only singletons reads. What parameter I use in samtools to retrieve only the singletons?

ADD REPLY
0
Entering edit mode

singletons: uniquely mapped reads?

ADD REPLY
2
Entering edit mode
10.6 years ago

If you want singletons then samtools view -F 4 -f 8 foo.bam will print them out. The flags indicate that the current read is mapped but its mate isn't. To identify which of the reads this is, look at the 0x40 and 0x80 bits. If you wanted, you could combine those with the aforementioned command to get only singletons from read #1 or #2.

ADD COMMENT

Login before adding your answer.

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