get_genes_for_phenotype: Get Genes Associated with a Phenotype

View source: R/hpo_parsers.R

get_genes_for_phenotypeR Documentation

Get Genes Associated with a Phenotype

Description

Returns the genes associated with a phenotype, given either its HPO identifier (e.g. "HP:0001250") or its name.

Usage

get_genes_for_phenotype(hpo_db, phenotype, exact = FALSE)

Arguments

hpo_db

An HPO dvobject returned by parseHPO.

phenotype

Character. An HPO identifier or a phenotype name.

exact

Logical. Used when phenotype is a name. If TRUE, the name must match exactly (ignoring case). If FALSE (default), any phenotype whose name contains phenotype matches.

Value

A tibble with columns gene_symbol, entrez_id, hpo_id, phenotype_name and association_weight, ordered by gene symbol.

See Also

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

Examples

hpo_db <- parseHPO(system.file("extdata", "hpo_gene_attribute_edges.txt",
                               package = "dbparser"))
get_genes_for_phenotype(hpo_db, "HP:0001250")
get_genes_for_phenotype(hpo_db, "thrombosis")


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