Computes correlation matrices for a single region

compute_region_cor(sids, gids, R_snp, LD_sids, weights)

Arguments

sids

SNP IDs in the region

gids

gene IDs in the region

R_snp

LD (R) matrix

LD_sids

SNP IDs for the rows and columns of the LD matrix

weights

a list of weights for all the genes

Value

a list of correlation matrices (R_snp, R_snp_gene and R_gene)