rna_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 writes

Initialize zarr for PsiCoverage over many prefixes. Saves all information except dimensions that are prefix-specific. This enables multithreaded (or multiprocess) write with PsiCoverage.to_zarr_slice()

Parameters:
  • path (Union[str, Path]) – Path for output Zarr for psicoverage output

  • events_df (xarray.Dataset) – Dataset encoding psicoverage events (Events.save_df, PsiCoverage.events_df, etc.)

  • prefixes (Sequence[str]) – Values for the prefix dimension coordinate

  • num_bootstraps (int) – Number of bootstrap replicates that will be used

  • cov_dtype (type) – What type to use for psi/total_coverage arrays

  • psicov_attrs (Dict[Hashable, Any]) – Attributes to include