APABox | R Documentation |
APA RED Box plotting
APABox (df, xlab = "APAreg", ylab = "RED",
plot_title = NULL)
df |
a dataframe of APAdiff output |
xlab |
lable of x-axis, default is 'APAreg' |
ylab |
lable of y-axis, default is 'RED' |
plot_title |
Main title of plot |
The function APABox
return a Box plot.
Ruijia Wang
library("TBX20BamSubset")
library("Rsamtools")
flsall = getBamFileList()
extpath = system.file("extdata",
"mm9_TBX20.APAout.RData", package="APAlyzer")
load(extpath)
sampleTable1 = data.frame(samplename = c(names(flsall)),
condition = c(rep("NT",3),rep("KD",3)))
sampleTable2 = data.frame(samplename = c("SRR316184","SRR316187"),
condition = c("NT","KD"))
## 3'UTR APA plot
test_3UTRmuti=APAdiff(sampleTable1,DFUTRraw,
conKET='NT',trtKEY='KD',PAS='3UTR',CUTreads=0)
UTR_APA_PLOTBOX=APABox(test_3UTRmuti, plot_title='3UTR APA')
## IPA plot
test_IPAmuti=APAdiff(sampleTable1,IPA_OUTraw,
conKET='NT',trtKEY='KD',PAS='IPA',CUTreads=0)
IPA_PLOTBOX=APABox(test_IPAmuti, plot_title='IPA')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.