Annotate Clusters with Summary Terms and Pooled P-Values
annotateClusters.Rd
Adds cluster annotations based on a provided term annotation vector and pools p-values for each cluster using the specified method.
Usage
annotateClusters(
input,
term_annotation_vector,
method = "fisher",
weights = NULL,
min_pval = 1e-10
)
Arguments
- input
A data frame containing
condition
,Cluster
,Term
, andadj_pval
columns.- term_annotation_vector
A named vector where names are cluster IDs and values are annotations.
- method
The method to use for pooling p-values. Options are
"fisher"
,"stouffer"
,"weighted_z"
, and"cauchy"
.- weights
A numeric vector of weights for the Weighted Z-test. Defaults to
NULL
.- min_pval
The minimum threshold for pooled p-values. Defaults to
1e-9
.