indexFeats: Re-index features

Description Usage Arguments Details Value Note Author(s) References See Also

View source: R/indexFeats.R

Description

Re-index features based on number to rank. Called by familyRank.

Usage

1
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

See Also

familyRank


FamilyRank documentation built on Feb. 5, 2021, 9:05 a.m.