Get matrix of pairwise similarity of individual terms based on Lin's (default) or Resnik's information content-based expression.
get_term_sim_mat(ontology, information_content, method = "lin",
row_terms = names(information_content),
col_terms = names(information_content))ontology_index object.
Numeric vector of information contents of terms (named by term)
Character value equalling either "lin" or "resnik" to use Lin or Resnik's expression for similarity of terms respectively.
Character vector of term IDs to appear as rows of result matrix.
Character vector of term IDs to appear as cols of result matrix.
Numeric matrix of pairwise term similarities.