JAMexpandedCor.multi.Rd
Expanded version of JAM (a single-trait fine-mapping approach) that first runs on thinned SNPs and then expands models on tag SNPs; this can run independently on multiple traits
JAMexpandedCor.multi(
beta1,
corX,
raf,
ybar,
Vy,
N,
maxcv = 10,
r2 = 0.99,
save.path
)
list where each component is a named vector of of single SNP effect estimates for a trait; one vector for each trait
genotype correlation matrix (reference or from sample)
named vector of reference allele frequencies; the name of each allele frequency is the SNP ID and MUST be in same SNP order as in corX
vector of trait means; if related samples, this should be based on unrelated samples; if traits are transformed to be standard Normal, could set ybar as 0-vector
vector of trait variances; if related samples, this should be based on unrelated samples; if traits are transformed to be standard Normal, could set Vy as 1-vector
vector of sample sizes for each trait; recommended to give effective sample sizes using GWAS summary statistics in Neff function
maximum number of causal variants, default 10
r.squared threshold for thinning SNPs before JAM and finding tag SNPs
path to save JAM output files; tmp files and could delete these later e.g. save.path=paste0(DIRout,"/tmpJAM/region1").
list with 3 components: SM a list of snpmod objects giving fine-mapping results for each trait; mbeta a list of joint effect estimates for each trait; nsnps number of SNPs