Hi,
I am aligning several different sets ChIP-Seq data from an illumina hiseq2500 with bowtie and have found that all the mapped reads are unique when I run SAMTOOLS. This seems a little suspicious.
This is what I have done so far:
mapped with bowtie:
./bowtie-0.12.7/bowtie -S --fr -p 6 --un unaligned.fastq \
mm9 \
sample.fastq \
accepted_hits.sam 2>filter.bowtie.err
extract the mapped reads with samtools:
/share/apps/samtools/samtools view -Sb -F 4 accepted_hits.bam > mapped.bam
extract the unique reads:
samtools view -b -q 255 mapped.bam >unique.bam
also tried
samtools/samtools view -b -q 1 mapped.bam >unique.bam
The files where exactly the same for for the mapped.bam and the unique.bam either why I tried it. I then tried to use the bowtie flag -m 10 to include only unique reads and found that this was indeed smaller than my original mapping without the -m 10 flag. Mapping twice however wouldn't be a practical solution as I need to take extract the unique reads out later on.
I would appreciate any feedback on what may be causing all the mapped reads to be considered unique when I run samtools.
I am aligning several different sets ChIP-Seq data from an illumina hiseq2500 with bowtie and have found that all the mapped reads are unique when I run SAMTOOLS. This seems a little suspicious.
This is what I have done so far:
mapped with bowtie:
./bowtie-0.12.7/bowtie -S --fr -p 6 --un unaligned.fastq \
mm9 \
sample.fastq \
accepted_hits.sam 2>filter.bowtie.err
extract the mapped reads with samtools:
/share/apps/samtools/samtools view -Sb -F 4 accepted_hits.bam > mapped.bam
extract the unique reads:
samtools view -b -q 255 mapped.bam >unique.bam
also tried
samtools/samtools view -b -q 1 mapped.bam >unique.bam
The files where exactly the same for for the mapped.bam and the unique.bam either why I tried it. I then tried to use the bowtie flag -m 10 to include only unique reads and found that this was indeed smaller than my original mapping without the -m 10 flag. Mapping twice however wouldn't be a practical solution as I need to take extract the unique reads out later on.
I would appreciate any feedback on what may be causing all the mapped reads to be considered unique when I run samtools.
Comment