Usage
annotatePeak(peak, tssRegion = c(-3000, 3000), TxDb = NULL, level = "transcript", assignGenomicAnnotation = TRUE, genomicAnnotationPriority = c("Promoter", "5UTR", "3UTR", "Exon", "Intron", "Downstream", "Intergenic"), annoDb = NULL, addFlankGeneInfo = FALSE, flankDistance = 5000, sameStrand = FALSE, ignoreOverlap = FALSE, ignoreUpstream = FALSE, ignoreDownstream = FALSE, overlap = "TSS", verbose = TRUE)
Arguments
peak
peak file or GRanges object
tssRegion
Region Range of TSS
level
one of transcript and gene
assignGenomicAnnotation
logical, assign peak genomic annotation or not
genomicAnnotationPriority
genomic annotation priority
addFlankGeneInfo
logical, add flanking gene information from the peaks
flankDistance
distance of flanking sequence
sameStrand
logical, whether find nearest/overlap gene in the same strand
ignoreOverlap
logical, whether ignore overlap of TSS with peak
ignoreUpstream
logical, if True only annotate gene at the 3' of the peak.
ignoreDownstream
logical, if True only annotate gene at the 5' of the peak.
overlap
one of 'TSS' or 'all', if overlap="all", then gene overlap with peak will be reported as nearest gene, no matter the overlap is at TSS region or not.
verbose
print message or not