new_majiq.PsiCoverage.from_zarr
- classmethod PsiCoverage.from_zarr(path, ec_idx_nchunks=None, prefix_nchunks=1)
Load
PsiCoverage
from one or more specified pathsLoad
PsiCoverage
from one or more specified paths. Prefixes will be concatenated (overlapping prefixes will use values from the first file it is found in).- Parameters:
path (
Union[str
,Path
,List[Union[str
,Path]]]
) – path or paths with PsiCoverage saved in zarr formatec_idx_nchunks, prefix_nchunks (
Optional[int]
) – Number of chunks on disk to group per chunk managed by dask. If None, load all chunks along the dimension together.
- Returns:
rna_majiq.PsiCoverage
– PsiCoverage for prefixes found in all specified files
Notes
Does not check that events are same in each input file. It will fail if they are not the same size, which should catch most cases, but be wary that events information is derived from the first file alone.