View source: R/Script_01_5_PlotPSI_RI_PositiveStrand.R
| PlotPSI.RI.Pos | R Documentation | 
PlotPSI.RI.Pos computes percent spliced-in (PSI) at each genomic coordinate for retained-intron (RI) located on positive (forward) strand.
PlotPSI.RI.Pos( tran_id, Bam, BamPheno, cell.types, min.coverage, cons.exon.cutoff, method, method.adj, sig.pval = 0.1, cell.types.colors, plot.title, plot.width, plot.height, plot.out, track = TRUE, nboots = 2000, show.mean.ci = TRUE )
tran_id | 
 Character string. Splicing event nomenclature.  | 
Bam | 
 Character string. Path to folder where the BAM files and their corresponding index files are located.  | 
BamPheno | 
 object of class data.frame. Mandatory columns are   | 
cell.types | 
 Character string. Cell types to plot. Should be the same number of cell groups or less than the   | 
min.coverage | 
 Numeric value. Coverage (Total reads) threshold below which the PSI value of the genomic coordinate is annotate as missing value, i.e. no coverage.  | 
cons.exon.cutoff | 
 Numeric value. Limit the number of bases to plot for the constitutive exons. This allow users to focus the plots on the alternative exon.  | 
method | 
 Character string. Statistical test to compare the PSI values across the different cell types.   | 
method.adj | 
 Character string. Adjust p-values for multiple testing. Options available as per   | 
sig.pval | 
 Numeric value. Adjust p-value, below which, the p-value is considered statistically significant.  | 
cell.types.colors | 
 Character string. Legend colors for each cell type. Should be of same length as   | 
plot.title | 
 Character string. Main title for plot. Examples are gene ID, gene names, splicing ID etc..  | 
plot.width | 
 Numeric value. Width of plot.  | 
plot.height | 
 Numeric value. Height of plot.  | 
plot.out | 
 Character string. Path to folder to output plot.  | 
track | 
 Logical. If set to   | 
nboots | 
 Numeric value. When   | 
show.mean.ci | 
 Logical value. If set to   | 
This function computes percent spliced-in (PSI) at each genomic coordinate for retained-intron (RI) located on positive (forward) strand. Formula for computing PSI is number of reads with non-N CIGAR operation divided by the total number of reads. Total number of reads is the sum of reads with non-N CIGAR operation and reads with N-CIGAR operation
A plot in PDF format located in the folder specified by plot.out argument.
Sean Wen <sean.wenwx@gmail.com>
# DO NOT RUN
PlotPSI.RI.Pos(
 tran_id="chr19:12943713:12943805:+@chr19:12943854:12943988",
 Bam="/Users/BAM/",
 BamPheno=BamPheno,
 cell.types=c("iPSC", "Endoderm"),
 min.coverage=10,
 cons.exon.cutoff=100,
 method="ks",
 method.adj="bonferroni",
 cell.types.colors="ggplot.default",
 plot.title="SNRPN",
 plot.width=5,
 plot.height=8,
 plot.out=paste(tempdir(), "Plot.pdf", sep="")
 )
 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.