prolint.config¶
ProLint configuration module.
This module provides configuration classes, enums, and utilities for customizing ProLint behavior.
Submodules¶
Attributes¶
Classes¶
Time unit options for contact duration analysis. |
|
Normalization methods for contact durations. |
|
Conversion factors from time units to seconds. |
|
Simulation parameters for contact calculations. |
Functions¶
|
Load the ProLint color theme from JSON file. |
|
Convert hex color string to RGB tuple. |
|
Convert color dict to RGBA tuple. |
|
Interpolate a color from a gradient based on value. |
|
Get a hex color for a value from a discrete color scale. |
|
Get display label for a time unit. |
|
Configure logging for ProLint. |
|
Get a child logger for a ProLint module. |
Package Contents¶
- class prolint.config.TimeUnit[source]¶
-
Time unit options for contact duration analysis.
- FEMTOSECOND = 'fs'¶
- PICOSECOND = 'ps'¶
- NANOSECOND = 'ns'¶
- MICROSECOND = 'us'¶
- MILLISECOND = 'ms'¶
- SECOND = 's'¶
- class prolint.config.NormalizationMethod[source]¶
-
Normalization methods for contact durations.
- COUNTS = 'counts'¶
- ACTUAL_TIME = 'actual_time'¶
- class prolint.config.UnitConversionFactor(*args, **kwds)[source]¶
Bases:
enum.EnumConversion factors from time units to seconds.
Each member’s value represents the unit in seconds.
- fs = 1e-15¶
- ps = 1e-12¶
- ns = 1e-09¶
- us = 1e-06¶
- ms = 0.001¶
- s = 1.0¶
- prolint.config.load_theme() Dict[source]¶
Load the ProLint color theme from JSON file.
- Returns:
Theme configuration containing colors, gradients, and amino acid mappings.
- Return type:
- prolint.config.hex_to_rgb(hex_color: str) Tuple[int, int, int][source]¶
Convert hex color string to RGB tuple.
- prolint.config.color_to_tuple(color: Dict, normalize: bool = True) Tuple[float, float, float, float][source]¶
Convert color dict to RGBA tuple.
- prolint.config.interpolate_gradient(value: float, min_val: float, max_val: float, gradient_name: str = 'sharedContacts') Tuple[float, float, float, float][source]¶
Interpolate a color from a gradient based on value.
- Parameters:
- Returns:
Interpolated RGBA color values (0-1 range).
- Return type:
- prolint.config.get_color_for_value(value: float, scale_name: str = 'prolint', vmin: float = 0, vmax: float = 1) str[source]¶
Get a hex color for a value from a discrete color scale.
- prolint.config.setup_logging(level: int = logging.INFO, format_string: str | None = None, simple: bool = False) logging.Logger[source]¶
Configure logging for ProLint.
- Parameters:
- Returns:
Configured ProLint logger instance.
- Return type:
- prolint.config.get_logger(name: str) logging.Logger[source]¶
Get a child logger for a ProLint module.
- Parameters:
name (str) – Module name (will be prefixed with “prolint.”).
- Returns:
Logger instance for the specified module.
- Return type: