feature.scores {StabPerf} | R Documentation |
Calculates scores for a sampled list of indices (=genes)
Description
Calculates scores (=overlap) for each index (=gene) from a sampled list of indices (=genes).
Usage
feature.scores(features, mode=c("binary", "rank"))
Arguments
features |
a list containing the vectors with indices, or a list containing nested lists with indices and corresponding scores |
mode |
binary or rank |
Details
Extracts all the indices that occur in at least one feature-vector, and sums up the corresponding scores from all the samples in features
. The scores can be given as an features[[i]]$scores
(requires indices in features[[i]]$indices
), or are computed when no scores are given (indices in features[[i]]
or feature[[i]]$indices
). The score for a index is 1 for mode=
binary'' or the position in indices
/'features' for mode=rank
. The value of maxscore
is taken from the length of a feature-vector (mode=
binary''). Otherwise (mode=
rank'') it is summed up from maxscore
in the nested list, if given, or the maximum of each scores
-vectors, otherwise.
Value
scores |
list with vectors indices and the corresponding scores in scores , that were calculated. numeric maxscore is the maximal score that could be achieved. |
See Also
feature.stability.score
Examples
load("s_1_1.RData")
feature.scores(cp.img$features, mode="binary")
[Package
StabPerf version 0.5
Index]