corrSetQC: Compute QC adjusted matrices

Description Usage Arguments Details Value Author(s) Examples

Description

Compute QC adjusted matrices

Usage

1
2
corrSetQC(obj,what,Samp2Corr=obj$Sid,Var2Corr=obj$Analyte,lQC=obj$Sid[which(obj$Meta$sType=="QC")],
                    nminQC=3,propNNA=0.5,lPcs=1:2,outfile=NULL,doplot=TRUE,Date2use="Date",complete="nothing",ipc=1,imod=4,verbose=FALSE)

Arguments

obj

metaboSet object

what

Which matrix to use

Samp2Corr

List of Sids to be corrected

Var2Corr

List of Analyte used for correction

lQC

List of QC Sids

nminQC

Number of non-missing QC for each variables. Default: 3

propNNA

Proportion of non-missing allowed in the QC samples. Default: 0.5

lPcs

Vector of PCs to be investigated. Default: 1:2

outfile

Optional PDF file to dum p the plots

doplot

Do plots?

Date2use

Column name in obj$File to be used in the calculation

complete

If any Sid not in Samp2Corr or Analyte in Var2Corr excluded or missing. nothing: former data are used in place of the new data, NA: new data replaced by NA, remove: corresponding rows/columns are excluded

ipc

PC used for adjusting

imod

Model used for adjusting: 1, linear 2, quadratic 3, order 3 4, spline

verbose

Expanded output

Details

This is still a little bit too experimental

Value

Matrix if ipc and imod specified or the prcomp object

Author(s)

David Enot david.enot@gustaveroussy.fr

Examples

1
## TO DO !!!

tonedivad/GRMeta documentation built on May 31, 2019, 6:21 p.m.