Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate the method _load_class_info #198

Merged
merged 3 commits into from
Jan 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/nplinker/loader.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import glob
import os
from pathlib import Path
from deprecated import deprecated
from nplinker.class_info.chem_classes import ChemClassPredictions
from nplinker.class_info.class_matches import ClassMatches
from nplinker.class_info.runcanopus import run_canopus
Expand Down Expand Up @@ -131,6 +132,8 @@ def __init__(self, config_data):
self.webapp_scoring_cutoff = self._config_webapp.get(
"tables_metcalf_threshold", self.TABLES_CUTOFF_DEFAULT
)
self.class_matches = None
self.chem_classes = None

logger.debug(
"DatasetLoader({}, {}, {})".format(self._root, self.dataset_id, self._remote_loading)
Expand Down Expand Up @@ -197,9 +200,6 @@ def load(self):
if not self._load_genomics():
return False

if not self._load_class_info():
return False

self._load_optional()

# Restrict strain list to only relevant strains (those that are present
Expand Down Expand Up @@ -519,6 +519,7 @@ def _run_bigscape(self):

self.bigscape_dir = find_bigscape_dir(self.bigscape_dir)

@deprecated(reason="To be refactored. It was used in the `self.load` method before.")
def _load_class_info(self):
"""Load class match info (based on mibig) and chemical class predictions.

Expand Down
Loading