View source: R/biomart_queries.R
biomart.SNPid.in.window | R Documentation |
Uses biomaRt function to fetch the reference SNP IDs for those SNPs included in the specified window. It uses the given BioMart database.
biomart.SNPid.in.window(
chr,
start,
end,
mart,
with.position = FALSE,
with.alleles = FALSE
)
chr |
chromosome number (1, 2, ...) |
start |
fist position of the window (included) |
end |
last position of the window (included) |
mart |
BioMart database |
with.position |
whether including chromosome name and start and end position (default: false) |
with.alleles |
whether including variant alleles (default: false, if with.position==TRUE is forced to TRUE) |
reference SNP IDs, or reference SNP IDs plus genomic coordinates and alleles
Alessia Visconti
mybiomart <- biomart.fetch.SNP.grch37.mart()
biomart.SNPid.in.window(1, 1, 10100, mybiomart)
biomart.SNPid.in.window(1, 1, 10100, mybiomart, with.position=TRUE)
biomart.SNPid.in.window(1, 1, 10100, mybiomart, with.alleles=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.