gc.fun
applies GC correction to SNPs with minor allele counts (MAC) less than a user specified
threshold that may have inflated type I error rate for survival traits in particular, adjusts
RData output accordingly, and recomputes sum of square statistic.
gc.fun(path,phen,snpinfoRdata,snp.cor,mac,aggregateBy="SKATgene",
maf.file,mafRange,ssq.beta.wts=c(1,25))phen and singleSNP, contains columns: gene, Name,
maf, ntotal, nmiss, maf_ntotal, beta, se, Z,
remark, p (p-value from LRT), MAC, n0, n1, and n2.
A SSQ test result file, named with phen and SSQ, contains columns: gene, SSQ,
cmafTotal, cmafUsed, nsnpsTotal, nsnpsUsed, nmiss, df,
and p. A generated RData that is a list that contains scores, cov, n,
maf and sey for each gene with gene names being the names of the list. Note maf in
RData is MAF based on ntotal.
gc.fun function
applies GC correction to SNPs with user defined MAC, adjusts RData output based on GC
corrected single SNP analysis results, recomputes sum of squares statistic and then outputs
corrected single SNP analysis results, SSQ analysis results and RData. Initial single SNP analysis
result files are required and the input arguments should be identical to the ones used in initial
analysis (except for path).
## Not run:
# gc.fun(path="/home/mhchen/",phen="trait1",mafRange=c(0,0.01),
# snpinfoRdata="SNPinfo_EC.RData",aggregateBy="SKATgene",
# maf.file="EC_MAF.csv",snp.cor="EC_SNPcor.RData",ssq.beta.wts=c(1,25))
# ## End(Not run)
Run the code above in your browser using DataLab