Skip to content

Commit

Permalink
no smiles generation for chains flag and hydrophobic interactions ref…
Browse files Browse the repository at this point in the history
…inement for chains flag.
  • Loading branch information
Sarah Naomi Bolz committed Dec 16, 2024
1 parent b2ddc60 commit b42655a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plip/structure/preparation.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ def refine_hydrophobic(all_h, pistacks):
hydroph = [h for h in sel2.values()]
hydroph_final = []
# 3. If a protein atom interacts with several neighboring ligand atoms, just keep the one with the closest dist
if config.PEPTIDES or config.INTRA:
if config.PEPTIDES or config.INTRA or config.CHAINS:
# the ligand also consists of amino acid residues, repeat step 2 just the other way around
sel3 = {}
for h in hydroph:
Expand Down Expand Up @@ -1060,7 +1060,7 @@ def __init__(self, cclass, ligand):
self.complex = cclass
self.molecule = ligand.mol # Pybel Molecule
# get canonical SMILES String, but not for peptide ligand (tend to be too long -> openBabel crashes)
self.smiles = "" if (config.INTRA or config.PEPTIDES) else self.molecule.write(format='can')
self.smiles = "" if (config.INTRA or config.PEPTIDES or config.CHAINS) else self.molecule.write(format='can')
self.inchikey = self.molecule.write(format='inchikey')
self.can_to_pdb = ligand.can_to_pdb
if not len(self.smiles) == 0:
Expand Down

0 comments on commit b42655a

Please sign in to comment.