plotCombineAnnotatePeaks: Given the output from combineAnnotatePeaks, plot a barplot...

Description Usage Arguments Value Examples

Description

Given the output from combineAnnotatePeaks, plot a barplot showing number of peaks before/after merging (only works if peaks were merged)

Usage

1

Arguments

conspeaks

output generated from combineAnnotatePeaks

Value

a ggplot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
dir <- system.file('extdata', package='ALTRE', mustWork=TRUE)
csvfile <- file.path(dir, 'lung.csv')
sampleinfo <- loadCSVFile(csvfile)
samplePeaks <- loadBedFiles(sampleinfo)
consPeaks <- getConsensusPeaks(samplepeaks=samplePeaks,minreps=2)
plotConsensusPeaks(samplepeaks=consPeaks)
TSSannot <- getTSS()
consPeaksAnnotated <- combineAnnotatePeaks(conspeaks = consPeaks,
                                          TSS = TSSannot,
                                          merge = TRUE,
                                          regionspecific = TRUE,
                                          mergedistenh = 1500,
                                          mergedistprom = 1000)
plotCombineAnnotatePeaks(consPeaksAnnotated)

## End(Not run)

ewymathe/testALTREinstall documentation built on May 16, 2019, 9:42 a.m.