Entering edit mode
2.4 years ago
Ahmad
▴
10
Hi every one
How to extract R1 and R2 from sam file generated by bowtie2 ?
Hi every one
How to extract R1 and R2 from sam file generated by bowtie2 ?
A combination of two tools can be used to achieve this: gatk PrintReads and picard RevertSam.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
What do you mean by "extract R1 and R2"? Do you want to extract the paired mapped reads? In fasta or fastq format?
yes, I need spilt the sam file into R1 and R2 to make re- alignment
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 asbbmap
.