Retrieves data from the HGNC BioMart for a list of gene symbols.
Arguments
- genes
Character vector of HGNC gene symbols.
- attributes
Character vector of attribute display names to return.
- mart_name
Character, optional name or display name of the mart to use (default: first available mart).
- dataset_name
Character, optional name or display name of the dataset to use (default: first available dataset).
Details
This function connects to the HGNC BioMart service and retrieves specified attributes for a list of gene symbols. It automatically handles the selection of marts and datasets based on provided parameters.
Examples
# Requires internet connection to HGNC BioMart
if (interactive()) {
query_hgnc_by_genes(
genes = c("TP53", "BRCA1"),
attributes = c("Approved symbol", "Approved name")
)
}