get_LD_1KG | R Documentation |
Downloads a subset vcf of the 1KG database that matches your locus coordinates. Then uses ld to calculate LD on the fly.
get_LD_1KG(
locus_dir,
query_dat,
query_genome = "hg19",
LD_reference = "1KGphase1",
superpopulation = NULL,
samples = character(0),
local_storage = NULL,
leadSNP_LD_block = FALSE,
force_new = FALSE,
force_new_maf = FALSE,
fillNA = 0,
stats = "R",
as_sparse = TRUE,
subset_common = TRUE,
remove_tmps = TRUE,
conda_env = "echoR_mini",
nThread = 1,
verbose = TRUE
)
locus_dir |
Storage directory to use. |
query_dat |
SNP-level summary statistics subset to query the LD panel with. |
query_genome |
Genome build of the |
LD_reference |
LD reference to use:
|
superpopulation |
Superpopulation to subset LD panel by
(used only if |
samples |
[Optional] Sample names to subset the VCF by. If this option is used, the GRanges object will be converted to a ScanVcfParam for usage by readVcf. |
local_storage |
Storage folder for previously downloaded LD files.
If |
leadSNP_LD_block |
Only return SNPs within the same LD block as the lead SNP (the SNP with the smallest p-value). |
fillNA |
When pairwise LD (r) between two SNPs is |
as_sparse |
Save/return LD matrix as a sparse matrix. |
subset_common |
Subset |
remove_tmps |
Remove all intermediate files like vcf, npz, and plink files. |
conda_env |
Conda environments to search in.
If |
nThread |
Number of threads to parallelize over. |
verbose |
Print messages. |
This approach is taken, because other API query tools have limitations with the window size being queried. This approach does not have this limitations, allowing you to fine-map loci more completely.
Other LD:
check_population_1kg()
,
compute_LD()
,
filter_LD()
,
get_LD()
,
get_LD_1KG_download_vcf()
,
get_LD_UKB()
,
get_LD_matrix()
,
get_LD_vcf()
,
get_locus_vcf_folder()
,
ldlinkr_ldproxy_batch()
,
plot_LD()
,
popDat_1KGphase1
,
popDat_1KGphase3
,
rds_to_npz()
,
saveSparse()
,
save_LD_matrix()
,
snpstats_get_MAF()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.