library(devtools)
install_github("wenweixiong/VALERIE")
library(VALERIE)
tran_id
argument. For detailed information of splicing nomenclature, please visit https://wenweixiong.github.io/Splicing_Nomenclature.PlotPSI
. Please launch the help page to get more information on each of the function’s argument.?PlotPSI
Only two input files are required: | (1) Bam
. This folder contains the BAM files and their corresponding index files. | (2) BamPheno
. This is the sample metadata. Mandatory columns are bam.file.name
and cell.type
. Character strings under bam.file.name
should match those in the Bam
folder.
# Read sample metadata
path_to_file <- "Data/BAM_PhenoData.txt"
BamPheno <- read.table(path_to_file, sep="\t", header=TRUE, stringsAsFactors=FALSE)
head(BamPheno)
## bam.file.name sample.id cell.type sample.type
## 1 ERR1562083.Aligned.sortedByCoord.out.bam ERR1562083 Unknown Single Cell
## 2 ERR1562083.Aligned.sortedByCoord.out.bam.bai ERR1562083 Unknown Single Cell
## 3 ERR1562084.Aligned.sortedByCoord.out.bam ERR1562084 iPSC Single Cell
## 4 ERR1562084.Aligned.sortedByCoord.out.bam.bai ERR1562084 iPSC Single Cell
## 5 ERR1562085.Aligned.sortedByCoord.out.bam ERR1562085 iPSC Single Cell
## 6 ERR1562085.Aligned.sortedByCoord.out.bam.bai ERR1562085 iPSC Single Cell
## qc.seq
## 1 pass
## 2 pass
## 3 pass
## 4 pass
## 5 pass
## 6 pass
# Plot
PlotPSI(
tran_id="chr15:24962114:24962209:+@chr15:24967029:24967152:+@chr15:24967932:24968082",
event.type="SE",
strand="positive",
Bam="Data/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="Data/Plots/SNRPN.pdf"
)
## [1] "Reading in BAM files..."
## [1] "Computing PSI..."
## [1] "Plotting..."
include_graphics("Data/Plots/SNRPN.pdf")
# Read sample metadata
path_to_file <- "Data/BAM_PhenoData.txt"
BamPheno <- read.table(path_to_file, sep="\t", header=TRUE, stringsAsFactors=FALSE)
# Plot
PlotPSI(
tran_id="chr9:35685269:35685339:-@chr9:35685064:35685139:-@chr9:35684732:35684807:-@chr9:35684488:35684550",
event.type="MXE",
strand="negative",
Bam="Data/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="TPM2",
plot.width=5,
plot.height=8,
plot.out="Data/Plots/TPM2.pdf"
)
## [1] "Reading in BAM files..."
## [1] "Computing PSI..."
## [1] "Plotting..."
include_graphics("Data/Plots/TPM2.pdf")
# Read sample metadata
path_to_file <- "Data/BAM_PhenoData.txt"
BamPheno <- read.table(path_to_file, sep="\t", header=TRUE, stringsAsFactors=FALSE)
# Plot
PlotPSI(
tran_id="chr8:98045550:98045508:-@chr8:98045399:98045347",
event.type="RI",
strand="negative",
Bam="Data/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="RPL30",
plot.width=5,
plot.height=8,
plot.out="Data/Plots/RPL30.pdf"
)
## [1] "Reading in BAM files..."
## [1] "Computing PSI..."
## [1] "Plotting..."
include_graphics("Data/Plots/RPL30.pdf")
# Read sample metadata
path_to_file <- "Data/BAM_PhenoData.txt"
BamPheno <- read.table(path_to_file, sep="\t", header=TRUE, stringsAsFactors=FALSE)
# Plot
PlotPSI(
tran_id="chr8:144792587:144792245|144792366:-@chr8:144791992:144792140",
event.type="A5SS",
strand="negative",
Bam="Data/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="RPL8",
plot.width=5,
plot.height=8,
plot.out="Data/Plots/RPL8.pdf"
)
## [1] "Reading in BAM files..."
## [1] "Computing PSI..."
## [1] "Plotting..."
include_graphics("Data/Plots/RPL8.pdf")
# Read sample metadata
path_to_file <- "Data/BAM_PhenoData.txt"
BamPheno <- read.table(path_to_file, sep="\t", header=TRUE, stringsAsFactors=FALSE)
# Plot
PlotPSI(
tran_id="chr1:171512032:171512200:+@chr1:171512995|171513001:171513172",
event.type="A3SS",
strand="positive",
Bam="Data/BAM/",
BamPheno=BamPheno,
cell.types=c("iPSC", "Endoderm"),
min.coverage=10,
cons.exon.cutoff=25,
method="ks",
method.adj="bonferroni",
cell.types.colors="ggplot.default",
plot.title="PRRC2C",
plot.width=5,
plot.height=8,
plot.out="Data/Plots/PRRC2C.pdf"
)
## [1] "Reading in BAM files..."
## [1] "Computing PSI..."
## [1] "Plotting..."
include_graphics("Data/Plots/PRRC2C.pdf")
Our paper on VALERIE has been published in PLoS Computational Biology journal (Wen et al., 2020).