View source: R/save_LD_matrix.R
| save_LD_matrix | R Documentation |
Save an LD matrix after initial pre-processing.
save_LD_matrix(
LD_matrix,
dat,
locus_dir,
fillNA = 0,
LD_reference,
subset_common = TRUE,
as_sparse = TRUE,
verbose = TRUE
)
locus_dir |
Storage directory to use. |
fillNA |
Value to fill LD matrix NAs with. |
LD_reference |
LD reference to use:
|
subset_common |
Subset |
as_sparse |
Convert the LD matrix to a sparse matrix. |
verbose |
Print messages. |
dat <- echodata::BST1
LD_matrix <- echodata::BST1_LD_matrix
locus_dir <- file.path(tempdir(),echodata::locus_dir)
LD_list <- echoLD:::save_LD_matrix(
LD_matrix = LD_matrix,
dat = dat
locus_dir = locus_dir,
LD_reference = "UKB")
LD_list <- echoLD:::save_LD_matrix(
LD_matrix = LD_matrix,
dat = dat
locus_dir = locus_dir,
LD_reference = "custom_vcf")
Other LD:
check_population_1kg(),
compute_LD(),
filter_LD(),
get_LD(),
get_LD_1KG(),
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(),
snpstats_get_MAF()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.