Writes output to files defined in mPhen.openOutputConnection, and extracts pvalues and betas for further plots.
mPhen.writeOutput(results,
output = getOption("mPhen.resultsName","resultsDir/"),geno = NULL,
towrite = list(long.txt = getOption("mPhen.writeLong",TRUE),
qc.txt = getOption("mPhen.writeQC",FALSE),
wide.txt = getOption("mPhen.writeWide",TRUE)),
toplot = list(.manh = TRUE, .qq = TRUE,.heatm = TRUE,
.fprint = !is.null(geno)),
opts = mPhen.options("plot"))
Output of mPhen.assoc
Directory to write results, or object returned by mPhen.writeOutput(..)
List specifying which formats to write output - long.txt and wide.txt for standard results; qc.txt for per-sample qc output.
List specifying which formats to plot output - .qq for qq plot, .manh for manhattan; .heatm for pvalue heatmap; .fprint for fingerprint plot
Genotype matrix. Note that attr(geno,"closeConnection") controls whether plots are produced, as this indicates whether all batches of genotype data have been analysed
A list of options, which is obtained from mPhen.options("plot"). To get more information about these options, type mPhen.options("plot",descr=TRUE)
Returns an outputConnection, which can be used to write further results.