File tree Expand file tree Collapse file tree 5 files changed +10
-9
lines changed
Expand file tree Collapse file tree 5 files changed +10
-9
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )} " )
Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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 ():
Original file line number Diff line number Diff line change 3232from plinder .data .utils .annotations .protein_utils import Chain
3333from plinder .data .utils .annotations .rdkit_utils import (
3434 set_smiles_from_ligand_ost ,
35- set_smiles_from_ligand_ost_v2 ,
3635)
3736from plinder .data .utils .annotations .utils import DocBaseModel
3837
You can’t perform that action at this time.
0 commit comments