Learn R Programming

kmeRtone (version 1.0)

getEnsemblVariantFeatures_serial: Get features of given variant IDs.

Description

Function fetches variant features from the Ensembl database for a set of variant IDs. It handles variant IDs in batches to comply with server limits and can include additional information like genotypes, phenotypes, allele frequencies, and genotype frequencies.

Usage

getEnsemblVariantFeatures_serial(
  species,
  variant.ids,
  include.genotypes = FALSE,
  include.phenotypes = FALSE,
  include.allele.frequencies = FALSE,
  include.genotype.frequencies = FALSE
)

Value

A list, named by variant IDs, containing lists of variant features.

Arguments

species

Species name or alias (e.g., homo_sapiens, human).

variant.ids

A vector of variant IDs (e.g., rs56116432, COSM476).

include.genotypes

Include genotypes in the response? Default FALSE.

include.phenotypes

Include phenotypes in the response? Default FALSE.

include.allele.frequencies

Include allele frequencies? Default FALSE.

include.genotype.frequencies

Include genotype frequencies? Default FALSE.