save#
- DE.save(directory, /, *, overwrite=False)[source]#
Save a DE object to directory (which must not exist unless overwrite=True, and will be created) with the table at table.parquet.
If the DE object contains voom info (i.e. was created with return_voom_info=True in Pseudobulk.de(), the default), also saves each cell type’s voom weights and voom plot data to f’{cell_type}_voom_weights.parquet’ and f’{cell_type}_voom_plot_data.parquet’, as well as a text file, cell_types.txt, containing the cell types.
- Parameters:
directory: str | Path
the directory to save the DE object to
overwrite: bool
if False, raises an error if the directory exists; if True, overwrites files inside it as necessary
- Return type:
None