You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...got 4051 x 4051 matrix.
loading labels from compare_viral_sigs.labels.txt
saving histogram of matrix values => compare_viral_sigs.hist.pdf
Traceback (most recent call last):
File "/home/dosiaa/miniconda2/envs/sourmash_env/bin/sourmash", line 6, in<module>sys.exit(sourmash_lib.__main__.main())
File "/home/dosiaa/miniconda2/envs/sourmash_env/lib/python2.7/site-packages/sourmash_lib/__main__.py", line 76, in main
cmd(sys.argv[2:])
File "/home/dosiaa/miniconda2/envs/sourmash_env/lib/python2.7/site-packages/sourmash_lib/commands.py", line 509, in plot
Z1 = sch.dendrogram(Y, orientation='right', labels=labeltext)
File "/home/dosiaa/miniconda2/envs/sourmash_env/lib/python2.7/site-packages/scipy/cluster/hierarchy.py", line 2496, in dendrogram
above_threshold_color=above_threshold_color)
File "/home/dosiaa/miniconda2/envs/sourmash_env/lib/python2.7/site-packages/scipy/cluster/hierarchy.py", line 2782, in _dendrogram_calculate_info
above_threshold_color=above_threshold_color)
File "/home/dosiaa/miniconda2/envs/sourmash_env/lib/python2.7/site-packages/scipy/cluster/hierarchy.py", line 2782, in _dendrogram_calculate_info
above_threshold_color=above_threshold_color)
File "/home/dosiaa/miniconda2/envs/sourmash_env/lib/python2.7/site-packages/scipy/cluster/hierarchy.py", line 2782, in _dendrogram_calculate_info
above_threshold_color=above_threshold_color)
File "/home/dosiaa/miniconda2/envs/sourmash_env/lib/python2.7/site-packages/scipy/cluster/hierarchy.py", line 2782, in _dendrogram_calculate_info
above_threshold_color=above_threshold_color)
File "/home/dosiaa/miniconda2/envs/sourmash_env/lib/python2.7/site-packages/scipy/cluster/hierarchy.py", line 2782, in _dendrogram_calculate_info
above_threshold_color=above_threshold_color)
File "/home/dosiaa/miniconda2/envs/sourmash_env/lib/python2.7/site-packages/scipy/cluster/hierarchy.py", line 2782, in _dendrogram_calculate_info
above_threshold_color=above_threshold_color)
File "/home/dosiaa/miniconda2/envs/sourmash_env/lib/python2.7/site-packages/scipy/cluster/hierarchy.py", line 2782, in _dendrogram_calculate_info
above_threshold_color=above_threshold_color)
File "/home/dosiaa/miniconda2/envs/sourmash_env/lib/python2.7/site-packages/scipy/cluster/hierarchy.py", line 2782, in _dendrogram_calculate_info
above_threshold_color=above_threshold_color)
File "/home/dosiaa/miniconda2/envs/sourmash_env/lib/python2.7/site-packages/scipy/cluster/hierarchy.py", line 2782, in _dendrogram_calculate_info
above_threshold_color=above_threshold_color)
File "/home/dosiaa/miniconda2/envs/sourmash_env/lib/python2.7/site-packages/scipy/cluster/hierarchy.py", line 2782, in _dendrogram_calculate_info
above_threshold_color=above_threshold_color)
# and over and over with the same message
As you can see it's a pretty huge matrix. I tried on a subset of 195x195 comparisons and the sourmash plot succeeded. I guess there's some issue with the matrix size then :) Any idea on how to overcome this problem? Should it be useful, here's an archive with both the matrix and the labels.
I am using sourmash from conda with python2, indeed after installing it I updated sourmash itself to version 2 through pip. Here's the output of conda list within the environment. FYI, I tried with both scipy 1.0.0 and 0.19.1, that's why you see that downgraded version.
We addressed (some of this) behavior in #343, where you can get a plot with a random subsample which should reflect the overall structure.
#217 allows you to export a CSV format so that you can use other tools than sourmash plot to plot these matrices.
I don't know how to support plotting huge matrices in sourmash by default tho :). Guidance welcome as to better/more scalable packages!
The only better solution I can think of might be to support truncation of clusters down to some value, e.g. '--truncate 200' would do a clustering and truncate the dendrogram at clusters. See truncate_mode in scipy.cluster.hierarchy.dendrogram - docs link.
Hello,
When I try to run
sourmash plot
like thisI get this error:
As you can see it's a pretty huge matrix. I tried on a subset of 195x195 comparisons and the
sourmash plot
succeeded. I guess there's some issue with the matrix size then :) Any idea on how to overcome this problem? Should it be useful, here's an archive with both the matrix and the labels.I am using sourmash from conda with python2, indeed after installing it I updated sourmash itself to version 2 through pip. Here's the output of
conda list
within the environment. FYI, I tried with both scipy 1.0.0 and 0.19.1, that's why you see that downgraded version.Thanks,
Domenico
The text was updated successfully, but these errors were encountered: