Add biomaRt gene annotations to Genotype Data object.
gdata_add_gene_annots(
gdata,
snp_idxs,
rsids_colname = "probe_id",
biomart_metadb = get_biomart_metadb()
)Genotype Data object
Genotype Data object
SNP indexes
Column of SNP annotation data frame with rs identifiers
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.