gunz_cm package
Subpackages
- gunz_cm.cli package
- gunz_cm.converters package
- gunz_cm.datasets package
- gunz_cm.io package
- gunz_cm.loaders package
- Submodules
- gunz_cm.loaders.cool_loader module
- gunz_cm.loaders.csv_loader module
- gunz_cm.loaders.ginteractions_loader module
- gunz_cm.loaders.hic_loader module
- gunz_cm.loaders.memmap_loader module
- gunz_cm.loaders.narrowpeaks module
- gunz_cm.loaders.pickle_loader module
- gunz_cm.loaders.utils module
- Module contents
- gunz_cm.metrics package
- gunz_cm.pipeline package
- gunz_cm.preprocs package
- Submodules
- gunz_cm.preprocs.band_matrix module
- gunz_cm.preprocs.commons module
- gunz_cm.preprocs.converters module
- gunz_cm.preprocs.count_filters module
- gunz_cm.preprocs.graphs module
- gunz_cm.preprocs.infer_shape module
- gunz_cm.preprocs.linear_scaler module
- gunz_cm.preprocs.log_scaler module
- gunz_cm.preprocs.masks module
- gunz_cm.preprocs.mirrors module
- gunz_cm.preprocs.noises module
- gunz_cm.preprocs.rc_filters module
- gunz_cm.preprocs.rc_filters_common module
- gunz_cm.preprocs.resamples module
- gunz_cm.preprocs.sparse_wish_dist module
- gunz_cm.preprocs.triu_matrix module
- gunz_cm.preprocs.weight_filters module
- Module contents
- gunz_cm.reconstructions package
- gunz_cm.resolution_enhancements package
- gunz_cm.samplers package
- gunz_cm.structs package
- gunz_cm.utils package
Submodules
gunz_cm.consts module
Defines shared constants, enumerations, and data structures for the library.
This module centralizes common values used throughout the application, including DataFrame column names, data types, supported file formats, and standard genomic build information. Using this module ensures consistency and simplifies maintenance.
Examples
- class gunz_cm.consts.Backend(value)[source]
Bases:
BaseStrEnumEnumeration for interaction matrix loader backends.
Examples
- COOLER = 'cooler'
- HICSTRAW = 'hicstraw'
- HICTK = 'hictk'
- STRAW = 'straw'
- class gunz_cm.consts.Balancing(value)[source]
Bases:
BaseStrEnumEnumeration for matrix balancing (normalization) methods.
Examples
- KR = 'KR'
- NONE = 'NONE'
- VC = 'VC'
- VC_SQRT = 'VC_SQRT'
- class gunz_cm.consts.BpFrag(value)[source]
Bases:
BaseStrEnumEnumeration for binning units (Base Pairs vs. Fragments).
Examples
- BP = 'BP'
- FRAG = 'FRAG'
- class gunz_cm.consts.Counts(value)[source]
Bases:
BaseStrEnumEnumeration for different types of interaction counts.
Examples
- EXPECTED = 'expected'
- OBSERVED = 'observed'
- OE = 'oe'
- gunz_cm.consts.DS
alias of
DataStructure
- class gunz_cm.consts.DataStructure(value)[source]
Bases:
BaseStrEnumEnumeration for in-memory data representations.
Examples
- COO = 'coo'
- DF = 'df'
- RC = 'rc'
- RCV = 'rcv'
- class gunz_cm.consts.Format(value)[source]
Bases:
BaseStrEnumEnumeration for supported file formats.
Uses BaseStrEnum for case-insensitivity and aliases.
Examples
- COO = 'coo'
- COOLER = 'cooler'
- CSV = 'csv'
- GINTERACTIONS = 'ginteractions'
- HIC = 'hic'
- MCOO = 'mcoo'
- MCSV = 'mcsv'
- MEMMAP = 'npdat'
- NPY = 'npy'
- PICKLE = 'pickle'
- TSV = 'tsv'
gunz_cm.exceptions module
Custom exception classes for the gunz_cm package.
Examples
- exception gunz_cm.exceptions.ConversionFailedError(region: str, message: str = 'Conversion failed')[source]
Bases:
ConverterErrorException raised when a conversion process fails.
- regionstr
The region string for which the conversion failed.
- messagestr, optional
A custom error message (default is “Conversion failed”).
Examples
- exception gunz_cm.exceptions.ConverterError[source]
Bases:
GunzCMErrorBase class for exceptions in the converters module.
Examples
- exception gunz_cm.exceptions.DataResolutionError[source]
Bases:
LoaderErrorException raised when there’s an issue with data resolution.
Examples
- exception gunz_cm.exceptions.DatasetError[source]
Bases:
GunzCMErrorBase class for exceptions in the datasets module.
Examples
- exception gunz_cm.exceptions.FormatError[source]
Bases:
LoaderErrorException raised for format-related errors.
Examples
- exception gunz_cm.exceptions.GunzCMError[source]
Bases:
ExceptionBase class for all custom exceptions in the gunz_cm package.
Examples
- exception gunz_cm.exceptions.IOError[source]
Bases:
GunzCMErrorBase class for exceptions related to input/output operations.
Examples
- exception gunz_cm.exceptions.InvalidRegionFormatError(region: str, message: str = 'Invalid region format')[source]
Bases:
LoaderErrorException raised for errors in the input region format.
- regionstr
The invalid region string that caused the error.
- messagestr, optional
A custom error message (default is “Invalid region format”).
Examples
- exception gunz_cm.exceptions.LoaderError[source]
Bases:
GunzCMErrorBase class for exceptions in the loaders module.
Examples
- exception gunz_cm.exceptions.MetricError[source]
Bases:
GunzCMErrorBase class for exceptions in the metrics module.
Examples
- exception gunz_cm.exceptions.PreprocError[source]
Bases:
GunzCMErrorBase class for exceptions in the preprocs module.
Examples
- exception gunz_cm.exceptions.ReconstructionError[source]
Bases:
GunzCMErrorBase class for exceptions in the reconstructions module.
Examples
- exception gunz_cm.exceptions.UnsupportedLoaderFeatureError(feature: str, loader_name: str)[source]
Bases:
LoaderErrorException raised when a loader does not support a requested feature.
- featurestr
The name of the unsupported feature.
- loader_namestr
The name of the loader that does not support the feature.
Examples