R/ctwas_region_cor.R
load_region_cor.RdIt loads precomputed correlation matrices for a single region.
It could load correlation matrices by region_id and
directory of correlation matrices cor_dir. Otherwise,
it loads correlation matrices by the
filenames (R_sg_file, R_sg_file, R_s_file)
if they are provided.
load_region_cor(region_id, cor_dir, R_sg_file, R_g_file, R_s_file)a character string of region id.
a string, the directory to store correlation matrices.
filename of SNP-gene correlations.
filename of gene-gene correlations.
filename of SNP-SNP correlations.
correlation matrices (R_snp, R_snp_gene and R_gene)