new_majiq.PsiCoverage.to_zarr_slice_init
- classmethod PsiCoverage.to_zarr_slice_init(path, events_df, prefixes, num_bootstraps, cov_dtype=<class 'numpy.float32'>, psicov_attrs=None)
Initialize zarr store for saving
PsiCoverage
over many writesInitialize zarr for
PsiCoverage
over many prefixes. Saves all information except dimensions that are prefix-specific. This enables multithreaded (or multiprocess) write withPsiCoverage.to_zarr_slice()
- Parameters:
path (
Union[str
,Path]
) – Path for output Zarr for psicoverage outputevents_df (
xarray.Dataset
) – Dataset encoding psicoverage events (Events.save_df, PsiCoverage.events_df, etc.)prefixes (
Sequence[str]
) – Values for the prefix dimension coordinatenum_bootstraps (
int
) – Number of bootstrap replicates that will be usedcov_dtype (
type
) – What type to use for psi/total_coverage arrayspsicov_attrs (
Dict[Hashable
,Any]
) – Attributes to include
See also