exonTrack | R Documentation |
igvR
(per exon)
This function outputs a list of GRanges
format objects of
ribosome P-site footprints per exon, as well as corresponding test results.
It can be used for igvR
visualization.
exonTrack(data, gene)
data |
Data object from |
gene |
One gene for visualization at a time, since different genes have different number of transcripts. |
R package igvR
is not implemented in RiboDiPA
. Users need install
igvR
through Bioconductor or relevant source package. A simple
illustration example of how to use it for igvR
visualization is given
below.
A list of lists. Each element is a list of GRanges
objects representing
replicates. Each second level list element is P-site footprint count per exon
with differential pattern test results in a transcript.
data(result.exon)
tracks.exon <- exonTrack(data = result.exon, gene = "tY(GUA)D")
# library(igvR)
# igv <- igvR()
# setBrowserWindowTitle(igv, "ribosome footprint per exon example")
# setGenome(igv, "saccer3")
# for(track.name in names(tracks.exon)){
# track.rep <- tracks.exon[[track.name]]
# for(tx.name in names(track.rep)){
# track.tx <- tracks.exon[[track.name]][[tx.name]]
# track <- GRangesQuantitativeTrack(trackName =
# paste(track.name, tx.name), track.tx[,1], color = track.name)
# displayTrack(igv, track)
# }
# }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.