save#
missionbio.mosaic.io.save
- save(sample: Union[Sample, SampleGroup], path: Any, raw: bool = False, mode: str = 'w-') None #
Save the analyzed sample as .h5.
- Parameters:
- sample:
The sample to be saved.
- path:
The path to save it to.
- raw:
Whether to save the raw counts of the assays or not.
- mode:
- mode to open the h5 file with
r+ Read/write, file must exist w- Create file, raise error if file exists (default) w Create file, truncate if exists a Read/write if exists, create otherwise
< Module io