Description Usage Arguments Value Examples
Create a volcano plot from the output of categAltrePeaks
1 2 3 4 5 | plotCountAnalysis(altrepeakscateg, viewer = TRUE, palette = c("#C71585",
"#d3d3d3", "#00E5EE", "#000080"), maintitlelefty = "TSS-distal",
maintitlerighty = "TSS-proximal", ylabel = "-log10 pvalue",
xlabel = "log2fold change", xlabelsize = "15px", ylabelsize = "15px",
maintitlesize = "20px")
|
altrepeakscateg |
output generated from countanalysis() then categAltrePeaks() |
viewer |
whether the plot should be displayed in the RStudio viewer or in Shiny/Knittr |
palette |
choose an RColorBrewer palette ("Set1", "Set2", "Set3", "Pastel1", "Pastel2", "Paired", etc.) or submit a vector of colors |
maintitlelefty |
main title (default, "TSS-distal") |
maintitlerighty |
main title (default, "TSS-proximal") |
ylabel |
label for y-axis (default, "Density") |
xlabel |
label for x-axis (default, "-log10 pvalue") |
xlabelsize |
size of xlabel (default, 15px) |
ylabelsize |
size of ylabel (default, 15px) |
maintitlesize |
main title size (default, 20px) |
a highcharter object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ## Not run:
csvfile <- loadCSVFile("DNaseEncodeExample.csv")
samplePeaks <- loadBedFiles(csvfile)
consensusPeaks <- getConsensusPeaks(samplepeaks = samplePeaks, minreps = 2)
TSSannot <- getTSS()
consensusPeaksAnnotated <- combineAnnotatePeaks(conspeaks = consensusPeaks,
TSS = TSSannot,
merge = TRUE,
regionspecific = TRUE,
distancefromTSSdist = 1500,
distancefromTSSprox = 1000)
consensusPeaksCounts <- getCounts(annotpeaks = consensusPeaksAnnotated,
reference = 'SAEC',
sampleinfo = csvfile,
chrom = 'chr21')
alteredPeaks <- countanalysis(counts=consensusPeaksCounts,
pval=0.01,
lfcvalue=1)
alteredPeaksCategorized <- categAltrePeaks(alteredPeaks,
lfctypespecific = 1.5,
lfcshared = 1.2,
pvaltypespecific = 0.01,
pvalshared = 0.05)
plotCountAnalysis(altrepeakscateg = alteredPeaksCategorized)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.