| calculate_rank_metric | R Documentation |
Calculate rank metric for GSEA
calculate_rank_metric(
abundance,
metadata,
group,
method = "signal2noise",
comparison = NULL
)
abundance |
A matrix of abundance data |
metadata |
A data frame of metadata |
group |
A character string specifying the grouping variable |
method |
A character string specifying the ranking method |
comparison |
Optional length-2 character vector |
The abundance matrix must carry explicit, unique feature row names. The returned ranking vector is validated for unique feature names, finite numeric statistics, and at least two distinct values; a fully tied ranking is not meaningful for preranked GSEA because enrichment would then depend on arbitrary input order.
A named vector of ranking statistics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.