Question: error in running R
0
mim <- build.mim(data.matrix(mycounts),estimator="spearman")
Do you have row/column names in mycounts? If so, change these to headers and row.names
.
Otherwise, try:
as.numeric(mycounts)
instead of just mycounts
as suggested above.
thank you,
I tried,
mycounts <- as.matrix(read.table("file.txt", sep="\t", header=TRUE))
then
res_aracne <- build.mim(mycounts,estimator = "spearman")
also
mim <- build.mim(as.numeric(mycounts),estimator="spearman")
and
mim <- build.mim(data.matrix(mycounts),estimator="spearman")
as.numeric(mycounts)
but all the same error