View source: R/ensemblQueryLDregionEndpoint.R
ensemblQueryLDwithSNPregionDataframe | R Documentation |
'ensemblQueryLDwithSNPregionDataframe' applies 'ensemblQueryLDwithSNPregion' to a data.frame of genomic coordinates and returns all variant pairs present in each specified genomic region and their associated LD metrics.
ensemblQueryLDwithSNPregionDataframe(
in.table,
pop = "1000GENOMES:phase_3:EUR",
cores = 1
)
in.table |
Dataframe containing genomic coordinates. Columns must include 'chr' (the chromosome), 'start' (the starting genomic coordinate) and 'end' (the ending genomic coordinate). |
pop |
String. Population for which to compute LD. Use 'ensemblQueryGetPops()' to retrieve a list of all populations with LD data. Default is 1000GENOMES:phase_3:EUR. |
cores |
Integer. A value between 1 and 10 is accepted, as this prevents the server returning overload-related errors. |
A dataframe.
## Not run:
library(magrittr)
data.frame(
chr=rep(c("6"), 5),
start=rep(c("25837556"), 5),
end=rep(c("25943455"), 5)
) %>%
ensemblQueryLDwithSNPregionDataframe(
in.table=.,
pop="1000GENOMES:phase_3:EUR",
cores = 1
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.