Learn R Programming

ontologySimilarity (version 2.3)

get_sim: 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 integer get_sim(pop_sim, ...)

# S3 method for numeric get_sim(pop_sim, group = seq(length(pop_sim)), ...)

# S3 method for matrix get_sim(pop_sim, group = seq(nrow(pop_sim)), ...)

# S3 method for sim_index get_sim(pop_sim, group = seq(pop_sim[["N"]]), ...)

# S3 method for default 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 get_sim.

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 pop_sim object.

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

get_sim_p sample_group_sim