get.case.term.matrix: Get a matrix with columns of hpo terms and rows of patients,

Description Usage Arguments Value Examples

Description

Get a matrix with columns of hpo terms and rows of patients,

Usage

1
get.case.term.matrix(hpo.phenotypes, columns = NULL)

Arguments

hpo.phenotypes

List of character vectors of HPO terms. Result includes only terms which are explicitly present in the list items, so if you wish the result to include even terms which are implicitly present, lapply get.ancestors to the argument before passing it to this function

columns

Force result to have these exact columns, entering F for terms which aren't present

Value

Logical matrix - entry for a patient/hpo term = T if the patient has the term and F otherwise.

Examples

1
get.case.term.matrix(list(Patient1=c("HP:0001873")))

hpoPlot documentation built on May 2, 2019, 5:52 a.m.