Skip to content

Commit

Permalink
remove smiles prediction (#289)
Browse files Browse the repository at this point in the history
we decided on the community meeting to remove SMILES prediction.
  • Loading branch information
CunliangGeng authored Dec 11, 2024
1 parent 481a068 commit 5515fdf
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 434 deletions.
362 changes: 0 additions & 362 deletions src/nplinker/genomics/aa_pred.py

This file was deleted.

8 changes: 0 additions & 8 deletions src/nplinker/genomics/antismash/antismash_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ def parse_bgc_genbank(file: str | PathLike) -> BGC:
bgc.antismash_id = antismash_id
bgc.antismash_file = str(file)
bgc.antismash_region = features.get("region_number")
bgc.smiles = features.get("smiles")
bgc.strain = Strain(fname)
return bgc

Expand All @@ -154,11 +153,4 @@ def _parse_antismash_genbank(record: SeqRecord.SeqRecord) -> dict:
# biopython assumes region numer is a list, but it's actually an int
features["region_number"] = feature.qualifiers.get("region_number")[0]
features["product"] = feature.qualifiers.get("product")
if feature.type == "cand_cluster":
smiles = feature.qualifiers.get("SMILES")
# space is not allowed in SMILES spec
# biopython generates space when reading multi-line SMILES from .gbk
if smiles is not None:
smiles = tuple(i.replace(" ", "") for i in smiles)
features["smiles"] = smiles
return features
Loading

0 comments on commit 5515fdf

Please sign in to comment.