Description Usage Arguments Value Examples
This function accomplishes three tasks: (1) Combines peaks from different sample types into one master list, and annotates each peak with it's sample type-specificity (which cell or tissue types the peak can be found in) (2) Categorizes peaks as either a promoter or enhancer (promoter distance is defined as 1500bp away from a transcription start site (TSS) by default, but the distance can be changed with the distancefromTSS argument) (3) Optionally, regulatory regions that are within a certain distance of each other can be merged to form a larger regulatory region.
1 2 3 | combineAnnotatePeaks(conspeaks, TSS, merge = FALSE, mergedistenh = 0,
mergedistprom = 0, mergedist = 0, regionspecific = NA,
distancefromTSS = 1500)
|
conspeaks |
list of GRanges objects for each sample type (output by getConsensusPeaks() function) |
TSS |
file of transcription start sites |
merge |
whether or not regions should be merged if they are within a user set distance to each other (default is FALSE) |
mergedistenh |
merge enhancers peaks if they are < mergedistenh apart (set when regionspecific is TRUE) |
mergedistprom |
merge promoters if they are < mergedistprom apart (set when regionspecific is TRUE) |
mergedist |
merge promoters and enhancers if they are < mergedist apart (set when regionspecific is FALSE) |
regionspecific |
logical to if TRUE, merging occurs within same type peaks (e.g. merge promoters, then merge enhancers) |
distancefromTSS |
in bp; peaks within distFromTSS of an annotated Transcription Start Site (TSS) will be annotated as promoter (default=1500bp) |
List containing two items: (1) GRanges object: all sample types combined, regions annotated as type-specific and enhancer/promoter specific. (2) Matrix: number and size of enhancers and promoters before and after merging nearby regulatory regions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## 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)
TSSannot <- getTSS()
consPeaksAnnotated <- combineAnnotatePeaks(conspeaks = consPeaks,
TSS = TSSannot,
merge = TRUE,
regionspecific = TRUE,
mergedistenh = 1500,
mergedistprom = 1000)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.