Skip to content

Commit 9493331

Browse files
committed
chore: lint
1 parent e9916cc commit 9493331

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

src/plinder/data/pipeline/io.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ def download_affinity_data(
105105
papyrus_raw_affinity_path = (
106106
data_dir / "dbs" / "affinity" / "papyrus_affinity_raw.tar.gz"
107107
)
108-
bindingdb_raw_affinity_path = (
109-
data_dir / "dbs" / "affinity" / "BindingDB_All.tsv"
110-
)
108+
bindingdb_raw_affinity_path = data_dir / "dbs" / "affinity" / "BindingDB_All.tsv"
111109
moad_raw_affinity_path = data_dir / "dbs" / "affinity" / "moad_affinity.csv"
112110

113111
# Make sub directories

src/plinder/data/pipeline/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def load_entries_from_zips(
154154
reduced[pdb_id] = Entry.model_validate_json(obj.read()).prune(
155155
load_for_scoring=load_for_scoring,
156156
max_protein_chains=max_protein_chains,
157-
max_ligand_chains=max_ligand_chains
157+
max_ligand_chains=max_ligand_chains,
158158
)
159159
except Exception as e:
160160
LOG.error(f"failed to read name={name} failed with {repr(e)}")

src/plinder/data/utils/annotations/aggregate_annotations.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ def num_pocket_residues(self) -> int:
163163
for ligand in self.ligands:
164164
ligand_pocket_residues = ligand.pocket_residues
165165
for chain in ligand_pocket_residues:
166-
pocket_residues |= set((chain, residue) for residue in ligand_pocket_residues[chain])
166+
pocket_residues |= set(
167+
(chain, residue) for residue in ligand_pocket_residues[chain]
168+
)
167169
return len(pocket_residues)
168170

169171
@cached_property
@@ -534,9 +536,11 @@ def ligand_max_molecular_weight(self) -> float:
534536
"""
535537
Maximum molecular weight of the system ligands
536538
"""
537-
max_vals = [ligand.molecular_weight if ligand.molecular_weight is not None else -1.0
539+
max_vals = [
540+
ligand.molecular_weight if ligand.molecular_weight is not None else -1.0
538541
for ligand in self.ligands
539-
if ligand.molecular_weight is not None]
542+
if ligand.molecular_weight is not None
543+
]
540544
if len(max_vals):
541545
return max(max_vals)
542546
else:

src/plinder/data/utils/annotations/get_similarity_scores.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def get_score_df(
426426
if not pdb_id_file.exists():
427427
LOG.info(f"get_score_df: pdb_id_file={pdb_id_file} does not exist")
428428
continue
429-
429+
430430
# self.entries = {}
431431
entries_to_load = {pdb_id}
432432
if search_db != "pred" and pdb_id_file.exists():

src/plinder/data/utils/annotations/ligand_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
from plinder.data.utils.annotations.protein_utils import Chain
3333
from plinder.data.utils.annotations.rdkit_utils import (
3434
set_smiles_from_ligand_ost,
35-
set_smiles_from_ligand_ost_v2,
3635
)
3736
from plinder.data.utils.annotations.utils import DocBaseModel
3837

0 commit comments

Comments
 (0)