Skip to content

Clustergrams do not show dendrograms #527

@danlovesbiophysics

Description

@danlovesbiophysics

Describe the bug
Clustergram is missing both dendrograms

To Reproduce

import dash_bio as dashbio
import pandas as pd

df = pd.read_csv(
    'https://raw.githubusercontent.com/plotly/dash-bio-docs-files' +
    '/master/clustergram_mtcars.tsv',
    sep='	', skiprows=4
).set_index('model')

data = df.values

fig = dashbio.Clustergram(
  data=data,
  color_threshold={'row': 150, 'col': 700},
  column_labels=list(df.columns.values),
  row_labels=list(df.index),
  hidden_labels=['row'],
  width=600
)

fig.show()

Note, this code throws a warning that could be relevant:

python3.8/site-packages/plotly/tools.py:461: DeprecationWarning:
plotly.tools.make_subplots is deprecated, please use plotly.subplots.make_subplots instead

Expected behavior
Should show the heatmap + side/top dendrograms

Screenshots

Screen Shot 2020-11-05 at 2 54 16 PM

Python version: [e.g., 3.7.2]

3.8

Python environment (all installed packages in your current environment):

dash_bio 0.4.8
pandas 1.1.4
plotly 4.12.0

Additional context
The missing dendrograms also affect the "Clustergram Examples and Reference" page at https://dash.plotly.com/dash-bio/clustergram

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions