Hi,
I wonder how to display such a figure ( the green coverage). So how differntiate the sens coverage from the anti-sens coverage ? I search in IGV options but I didn't find anything ...
Thanks a lot
N.
Hi,
I wonder how to display such a figure ( the green coverage). So how differntiate the sens coverage from the anti-sens coverage ? I search in IGV options but I didn't find anything ...
Thanks a lot
N.
IGB bioviz.org) can display different strands data in different tracks. To separate plus and minus strand alignments into two tracks, select the track, select Annotation tab, and deselect the combine strand option ( +/- ) in the section labeled "Strand." It can also color-code the data by strand. Here's an image to illustrate:
https://www.dropbox.com/s/sp7zqat7r2n568u/SeparateStrands.png
As far as IGV is concerned, I believe that it does not have this feature (yet).
If you want to use other tools, the bioconductor package Gviz has an AlignedReadTrack
which plots stranded coverage data in a similar fashion to the green chunk of the image you posted above.
One simple way to do this on any visualization program it's just pre-filter the SAM/BAM by strand, and put the reads that aling to minus or plus strand in two different files. Then, you can visualize the coverage of both strand by separate.
make sure to use the right flag, and you can just use integers 16 in this case see http://picard.sourceforge.net/explain-flags.html
@Ann How can I show the strand-specific reads? This fig seems not a strand-specific alignment (both strand have almost the same reads).
If you have paired-end reads, then just splitting the BAM file into forward and reverse strand BAM files using samtools view
will NOT work. All this will do is place all forward 'mate' reads on the forward strand, and reverse mate reads on the reverse strand, which is not what you want. You want to know which paired-end ALIGNMENTS (not reads!) map to the forward strand, and which alignments map to the reverse strand. Unfortunately, this information is hard to extract from the BAM file, and IGV does not have this feature yet.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
One possible workaround would be to split the bam file by strand and load each separately.