gdata_add_gene_annots: gdata_add_gene_annots

View source: R/biomart_annots.R

gdata_add_gene_annotsR Documentation

gdata_add_gene_annots

Description

Add biomaRt gene annotations to Genotype Data object.

Usage

gdata_add_gene_annots(
  gdata,
  snp_idxs,
  rsids_colname = "probe_id",
  biomart_metadb = get_biomart_metadb()
)

Arguments

gdata

Genotype Data object

snp_idxs

SNP indexes

rsids_colname

Column of SNP annotation data frame with rs identifiers

biomart_metadb

List with slots snpmart and ensembl, corresponding to the biomart databases to query for SNP identifiers and gene names, respectively. See get_biomart_metadb function.

Value

Genotype Data object


snplinkage documentation built on May 4, 2023, 9:09 a.m.