Learn R Programming

hpoPlot (version 2.2)

get.case.term.matrix: 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

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.ancesto
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

Run this code
get.case.term.matrix(list(Patient1=c("HP:0001873")))

Run the code above in your browser using DataLab