I have bam files (3 IP and 3 input) from a RIP-seq experiment. I need to split each unique mapped reads bam file based on read strand in order to calculate then strand-specific read coverage along human genome.
you can use the flags in the bam files to extract the reads mapping in sense/antisense. Let's assume that you have single-end reads and you want the reads mapping in the positive strand, you can use this command:
You can look at this website to see the flags corresponding to different combinations of mapping features: https://broadinstitute.github.io/picard/explain-flags.html
you can use the flags in the bam files to extract the reads mapping in sense/antisense. Let's assume that you have single-end reads and you want the reads mapping in the positive strand, you can use this command:
You can look at this website to see the flags corresponding to different combinations of mapping features: https://broadinstitute.github.io/picard/explain-flags.html