View source: R/utils-characterize.r
| enriched_features | R Documentation |
Turns the output of CharacteristicFeatures() into a per-cluster list of
compact tables (term / pvalue / Count) ready for plot_pathways().
For each cluster it keeps the characteristic features that pass a significance
cut and, by default, only those that are enriched in the cluster
(more frequent among its objects than in the remaining objects) rather than
depleted. Empty clusters are dropped.
enriched_features(
char,
data,
source = 1,
method = 1,
sign = 0.05,
enriched_only = TRUE,
clean_names = TRUE
)
char |
Output of |
data |
The binary data matrix whose features were tested (objects in rows, features in columns) - e.g. the target matrix. Used to set the enrichment direction and the per-cluster feature counts. |
source |
Which tested data source to use within each cluster, by name
(e.g. |
method |
Which clustering result in |
sign |
Keep features with adjusted p-value below this. Default |
enriched_only |
If |
clean_names |
If |
A named list - one element per non-empty cluster - of data frames
with columns term, pvalue (adjusted p-value) and Count (number of the
cluster's objects carrying the feature), suitable for plot_pathways().
CharacteristicFeatures(), plot_pathways()
## Not run:
Char <- CharacteristicFeatures(List = list(Weighted = sol),
binData = list(Target = targetMat),
datanames = "Target", nrclusters = 4)
tabs <- enriched_features(Char, targetMat)
plot_pathways(tabs, style = "circular")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.