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

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")))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.