-
Notifications
You must be signed in to change notification settings - Fork 3
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
ValueError: The condensed distance matrix must contain only finite values #3
Comments
There're a couple of combinations of rows having lot of 0s and when calculating the correlation both of the numerator and denominator being 0 will result in NaN. |
Thanks for the explanation @fbeghini. Does this mean hclust2 cannot process this merged abundance file created by metaphlan? Can this be handled in a different way by the program or do users need a manual workaround? |
I'd filter out only the entries on the species level first, and then maybe try a different method for species/feature distance calculation |
Hi there, I'm having the exact same issue as nitishnih when trying to generate a heat map (using hclust2) from a merged abundance table generated by metaphlan3. I also followed the step for altering the abundance table by removing the header and the NCBI_tax_id column. I was just wondering if this issue had been fixed or resolved? Or is the recommended advice to use an alternative species/feature distance calculation method? |
Kindly Respond to the issue on biobakery help forum regarding the same issue or please explain here itself that how to resolve the error when rows are having 0 values ? how to remove them from the merged_abundance_table_species_table.txt ? |
I'm having this issue too. What's the fix? |
I am also having this issue |
It confused me many days. |
I also encountered this error. |
maybee you want to check: https://forum.biobakery.org/t/hclust2-py-error-distance-matrix-finite-values/1732/2 I would appreciate if somebody can tell me if the change is valid or not. |
Just a note that I also see this, including with the example data that comes with this repo using the
Using:
|
Hi, Regarding your specific error, I think that if you discard the Cheers, |
I have the same problem, I am using it in a cluster whose system is similar to Linux, do you know how to solve it? |
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:
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:
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.
The text was updated successfully, but these errors were encountered: