cozygene / FEAST

Fast expectation maximization for microbial source tracking
Other
115 stars 60 forks source link

demo data error: Error in rowSums(C[c(train.ix, test.ix), ]) 'x' must be an array of at least two dimensions #61

Open lorenzovergani89 opened 5 months ago

lorenzovergani89 commented 5 months ago

Hello, I am trying to reproduce the demo data but when I run the function: FEAST_output <- FEAST(C = otus, metadata = metadata, different_sources_flag = 1, outfile="demo")

I get the following error, and cannot figure it out: Error in rowSums(C[c(train.ix, test.ix), ]) 'x' must be an array of at least two dimensions

I am using R Studio with R version 4.3.0

Thanks

Elizasurefire commented 5 months ago

hi! I'm having the same problem as you. I wonder if you have solved it now? I'll check and check again in the next few days

AprilJauhal commented 5 months ago

Hello, How what branch of FEAST did you install? If you used devtools::install_github("cozygene/FEAST", ref = "FEAST_beta") try using devtools::install_github("cozygene/FEAST") instead. If necessary you can uninstall the older version first using: remove.packages("FEAST").

lorenzovergani89 commented 4 months ago

Hi, thankyou for your answers and sorry for the late reply. It worked with this:

devtools::install_github("cozygene/FEAST", force = TRUE)

I could not manage to do it without forcing the installation.