Skip to content

Commit 321684d

Browse files
committed
Make binding site cropping script more generic
1 parent 2e3394d commit 321684d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dataset: posebusters_benchmark # the dataset to use - NOTE: must be one of (`posebusters_benchmark`, `astex_diverse`)
22
input_data_dir: ${oc.env:PROJECT_ROOT}/data/${dataset}_set # the input protein-ligand complex directory to recursively parse
3-
input_protein_structure_dir: ${oc.env:PROJECT_ROOT}/data/${dataset}_set/${dataset}_holo_aligned_esmfold_structures # the input protein structure directory to parse
3+
input_protein_structure_dir: ${oc.env:PROJECT_ROOT}/data/${dataset}_set/${dataset}_holo_aligned_predicted_structures # the input protein structure directory to parse
44
protein_ligand_distance_threshold: 4.0 # the heavy-atom distance threshold (in Angstrom) to use for finding protein binding site residues in interaction with ligand heavy atoms
55
num_buffer_residues: 7 # the number of sequence-regional buffer residues to include around the native binding site residues

posebench/data/binding_site_crop_preparation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def save_cropped_protein_binding_site(
188188
for _, pdb_id in tqdm(smiles_and_pdb_id_list, desc="Cropping protein binding sites"):
189189
pred_protein_filepath = os.path.join(
190190
input_protein_structure_dir,
191-
f"{pdb_id}_holo_aligned_esmfold_protein.pdb",
191+
f"{pdb_id}_holo_aligned_predicted_protein.pdb",
192192
)
193193
ref_protein_filepath = os.path.join(input_data_dir, pdb_id, f"{pdb_id}_protein.pdb")
194194
ref_ligand_filepath = os.path.join(input_data_dir, pdb_id, f"{pdb_id}_ligand.sdf")
@@ -214,7 +214,7 @@ def save_cropped_protein_binding_site(
214214
binding_site_residue_indices,
215215
output_protein_structure_dir,
216216
pdb_id,
217-
filename_midfix="_holo_aligned_esmfold",
217+
filename_midfix="_holo_aligned_predicted",
218218
)
219219
crop_protein_binding_site(
220220
ref_protein_filepath,

0 commit comments

Comments
 (0)