R/ctwas_region_cor.R
compute_region_cor.Rd
Computes correlation matrices for a single region
compute_region_cor(sids, gids, R_snp, LD_sids, weights)
SNP IDs in the region
gene IDs in the region
LD (R) matrix
SNP IDs for the rows and columns of the LD matrix
a list of weights for all the genes
a list of correlation matrices (R_snp, R_snp_gene and R_gene)