query_hgnc_by_genes: Query HGNC BioMart by Gene Symbols

View source: R/biomart_core.R

query_hgnc_by_genesR Documentation

Query HGNC BioMart by Gene Symbols

Description

Retrieves data from the HGNC BioMart for a list of gene symbols.

Usage

query_hgnc_by_genes(genes, attributes, mart_name = NULL, dataset_name = NULL)

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.

Value

A data.table with results for matching gene symbols and attributes.


bhklab/AnnotationGx documentation built on April 3, 2025, 4:27 p.m.