class(datExpr0)或者强制转化为数值型。
各位大神,我的程序总是提示:
> gsg <- goodSamplesGenes(datExpr0)
Flagging genes and samples with too many missing values...
..step 1
Error in goodGenes(datExpr, weights, goodSamples, goodGenes, minFraction = minFraction, :
datExpr must contain numeric data.
要数值型数据,可是我的数据就是数值型啊,
> head(datExpr0[,1:25])
ENSRNOG00000013271 ENSRNOG00000013279 ENSRNOG00000002229 ENSRNOG00000002227
gene_id "ENSRNOG00000013271" "ENSRNOG00000013279" "ENSRNOG00000002229" "ENSRNOG00000002227"
S1_rep1 "1.924311e+01" "0.000000e+00" "4.457468e+00" "1.446991e+00"
S1_rep2 "2.080122e+01" "7.886034e-02" "4.255532e+00" "1.439980e+00"
S1_rep3 "2.174656e+01" "6.991147e-02" "4.070721e+00" "1.508728e+00"
S2_rep1 "1.951978e+01" "1.032531e-01" "4.194843e+00" "1.308709e+00"
S2_rep2 "1.813810e+01" "0.000000e+00" "3.615179e+00" "1.403450e+00"
到底哪出错了?