Fetch linkage disequilibrium statistics for a locus of interest
Source:R/ld_extract_locuszoom.R
ld_extract_locuszoom.Rd
This function allows the user to extract linkage disequilibrium statistics between a variant of interest and surrounding variants within a contiguous genomic region. This function uses the University of Michigan LocusZoom API (https://portaldev.sph.umich.edu/) to obtain LD information, and allows the user to specify genome-build and ancestry of interest.
Usage
ld_extract_locuszoom(
chrom,
pos,
ref,
alt,
start,
stop,
genome_build = "GRCh37",
population = "ALL",
metric = "rsquare"
)
Arguments
- chrom
Integer - chromosome of reference variant
- pos
Integer - position of reference variant
- ref
Character - reference allele (or effect allele) for reference variant
- alt
Character - alternate allele (or non-effect allele) for reference variant
- start
Integer - starting position of range of interest
- stop
Integer - ending position of range of interest
- genome_build
Character - Genome build - one of "GRCh37" or "GRCh38"
- population
Character - 1000G genetic superpopulation - one of "ALL", "AFR", "AMR", "EAS", "EUR", "SAS"
- metric
Character - one of "r", "rsquare", or "cov", referring to the correlation statistic of interest