-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] anvio-cluster-contigs fails with CONCOCT #2154
Comments
I confirmed this occurs in v8 as well. |
Ok figured this out. Turns out it is a known issue with CONCOCT due to the fact that it is no longer compatible with the latest versions of sklearn. If CONCOCT was installed with Conda this would not be an issue as the Conda recipe caps the sklearn version. However that is not the case if one follows the anvio instructions. @meren what's the best solution here? Either change the way CONCOCT is installed to use Conda, or change the Anvi'o instructions to use either A) a singularity container of CONCOCT (a pain) or B) cap the sklearn version of anvi'o (probably a pain later since CONCOCT doesn't seem to be maintained), and there's always C) nothing but print a warning. |
I confirmed this by doing |
Thank you very much for looking into this, @Ge0rges. I'll take a look and see if I can come up with a workaround for this. The current version of sklearn is |
I did same and concoct worked fine but I wonder if running pip install scikit-learn==1.1.0 could break Anvio rules somewhere else ? |
Since you were able to do the downgrade, it means the environment is stable. If this version breaks something, you will certainly notice that :) I think you're good. |
I am getting a new error with ecophylo workflow which was working fine before ```
|
Hi @Sabrin2020 can you confirm that it worked just by changing the scikit-learn version? i.e. if you upgrade scikit it works again? |
I just did that as test by going back to |
I would open a separate issue with your error with steps to reproduce. |
This is weird. Under no circumstance a change in scikit version number should cause an error in the threads module of Python. Probably these two things are independent :( But as a test, you can reinstall the anvi'o environment from scratch to see if you can reproduce it, @Sabrin2020. |
@meren reinstalled the anvi'o environment and no loger have this error |
@meren may be useful to add a warning about this somewhere near the CONCOCT installation instructions on the website perhaps. |
I agree. Since we are no longer doing a lot of genome binning in the lab, those parts of the code and documentation is at the mercy of those who are using them outside :) If someone could formulate a warning text I could immediately put it somewhere in our installation instructions. |
Sure, meant to be somewhere near the CONCOCT install instructions:
|
Thank you @Ge0rges. I updated the installation instructions. Now there is a little note that looks like this: |
Short description of the problem
This issue is meant to represent the following discord thread. I too encountered this error and decided to open this since nobody else has. It seems anvio is not interacting with CONCOCT properly.
anvi'o version
System info
Using rocky linux and installed following the dev instructions on the website.
Detailed description of the issue
In my case I ran
anvi-cluster-contigs -p SAMPLES-MERGED/PROFILE.db -c CONTIGS.db --driver concoct -T 80 --clusters 10 -C METABINS --just-do-it
. I then obtained a config error from anvio complaining it's missing a file. I went to the log and see:Files / commands to reproduce the issue
anvi-cluster-contigs -p SAMPLES-MERGED/PROFILE.db -c CONTIGS.db --driver concoct -T 80 --clusters 10 -C METABINS --just-do-it
My files are too big to share unfortunately.
The text was updated successfully, but these errors were encountered: