Description Usage Arguments Details Value Usage Examples
Annotate peaks with internal or user provided annotation file.
1 2 3 | ## S4 method for signature 'SeqData,missing'
annotatePeaks(obj, annotationFile = character(0),
feature = character(0), distance.max = 4000, description = character(0))
|
obj |
An SeqData Object. |
distance.max |
maximum peak-to-feature distance used to locate features. |
description |
Optional. User can input short desciption for the output file, it will show up in the file name of the output file. |
feature=c("gene","erv","repeats","transposon") |
including all features that are available in getFeatureAnnotation function. Note gene, exon, transcripts and tss are processed the same as gene. |
peakTable |
Full path to results "peakTable.csv" from findPeaks. |
It answers what gene are enriched with this protein/histone mark. Back end it is assaying which peak position overlaps with tss position by using "nearest" function from GenomicRanges package. It can annotate not just peaks find by annotatePeaks, but whatever RleViews is stored in coverageView.
a targetTable.
annotatePeaks( obj,annotationFile=character(0),feature=character(0),distance.max=4000,description=character(0))
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #if you have setup bamFile and annotationFile slot
#annotatePeaks(obj)
#if you want to use internal annotation file (feature)
#annotatePeaks(obj, feature="gene")
# specify another annotation file
#annotatePeaks(obj,annotationFile)
# use peakTable output from findPeaks
#annotatePeaks(peakTable, feature)
# use peakTable and annotation file
#annotatePeaks(peakTable,annotationFile)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.