borenstein-lab / fishtaco

FishTaco (Functional Shifts Taxonomic Contributors) is a metagenomic computational framework that aims to identify the driver taxa of microbiome functional shifts
Other
23 stars 4 forks source link

Error when trying to change number of folds for cross validation #11

Closed aboderinf closed 3 years ago

aboderinf commented 3 years ago

Hi, When trying to change the num_cv using "--num_cv". I get this error: File "/home/qiime2/miniconda/envs/qiime2-2020.8/lib/python3.6/site-packages/fishtaco/compute_contribution_to_DA.py", line 653, in main if number_of_cases < num_cv: TypeError: '<' not supported between instances of 'numpy.ndarray' and 'str'

From line 618 in compute_contribution_to_DA.py I think this is because python is reading the argument from --num_cv as string, not int.

I would be grateful if this issue can be resolved. Thanks!

engal commented 3 years ago

This should be resolved now.

aboderinf commented 3 years ago

Fixed now. Thank you very much!