Extract R1 and R2 from sam file generated by bowtie2
1
0
Entering edit mode
2.6 years ago
Ahmad ▴ 10

Hi every one

How to extract R1 and R2 from sam file generated by bowtie2 ?

sam bowtie2 samtools bam • 1.1k views
ADD COMMENT
0
Entering edit mode

What do you mean by "extract R1 and R2"? Do you want to extract the paired mapped reads? In fasta or fastq format?

ADD REPLY
0
Entering edit mode

yes, I need spilt the sam file into R1 and R2 to make re- alignment

ADD REPLY
1
Entering edit mode

I recommend you to search a bit through biostars questions, since it has been asked before (Sam to fastq). There are many tools that can do this job, personally I use Picard SamToFastq ( see here), but there are many nice other alternatives such as bbmap.

ADD REPLY
0
Entering edit mode
2.6 years ago
kanika.151 ▴ 160

A combination of two tools can be used to achieve this: gatk PrintReads and picard RevertSam.

ADD COMMENT

Login before adding your answer.

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