powered by
Get logical descendancy matrix for set of terms
get_term_descendancy_matrix(ontology, terms = NULL, rows = terms, cols = terms)
A logical square matrix of with length(terms) columns and rows. result[row_term,col_term] == TRUE if row_term is an ancestor (and not the same as) of col_term.
length(terms)
result[row_term,col_term] == TRUE
row_term
col_term
A logical matrix.
ontology_index object.
ontology_index
Character vector of ontological terms.
Rows for resultant matrix (defaults to terms).
terms
Cols for resultant matrix (defaults to terms).
data(hpo) get_term_descendancy_matrix(hpo, c("HP:0001873", "HP:0011877"))
Run the code above in your browser using DataLab