biomart.SNP.position: Fetches the chromosomal coordinates of the specified SNP IDs

View source: R/biomart_queries.R

biomart.SNP.positionR Documentation

Fetches the chromosomal coordinates of the specified SNP IDs

Description

Uses biomaRt function to fetch the chromosomal coordinates for the given SNP IDs It uses the given BioMart database.

Usage

biomart.SNP.position(rs, mart, with.alleles = FALSE)

Arguments

rs

the variant mame (rs ID, ...)

mart

BioMart database

with.alleles

whether including variant alleles (default: FALSE)

Value

reference SNP IDs with its genomic coordinates, or reference SNP IDs with its genomic coordinate and alleles

Author(s)

Alessia Visconti

Examples

mybiomart <- biomart.fetch.SNP.grch37.mart()
biomart.SNP.position("rs9890579", mybiomart)
biomart.SNP.position("rs9890579", mybiomart, with.alleles=TRUE)

alesssia/timesaveR documentation built on Jan. 26, 2024, 5:21 p.m.