Create a Plot of Exon Usage from Exon-Level Count Data
Create a plot of exon usage for a given gene by plotting the (un)transformed counts for each exon, coloured by experimental group.
plotExonUsage(y, geneID, group=NULL, transform="none", counts.per.million=TRUE, legend.coords=NULL, ...)
y |
either a matrix of exon-level counts, a list containing a matrix of counts for each exon or a |
geneID |
character string giving the name of the gene for which exon usage is to be plotted. |
group |
factor supplying the experimental group/condition to which each sample (column of |
transform |
character, supplying the method of transformation to be applied to the exon counts, if any. Options are |
counts.per.million |
logical, if |
legend.coords |
optional vector of length 2 giving the x- and y-coordinates of the legend on the plot. If |
... |
optional further arguments to be passed on to |
This function produces a simple plot for comparing exon usage between different experimental conditions for a given gene.
plotExonUsage
(invisibly) returns the transformed matrix of counts for the gene being plotted and produces a plot to the current device.
Davis McCarthy, Gordon Smyth
spliceVariants
for methods to detect genes with evidence for alternative exon usage.
# generate exon counts from NB, create list object y<-matrix(rnbinom(40,size=1,mu=10),nrow=10) rownames(y) <- rep(c("gene.1","gene.2"), each=5) d<-DGEList(counts=y,group=rep(1:2,each=2)) plotExonUsage(d, "gene.1")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.