get_term_sim_mat: Get term-term similarity matrix

Description Usage Arguments Value See Also

View source: R/functions.R

Description

Get matrix of pairwise similarity of individual terms based on Lin's (default) or Resnik's information content-based expression.

Usage

1
2
3
4
5
6
7
get_term_sim_mat(
  ontology,
  information_content,
  method = "lin",
  row_terms = names(information_content),
  col_terms = names(information_content)
)

Arguments

ontology

ontology_index object.

information_content

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

method

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

row_terms

Character vector of term IDs to appear as rows of result matrix.

col_terms

Character vector of term IDs to appear as cols of result matrix.

Value

Numeric matrix of pairwise term similarities.

See Also

get_sim_grid resnik, lin


ontologySimilarity documentation built on Feb. 10, 2021, 5:08 p.m.