Entering edit mode
6.8 years ago
MAPK
★
2.1k
Hi, I have a fasta sequence to which I have aligned a fastq file using bowtie and got a BAM file. I need to extract all the reads in fastq file that aligned to my fasta sequence. Can I just extract all the reads from the BAM file I got from bowtie alignment in this case? Please suggest me if I should be doing something different. Thanks!
Thanks Devon. Since I will be extracting all the aligned reads from bam file, I had to use this command:
samtools fasta input.bam -F 4 > output.fasta