Closed dingailuma closed 6 years ago
Reads are usually aligned independently (unpaired) and then filtered downstream. You can discard pairs like this with either samtools
samtools view -bf 0x2 in.bam > properly_paired.bam
or even using methratio.py from this repository
methratio.py -p in.bam > out.txt
You should also consider filtering out non-unique alignments. You can read more about sam/bam flags at http://www.samformat.info/sam-format-flag or the main samtools documentation page.
Thank you so much !
Hi, Recently I've tried using bsmap to align bisulfite sequencing data, I found something I can't understand when looking at the output bam file:
Above is from the bam file cut, could you please explain why in the same line of bam, different chromosomes appear ? In my understanding, read1 and read2 should be on the same chromosome, is that right ? Thank you so much !