Description Usage Arguments Details Value
View source: R/select_ntop_per_pwy.R
Select ntop
top drivers for a pathway by calculating impact, sorting nodes with alternative
,
and selecting top nodes.
1 | select_ntop_per_pwy(zscores, nonz.scores, Gmat, pwy, ker, ntop = 3)
|
zscores |
Matrix with rownames as feature names, and 1st column with z-scores to select high impact nodes.
Non- |
nonz.scores |
Matrix with rownames as feature names, and 1st column with scores (not z-scores) to select
high impact nodes. Non- |
Gmat |
Binary feature (e.g. gene) by pathway inclusion matrix, indicating which features are in which pathways. |
pwy |
Pathway, must be a column name of |
ker |
Laplacian kernel matrix representing the interaction network. |
ntop |
Number of top features that most impact a pathway to include. |
Independent of the alternative, pathway significance is most affected by nodes with largest magnitude impact, however these nodes are sorted in the output according to alternative="greater". Nodes outside the pathway with no impact, which may arise when the kernel is diagonal, are removed.
Data frame with ntop
rows ordered by impact & 3 columns: node
with node names;
impact
with impact values; in.pwy
with logicals if node is in pwy
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.