marsilea.Deformation#

class Deformation(data)#

Bases: object

A helper class to handle data

  1. Split the data based on index

  2. Reorder the data based on label order

  3. Reorder the data based on cluster order

  4. Compute the ratio to split axes that match with data

cluster_col()#
cluster_row()#
col_breakpoints#

Forward Deformation.<row|col>_<name> to its per-axis state.

col_chunk_index#

Forward Deformation.<row|col>_<name> to its per-axis state.

col_cluster_kws#

Forward Deformation.<row|col>_<name> to its per-axis state.

col_dendrogram#

Forward Deformation.<row|col>_<name> to its per-axis state.

col_linkage#

Forward Deformation.<row|col>_<name> to its per-axis state.

col_meta_linkage#

Forward Deformation.<row|col>_<name> to its per-axis state.

property col_ratios#
col_reorder_index#

Forward Deformation.<row|col>_<name> to its per-axis state.

col_split_order#

Forward Deformation.<row|col>_<name> to its per-axis state.

data_col_reindex#

Forward Deformation.<row|col>_<name> to its per-axis state.

data_row_reindex#

Forward Deformation.<row|col>_<name> to its per-axis state.

get_col_dendrogram()#
get_col_linkage()#
get_data()#
get_row_dendrogram()#
get_row_linkage()#
property is_cluster#
is_col_cluster#

Forward Deformation.<row|col>_<name> to its per-axis state.

is_col_split#

Forward Deformation.<row|col>_<name> to its per-axis state.

is_row_cluster#

Forward Deformation.<row|col>_<name> to its per-axis state.

is_row_split#

Forward Deformation.<row|col>_<name> to its per-axis state.

property is_split#
reorder_by_col(data, split='2d')#
reorder_by_row(data, split='2d')#
row_breakpoints#

Forward Deformation.<row|col>_<name> to its per-axis state.

row_chunk_index#

Forward Deformation.<row|col>_<name> to its per-axis state.

row_cluster_kws#

Forward Deformation.<row|col>_<name> to its per-axis state.

row_dendrogram#

Forward Deformation.<row|col>_<name> to its per-axis state.

row_linkage#

Forward Deformation.<row|col>_<name> to its per-axis state.

row_meta_linkage#

Forward Deformation.<row|col>_<name> to its per-axis state.

property row_ratios#
row_reorder_index#

Forward Deformation.<row|col>_<name> to its per-axis state.

row_split_order#

Forward Deformation.<row|col>_<name> to its per-axis state.

set_cluster(col=None, row=None, use_meta=True, linkage=None, meta_linkage=None, **kwargs)#
set_col_chunk_order(order)#
set_data(data)#
set_data_col_reindex(reindex)#
set_data_row_reindex(reindex)#
set_row_chunk_order(order)#
set_split_col(breakpoints=None, order=None)#
set_split_row(breakpoints=None, order=None)#
split_by_col(data)#
split_by_row(data)#
split_cross(data)#
transform(data)#

data must be 2d array with the same shape as cluster data

transform_col(data)#

Deform data whose last axis indexes columns.

transform_row(data)#

Deform data whose last axis indexes rows.