When I ran champ.runCombat, it gave me error.
Error in champ.runCombat(beta.c = myNorm$beta, pd = myLoad1$pd, logitTrans = TRUE) :
unused argument (beta.c = myNorm$beta)
And then I remove beta.c=myNorm$beta in the champ.runCombat function as below.
> champ.runCombat(pd=myLoad1$pd, logitTrans=TRUE)
it seems that there's at least one covariate is confounded with batch, how can I check the confounded covariate(s)? Thanks in advance.
Maomao
[===========================]
[<< CHAMP.RUNCOMBAT START >>]
-----------------------------
<< Preparing files for ComBat >>
[Combat correction will be proceed with 734008 probes and 108 samples.]
<< Following Factors in your pd(sample_sheet.csv) could be applied to Combat: >>
<Sample_Plate>(factor):UNC_1634_Plate_2, UNC_1634_Plate_1
<Slide>(factor):203869580078, 203869580083, 203869580088, 203869580089, 203869580090, 203769710097, 203769830097, 203869580106, 203755080107, 203755080108, 203869580108, 203769830109, 203869580060, 203869580067
<Array>(factor):R01C01, R02C01, R03C01, R04C01, R05C01, R06C01, R07C01, R08C01
[champ.runCombat have automatically select ALL factors contain at least two different values from your pd(sample_sheet.csv).]
<< Following Factors in your pd(sample_sheet.csv) can not be corrected: >>
<Sample_Name>
<Sample_Well>
<Sample_Group>
<Pool_ID>
[Factors are ignored because they are conflict with variablename, or they contain ONLY ONE value across all Samples, or some phenotype contains less than 2 Samples.]
As your assigned in batchname parameter: Slide will be corrected by Combat function.
<< Checking confounded status between Slide and Sample_Group >>
--------------------------
Model for Correction is:
~Sample_Group
<environment: 0x000001ed39bfed58>
Combat can adjust for 107 covariate(s) or covariate level(s)
--------------------------
<< Rank Check Complete, you data is good to proceed. >> ^_^
<< Start Correcting Slide >>
~Sample_Group
<environment: 0x000001ed39bfed58>
Generate mod success. Started to run ComBat, which is quite slow...
Found14batches
Adjusting for107covariate(s) or covariate level(s)
Error in ComBat(dat = beta, batch = batch, mod = mod, par.prior = TRUE) :
At least one covariate is confounded with batch! Please remove confounded covariates and rerun ComBat