Skip to content
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

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

Open
Jesuk555 opened this issue Mar 6, 2024 · 0 comments

Comments

@Jesuk555
Copy link

Jesuk555 commented Mar 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant