gdata.utils.bw_to_w5z#
- gdata.utils.bw_to_w5z(input, output, *, zfp=None, compression_level=19, tolerance=0.0, norm_factor=None)#
Convert a BigWig file to a compressed HDF5 file with optional ZFP compression and normalization.
- Parameters:
input (str) – Path to the input BigWig file or a URL.
output (PathBuf) – Path to the output HDF5 file.
zfp (Optional[bool]) – Whether to use ZFP compression. If None, it will be determined automatically.
compression_level (int) – Compression level for ZFP (1-21). Higher values yield better compression but are slower.
tolerance (float) – Tolerance for ZFP compression. Higher values yield better compression but lower precision.
norm_factor (Optional[float]) – If provided, the data will be normalized such that the total sum equals this factor.
- Return type:
None