cozygene / FEAST

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

Erreur dans if (sum(x[i, ]) > maxdepth) { : valeur manquante là où TRUE / FALSE est requis #28

Open zina-R opened 2 years ago

zina-R commented 2 years ago

I am trying to run FEAST on a 16S dataset of my samples and have encountered an error while running the algorithm. In my metadata file, I have multiple sinks. Unfortunately, the rownames of the two files are identical Commands and error below:

metadata <- Load_metadata(metadata_path = "E:\\cc\\FEAST\\metadata.txt")
otus <- Load_CountMatriCountMatrix_path = "E:\\cc\\Desktop\\FEAST\\OTUS.txt")

FEAST_output <- FEAST(C = otus, metadata = metadata, different_sources_flag = 1, dir_path = "E:\\cc\\Desktop\\FEAST\\",
                      outfile="demo")

Erreur dans if (sum(x[i, ]) > maxdepth) { : valeur manquante là où TRUE / FALSE est requis

Can you help me to fix this error please ? and in the next command should i change it also ?

PlotSourceContribution(SinkNames = rownames(FEAST_output)[c(5:8)],
                       SourceNames = colnames(FEAST_output), dir_path = "E:\\cc\\Desktop\\FEAST\\",
                       mixing_proportions = FEAST_output, Plot_title = "Test_",Same_sources_flag = 0, N = 4)

Thank you

liashenhav commented 2 years ago

Do the sample ids in the metadata match the row names in the count matrix? You are also welcome to share your data files (feature table and metadata) so I can have a look. My email is: liashenhav@gmail.com

Best, Liat

zina-R commented 2 years ago

Dear Liat, i sent you my data by email. I didn't find from where is this mistake. Thank you, Zeina