data module
This module loads and manages all data required for pLAST, including models, metadata, cluster mappings, and GenBank features. It provides lazy loading for efficient resource usage.
- class plast.data.PLASTData(config_dict=None)
Bases:
objectStores all data required for pLAST, including models, metadata, cluster mappings, and GenBank features. Provides lazy loading for efficient resource usage.
- Parameters:
config_dict (dict or None) – Configuration dictionary with file paths and model info.
- get_model(model_name)
Get the model by name, loading it if necessary.
- Parameters:
model_name (str) – Name of the model to retrieve.
- Returns:
Loaded PLASTModel object.
- Return type:
- Raises:
DataLoadingError – If model is not found in configuration.