View source: R/Script_01_1_PlotPSI_SE_PositiveStrand.R
PlotPSI.SE.Pos | R Documentation |
PlotPSI.SE.Pos
computes percent spliced-in (PSI) at each genomic coordinate for skipped-exon (SE) located on positive (forward) strand.
PlotPSI.SE.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 skipped-exon (SE) 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>
# Read sample metadata path_to_file <- system.file("extdata", "BAM_PhenoData_Small.txt", package="VALERIE") BamPheno <- read.table(path_to_file, sep="\t", header=TRUE, stringsAsFactors=FALSE) head(BamPheno) # Plot PlotPSI.SE.Pos( tran_id="chr18:82554580:82554750:+@chr18:82561778:82561855:+@chr18:82572825:82572926", Bam=system.file("extdata/BAM", package="VALERIE"), BamPheno=BamPheno, cell.types=c("Ctrl", "EAE"), min.coverage=10, cons.exon.cutoff=100, method="t.test", method.adj="bonferroni", cell.types.colors="ggplot.default", plot.title="Mbp", 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.