_Assay.copy
_Assay.copy#
- _Assay.copy(rows: Optional[numpy.ndarray] = None, cols: Optional[numpy.ndarray] = None) missionbio.h5.data.assay.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.
- Args:
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