| calculateTFEnrichment | R Documentation |
This function calculates the GO enrichment per TF, i.e. for the set of genes a given TF is connected to in the filtered GRN.
calculateTFEnrichment(
GRN,
rankType = "degree",
n = 3,
TF.names = NULL,
ontology = c("GO_BP", "GO_MF"),
algorithm = "weight01",
statistic = "fisher",
background = "neighborhood",
pAdjustMethod = "BH",
forceRerun = FALSE
)
GRN |
Object of class |
rankType |
Character. Default |
n |
Numeric. Default 3. If this parameter is passed as a value between 0 and 1, it is treated as a percentage of top nodes. If the value is passed as an integer it will be treated as the number of top nodes. This parameter is not relevant if |
TF.names |
Character vector. Default |
ontology |
Character vector of ontologies. Default |
algorithm |
Character. Default |
statistic |
Character. Default |
background |
Character. Default |
pAdjustMethod |
Character. Default |
forceRerun |
|
The same GRN object, with the enrichment results stored in the stats$Enrichment$byTF slot.
# See the Workflow vignette on the GRaNIE website for examples GRN = loadExampleObject() GRN = calculateTFEnrichment(GRN, n = 5, ontology = "GO_BP", forceRerun = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.