Skip to content

The condensed distance matrix must contain only finite values. in hclust2.py  #11

@Jesuk555

Description

@Jesuk555

I am trying to make a heatmap with hclust2.py in cluster slurm with conda, it contains the following files:
1:merged_metagenome.txt
2:hclust2.py

the command was like this:
hclust2.py -i hclust2.py -i merged_metagenome.txt -o heatmap.png -o heat_legends.pdf
The error it shows is the following:
File "/hpcfs/home/cursos/bcom4102/.local/bin/hclust2.py", line 825, in
hclust2_main()
File "/hpcfs/home/cursos/bcom4102/.local/bin/hclust2.py", line 805, in hclust2_main
cl.fhcluster()
File "/hpcfs/home/cursos/bcom4102/.local/bin/hclust2.py", line 386, in fhcluster
self.fhclusters = sph.linkage(self.f_dm, method=self.args.flinkage)
File "/hpcfs/apps/anaconda/3.9/lib/python3.9/site-packages/scipy/cluster/hierarchy.py", line 1065, in linkage
raise ValueError("The condensed distance matrix must contain only "
ValueError: The condensed distance matrix must contain only finite values.

Do you know how to solve this problem? I attach an image of the nerged_metagenome.txt
Captura de pantalla 2024-03-05 232317

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions