get_sim: Calculate the group similarity of a set of row/column indices

Description Usage Arguments Value See Also

View source: R/group-sim.R

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
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 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


ontologySimilarity documentation built on Dec. 19, 2019, 5:06 p.m.