get_sim_p_from_ontology: Get similarity p-value for subgroup term sets

View source: R/group-sim.R

get_sim_p_from_ontologyR Documentation

Get similarity p-value for subgroup term sets

Description

Compute a similarity p-value by permutation for subgroup of a list of term sets

Usage

get_sim_p_from_ontology(
  ontology,
  term_sets,
  information_content = descendants_IC(ontology),
  term_sim_method = "lin",
  combine = "average",
  ...
)

Arguments

ontology

ontology_index object.

term_sets

List of character vectors of ontological term IDs.

information_content

Numeric vector of information contents of terms (named by term)

term_sim_method

Character string equalling either "lin" or "resnik" to use Lin or Resnik's expression for the similarity of terms.

combine

Character string - either "average" or "product", indicating whether to use the best-match-product' method, or function accepting two arguments - the first, the similarity matrix obtained by averaging across term sets in term_sets, and the second averaging across those in term_sets2.

...

Other arguments to be passed to get_sim_p.

Value

Numeric value.

See Also

get_sim_p create_sim_index


ontologySimilarity documentation built on May 29, 2024, 3:51 a.m.