Open Sam-Will opened 2 years ago
Hi @SamWilliamsUOB , I retrieved the same error with anaconda3, and network files were properly generated but there was no tree constructed.
With docker worked fine, though.
Managed to get this script to work with the --clans-off flag
Seems like scikit-learn's Affinity propagation was the cause.. which version do you have installed?
Hi Jorge,
So looks like 1.0.2 for sklearn
>>> import sklearn
>>> print(sklearn.__version__)
1.0.2
Thanks, Sam
Could you try with v0.19.2?
FYI, I had a similar error with --mix and --cutoffs above ~0.4.
/lustre/BIF/nobackup/reitz001/mambaforge/envs/bigscape/lib/python3.6/site-packages/sklearn/cluster/_affinity_propagation.py:247: ConvergenceWarning: Affinity propagation did not converge, this model will not have any cluster centers.
"will not have any cluster centers.", ConvergenceWarning)
Traceback (most recent call last):
File "/home/reitz001/lustre/software/BiG-SCAPE/bigscape.py", line 3042, in <module>
clanCutoff=options.clan_cutoff, htmlFolder=network_html_folder)
File "/home/reitz001/lustre/software/BiG-SCAPE/bigscape.py", line 1459, in clusterJsonBatch
labels[bgcExt2Int[bgcSub2Ext_[i]]] = bgcExt2Int[bgcSub2Ext_[exemplarsSub[labelsSub[i]]]]
IndexError: list index out of range
Downgrading sklearn from v0.24.2 to v0.19.2 solved it.
Running BiG-SCAPE but getting an IndexError when adding the '--mix' flag.
Below is the submission script used which works fine without the --mix flag but produces the error message below when its added. Any ideas what might be happening?
Thanks, Sam