View source: R/LD_1KG_download_vcf.R
get_LD_1KG_download_vcf | R Documentation |
Query the 1000 Genomes Project for a subset of their individual-level VCF files.
get_LD_1KG_download_vcf(
query_granges,
query_genome = "hg19",
LD_reference = "1KGphase1",
superpopulation = NULL,
samples = character(0),
local_storage = NULL,
locus_dir = tempdir(),
save_path = echotabix::construct_vcf_path(locus_dir = locus_dir, subdir = "LD",
target_path = LD_reference, query_granges = query_granges),
query_save = TRUE,
force_new = FALSE,
conda_env = "echoR_mini",
nThread = 1,
verbose = TRUE
)
query_granges |
GRanges object
to be used for querying the |
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 |
locus_dir |
Storage directory to use. |
save_path |
Path to save LD subset to. |
query_save |
Whether to save the queried data subset. |
conda_env |
Conda environments to search in.
If |
nThread |
Number of threads to parallelize over. |
verbose |
Print messages. |
query_dat <- echodata::BST1
locus_dir <- file.path(tempdir(), echodata::locus_dir)
query_granges <- echotabix::construct_query(query_dat=query_dat)
vcf_subset.popDat <- echoLD:::get_LD_1KG_download_vcf(
query_granges = query_granges,
LD_reference = "1KGphase1",
locus_dir = locus_dir)
Other LD:
check_population_1kg()
,
compute_LD()
,
filter_LD()
,
get_LD()
,
get_LD_1KG()
,
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.