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

remove smiles prediction #289

Merged
merged 2 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
362 changes: 0 additions & 362 deletions src/nplinker/genomics/aa_pred.py

This file was deleted.

22 changes: 0 additions & 22 deletions src/nplinker/genomics/bgc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
import logging
from typing import TYPE_CHECKING
from typing import Any
from deprecated import deprecated
from nplinker.strain import Strain
from .aa_pred import predict_aa


if TYPE_CHECKING:
Expand Down Expand Up @@ -240,23 +238,3 @@ def _to_string(value: Any) -> str:
else:
formatted_value = str(value)
return formatted_value

# CG: why not providing whole product but only amino acid as product monomer?
# this property is not used in NPLinker core business.
@property
@deprecated(version="2.0.0", reason="This method will be removed soon")
def aa_predictions(self) -> list:
"""Amino acids as predicted monomers of product.

Returns:
list of dicts with key as amino acid and value as prediction
probability.
"""
# Load aa predictions and cache them
self._aa_predictions = None
if self._aa_predictions is None:
self._aa_predictions = {}
if self.antismash_file is not None:
for p in predict_aa(self.antismash_file):
self._aa_predictions[p[0]] = p[1]
return [self._aa_predictions]
Loading
Loading