_Assay.copy

Contents

_Assay.copy#

missionbio.mosaic.assay._Assay.copy

_Assay.copy(rows: Optional[ndarray] = None, cols: Optional[ndarray] = None) Assay#

Create a duplicate of the assay.

If a subset of the rows and cols are chosen then this uses less memory than deepcopy since only a slice of the data is copied. Also, the metadata is modified if a sample is dropped while selecting the rows.

Parameters:
  • rows – Rows to copy. All rows copied by default.

  • cols – Columns to copy. All Columns copied by default.

Returns:

Assay with selected rows and columns


< Class _Assay