search_phenotypes: Search HPO Phenotypes by Keyword

View source: R/hpo_parsers.R

search_phenotypesR Documentation

Search HPO Phenotypes by Keyword

Description

Finds phenotypes whose name contains a keyword and lists their associated genes. Matching is case-insensitive and treats keyword as a plain string, not a regular expression.

Usage

search_phenotypes(hpo_db, keyword, max_results = 50L)

Arguments

hpo_db

An HPO dvobject returned by parseHPO.

keyword

Character. Search term, e.g. "seizure".

max_results

Integer. Maximum number of phenotypes to return.

Value

A tibble with columns hpo_id, phenotype_name, n_genes and genes (comma-separated gene symbols), ordered by decreasing n_genes.

See Also

Other utility: add_database_info(), get_genes_for_phenotype(), get_source_metadata(), show_dvobject_metadata(), subset_drugbank_dvobject(), subset_onsides_dvobject()

Examples

hpo_db <- parseHPO(system.file("extdata", "hpo_gene_attribute_edges.txt",
                               package = "dbparser"))
search_phenotypes(hpo_db, "seizure")


dbparser documentation built on Nov. 9, 2026, 1:10 a.m.