Entering edit mode
Hello, when I run champ.SVD function I always obtain this kind of error, wthat is the problem?
Thank you!
Code should be placed in three backticks as shown below
library("ChAMP")
myLoad<-champ.load(directory="C:/Users/andre/methylation_CLL1", arraytype="EPIC")
champ.QC()
myNorm <- champ.norm(beta=myLoad$beta,arraytype="EPIC",cores=5)
QC.GUI(beta=myNorm,arraytype="EPIC")
champ.SVD(beta=myNorm,pd=myLoad$pd)
#> champ.SVD(beta=myNorm,pd=myLoad$pd)
[===========================]
[<<<<< ChAMP.SVD START >>>>>]
-----------------------------
champ.SVD Results will be saved in ./CHAMP_SVDimages/ .
Error in if (class(beta) == "data.frame") { :
the condition has length > 1
It is an ERROR in the champ code and will have to be fixed by the ChAMP maintainers. R introduced length > 1 conditional checks. If the results of class(beta) has multiple values from say extending a class than it will throw an error because the if statement will have a vector instead of a single value
dummy example:
They need to change the
==
likely tois()
or surround in anany