Skip to content

Error only when ploting interactive #67

@Artifice120

Description

@Artifice120

Thanks for such a convenient visualization tool for KEGG enrichment

Unfortunately when I run the following command:

KEGG-decoder --input ko-list-fmt-fmt.txt --output pan-small-rick8 --newick rickkys.newick --vizoption interactive

I recieve this error :

Traceback (most recent call last):
  File "/lustre/isaac/scratch/jtorre28/enviro/mamba/micro/envs/kegg-dc/bin/KEGG-decoder", line 8, in <module>
    sys.exit(main())
  File "/lustre/isaac/scratch/jtorre28/enviro/mamba/micro/envs/kegg-dc/lib/python3.6/site-packages/KEGGDecoder/KEGG_decoder.py", line 1714, in main
    plotly_viz(genome, os.path.splitext(filehandle)[0] + ".html")
  File "/lustre/isaac/scratch/jtorre28/enviro/mamba/micro/envs/kegg-dc/lib/python3.6/site-packages/KEGGDecoder/Plotly_viz.py", line 16, in plotly_viz
    Correlation_genome_df = hClust_correlation(genome_df)
  File "/lustre/isaac/scratch/jtorre28/enviro/mamba/micro/envs/kegg-dc/lib/python3.6/site-packages/KEGGDecoder/KEGG_clustering.py", line 23, in hClust_correlation
    linkage_matrix = linkage(genome_df, method='single', metric='correlation')
  File "/lustre/isaac/scratch/jtorre28/enviro/mamba/micro/envs/kegg-dc/lib/python3.6/site-packages/scipy/cluster/hierarchy.py", line 1061, in linkage
    raise ValueError("The condensed distance matrix must contain only "
ValueError: The condensed distance matrix must contain only finite values.

I have removed spacial characters from the names to be safe as follows

GCA000012385            K09773
GCA000012385            K03671
GCA000012385            K09691
GCA000012385            K09690
GCA000012385
GCA000012385            K03503
GCA000012385
GCA000012385
GCA000012385
GCA000012385            K00995

Even stranger all other plots, including the scatter gram, were able to plot correctly.

Many thanks for any input you can give

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions