saveSparse: Save LD matrix as a sparse matrix

View source: R/saveSparse.R

saveSparseR Documentation

Save LD matrix as a sparse matrix

Description

Converting LD matrices to sparse format reduces file size by half.

Usage

saveSparse(LD_matrix, LD_path = tempfile(fileext = ".rds"), verbose = TRUE)

Arguments

LD_matrix

LD matrix to save.

LD_path

Path to save LD matrix to.

verbose

Print messages.

See Also

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(), save_LD_matrix(), snpstats_get_MAF()

Examples

LD_matrix <- echodata::BST1_LD_matrix
LD_path <- saveSparse(LD_matrix = LD_matrix)

RajLabMSSM/echoLD documentation built on May 12, 2024, 3:23 a.m.