get_relative_ont_level_multiple: Get relative ontology level for multiple HPO terms

Description Usage Arguments Value

Description

This calls the get_relative_ont_level function on all phenotypes in a subset of the HPO. The subest chosen when creating the phenoAdj from the main adjacency matrix of all phenotypes. So, the phenotypes can be found in the row and column names of phenoAdj.

Usage

1
get_relative_ont_level_multiple(phenoAdj, hpo, reverse = TRUE)

Arguments

phenoAdj

A adjacency matrix of phenotypes where 1 represents i is parent of j and 0 represents that i is not a parent of j. It is a subset of the main phenotype adjacency matrix

hpo

The HPO ontology data object

reverse

A boolean, if TRUE it will reverse the ontology level numbers so that the parent terms are larger than the child terms.

Value

A named vector of relative ontology level, where names are HPO Ids and value is relative ontology level.


ovrhuman/HPOExplorer documentation built on Dec. 22, 2021, 5:21 a.m.