Description Usage Arguments Value Author(s) Examples
APA Volcano plotting
1 2 3 4 5 6 |
df |
a dataframe of APAdiff output |
Pcol |
p-value column used to for y-axis of volcano plot, default is 'pvalue' |
top |
number of genes/IPA to label in the plot, default is -1, which don't lable top genes, user can set it >0, e.g., top = 5 |
markergenes |
a set of genes to label in the plot |
PAS |
type of PAS analyzed, either '3UTR' or 'IPA', default is '3UTR' |
y_cutoff |
y cutoff line, default is 0.05 |
xlab |
lable of x-axis, default is 'RED' |
ylab |
lable of y-axis, default is '-Log10(P-value)' |
PAScolor |
dot color for 'NC','UP' and 'DN' gene/IPAs, default is "gray80", "red", and "blue" |
alpha |
alpha of the dot, default is 0.75 |
plot_title |
Main title of plot |
width |
width of the dot, default is 4 |
height |
height of the dot, default is 2.5 |
The function APAVolcano
return a Volcano plot.
Ruijia Wang
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 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_PLOT=APAVolcano(test_3UTRmuti, PAS='3UTR', Pcol = "pvalue", top=5, plot_title='3UTR APA')
## IPA plot
test_IPAmuti=APAdiff(sampleTable1,IPA_OUTraw,
conKET='NT',trtKEY='KD',PAS='IPA',CUTreads=0)
IPA_PLOT=APAVolcano(test_IPAmuti, PAS='IPA', Pcol = "pvalue", top=5, plot_title='IPA')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.