-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Hello,
This is error is related to #1. Once that issue was solved and @fbeghini closed it, I reinstalled hclust2 in a conda environment, as follows:
conda create -n hclust
conda activate hclust2
conda config --env --add channels bioconda
conda install --yes hclust2
Using the same merged abundance file mentioned in #1 (created using metaphlan3), I ran the following command:
$ hclust2.py --in merged_abundance_table.txt -l --out heatmap.png
And got the following error:
Traceback (most recent call last):
File "/opt/conda/envs/hclust2/bin/hclust2.py", line 825, in <module>
hclust2_main()
File "/opt/conda/envs/hclust2/bin/hclust2.py", line 805, in hclust2_main
cl.fhcluster()
File "/opt/conda/envs/hclust2/bin/hclust2.py", line 386, in fhcluster
self.fhclusters = sph.linkage(self.f_dm, method=self.args.flinkage)
File "/opt/conda/envs/hclust2/lib/python3.8/site-packages/scipy/cluster/hierarchy.py", line 1057, in linkage
raise ValueError("The condensed distance matrix must contain only "
ValueError: The condensed distance matrix must contain only finite values.
This being a different error than before, I assume that hclust2 on bioconda channel had been updated to fix issue #1. In case I was wrong, I followed the advise @fbeghini posted in #1 to manually remove the first line (containing the string #mpa_v30_CHOCOPhlAn_201901) and the column, NCBI_tax_id, but got the same error.
Looking over the matrix in the merged abundance file, it is not immediately clear why the matrix would contain non-finite values.