lmpy.data_wrangling.matrix.subset_reorder_slices_wrangler

Module containing data wranglers for subsetting and reordering matrix slices.

Module Contents

Classes

SubsetReorderSlicesWrangler

Constructor for PurgeEmptySlicesWrangler class.

class lmpy.data_wrangling.matrix.subset_reorder_slices_wrangler.SubsetReorderSlicesWrangler(axes, **params)[source]

Bases: lmpy.data_wrangling.matrix.base._MatrixDataWrangler

Constructor for PurgeEmptySlicesWrangler class.

Parameters
  • axes (dict) – A dictionary of axis keys (int or str of int) and list of values of those headers to keep.

  • **params (dict) – Keyword parameters to pass to _MatrixDataWrangler.

name = SubsetReorderSlicesWrangler[source]
version = 1.0[source]
wrangle_matrix(matrix)[source]

Wrangle a matrix.

Parameters

matrix (Matrix) – A matrix to wrangle.

Returns

The matrix with empty slices purged.

Return type

Matrix