peakAnnoEnrichment | R Documentation |
This function will perform hypergeometric enrichment of a given peak annotation within the defined marker peaks.
peakAnnoEnrichment(
seMarker = NULL,
ArchRProj = NULL,
peakAnnotation = NULL,
matches = NULL,
cutOff = "FDR <= 0.1 & Log2FC >= 0.5",
background = "all",
logFile = createLogFile("peakAnnoEnrichment")
)
seMarker |
A |
ArchRProj |
An |
peakAnnotation |
A |
matches |
A custom |
cutOff |
A valid-syntax logical statement that defines which marker features from |
background |
A string that indicates whether to use a background set of matched peaks to compare against ("bgdPeaks") or all peaks ("all"). |
logFile |
The path to a file to be used for logging ArchR output. |
# Get Test ArchR Project
proj <- getTestProject()
# Get Markers
seMarker <- getMarkerFeatures(
ArchRProj = proj,
useMatrix = "PeakMatrix",
testMethod = "binomial",
binarize = TRUE
)
# Get Peak Annotation Enrichment
annoEnrich <- peakAnnoEnrichment(
seMarker = seMarker,
ArchRProj = proj,
cutOff = "FDR <= 0.1 & Log2FC >= 0"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.