get_sim {ontologySimilarity} | R Documentation |
Calculate the group similarity of a set of row/column indices
Description
Calculates the similarity of a group within a population by applying the function specified by group_sim
to the pairwise similarities of group members.
Usage
get_sim(pop_sim, ...)
## S3 method for class 'integer'
get_sim(pop_sim, ...)
## S3 method for class 'numeric'
get_sim(pop_sim, group = seq(length(pop_sim)), ...)
## S3 method for class 'matrix'
get_sim(pop_sim, group = seq(nrow(pop_sim)), ...)
## S3 method for class 'sim_index'
get_sim(pop_sim, group = seq(pop_sim[["N"]]), ...)
## Default S3 method:
get_sim(pop_sim, group, type, group_sim = "average", ...)
Arguments
pop_sim |
An object representing the similarities of an indexed population of objects. |
... |
Other arguments to be passed to |
group |
Character or integer vector specifying names/indices of subgroup for which to calculate a group similarity p-value. |
type |
Either "matrix", "sim_index" or "numeric" - the type of the |
group_sim |
String Either "average" or "min", determining how to calculate the similarity of a group of term sets over all pairwise combinations of group members |
Value
Numeric value of group similarity
See Also
[Package ontologySimilarity version 2.7 Index]