Skip to content

Clustergram not reordering heat-map rows #432

Description

@plpla

Describe the bug
Clustergram is not using the order provided by the clustering method and dendrogram to display the heat-map.

To Reproduce
Steps to reproduce the behavior:

import numpy as np
import dash_bio
from plotly.offline import iplot, init_notebook_mode

init_notebook_mode()
data = np.array([[1,1,1,1], 
        [3,3,3,3],
        [1,1,1,1],
        [3,3,3,3],
        [1,1,1,1],
        [3,3,3,3]])

iplot(dash_bio.Clustergram(
    data=np.array(data),
    center_values=False
))

Expected behavior
A clear and concise description of what you expected to happen.
Heat-map rows reordering based on the clustering result.

Screenshots
If applicable, add screenshots to help explain the issue.
image

Python version: [e.g., 3.7.2]
3.7.4
Python environment (all installed packages in your current environment):

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

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