filter_ | R Documentation |
Functions to filter data.table objects.
filter_descendants(
phenos,
keep_descendants = NULL,
remove_descendants = NULL,
hpo = get_hpo()
)
phenos |
A data.table containing HPO IDs and other metadata. |
keep_descendants |
Terms whose descendants should be kept
(including themselves).
Set to |
remove_descendants |
Terms whose descendants should be removed
(including themselves).
Set to |
hpo |
Human Phenotype Ontology object, loaded from get_ontology. |
Filtered data.
data.table of phenotypes, with additional columns: "ancestor", "ancestor_id"
filter_descendants()
: filter_
Filter descendants
Subset a phenos
data.table to only
descendants of an ancestor HPO ID term.
phenos <- make_phenos_dataframe(ancestor = "Neurodevelopmental delay")
phenos2 <- filter_descendants(phenos = phenos,
keep_descendants = "Motor delay")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.