indexFeats {FamilyRank} | R Documentation |
Re-index features
Description
Re-index features based on number to rank. Called by familyRank
.
Usage
indexFeats(scores, graph, n.rank = NULL)
Arguments
scores |
A numeric vector of empirical feature scores. |
graph |
A matrix or data frame representation of a graph object. |
n.rank |
Number of features to rank. |
Details
This function is used to re-index features for the Family Rank algorithm. The function takes in the scores for all features, and returns scores for the top n.rank
features. It also takes in the full domain knowledge graph
and returns the subgraph that only includes interactions between the top n.rank
features. Finally, it re-indexes the top features in both the score vector and domain knowledge graph to 1:n.rank.
Value
Returns a named list with re-indexed domain knowledge graph (graph.w
), re-indexed scores (score.w
), a mapping between original and new indices (loc.map
), and the number of features to rank (n.rnak
).
Note
indexFeats
is not meant to be called alone. It is designed as a helper function for familyRank
.
Author(s)
Michelle Saul
References
ADD REFERENCE