Hi,
I am trying to map a moderate set of reads, 30M, to a small set of genes I am interested in (only 5kb or so, to find snps). So most of the data is unmapped and redundant. I want bowtie2 to output only the mapped reads, it seems ridiculous to have a 15 Gb sam file for only a few hundred mapped reads. I have tried using --no-unal but it doesn't seem to make any difference. this works:
samtools view -F 0x04 -b infile.bam > outfile.bam
but it would seem to make much more sense to get bowtie2 to only output mapped reads.
Does anyone know what I might be doing wrong.. or perhaps I should give up and use bbmap..
Thanks,
S.
I am trying to map a moderate set of reads, 30M, to a small set of genes I am interested in (only 5kb or so, to find snps). So most of the data is unmapped and redundant. I want bowtie2 to output only the mapped reads, it seems ridiculous to have a 15 Gb sam file for only a few hundred mapped reads. I have tried using --no-unal but it doesn't seem to make any difference. this works:
samtools view -F 0x04 -b infile.bam > outfile.bam
but it would seem to make much more sense to get bowtie2 to only output mapped reads.
Does anyone know what I might be doing wrong.. or perhaps I should give up and use bbmap..
Thanks,
S.
Comment