Skip to content

Commit

Permalink
Update CSVs and conformation analysis script
Browse files Browse the repository at this point in the history
  • Loading branch information
amorehead committed Dec 12, 2024
1 parent 2252abf commit 4351e99
Show file tree
Hide file tree
Showing 7 changed files with 989 additions and 496 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
method: dynamicbind # the method to evaluate - NOTE: must be one of (`dynamicbind`, `neuralplexer`, `flowdock`)
dataset: posebusters_benchmark # the dataset to use - NOTE: must be one of (`posebusters_benchmark`, `astex_diverse`, `dockgen`, `casp15`)
dataset: posebusters_benchmark # the dataset to use - NOTE: must be one of (`posebusters_benchmark`, `astex_diverse`, `dockgen`)
input_protein_structure_dir: ${oc.env:PROJECT_ROOT}/data/${dataset}_set/${dataset}_holo_aligned_predicted_structures # the input protein structure directory to parse
predicted_protein_structure_dir: ${oc.env:PROJECT_ROOT}/forks/${resolve_method_title:${method}}/inference/${method}_${dataset}_outputs_1 # the predicted protein structure directory to parse
reference_structure_dir: ${oc.env:PROJECT_ROOT}/data/${dataset}_set/ # the reference protein and ligand structure directory to parse
Expand Down
244 changes: 122 additions & 122 deletions forks/DiffDock/inference/diffdock_dockgen_inputs.csv

Large diffs are not rendered by default.

123 changes: 123 additions & 0 deletions forks/FlowDock/inference/flowdock_dockgen_inputs.csv

Large diffs are not rendered by default.

309 changes: 309 additions & 0 deletions forks/FlowDock/inference/flowdock_posebusters_benchmark_inputs.csv

Large diffs are not rendered by default.

213 changes: 122 additions & 91 deletions forks/NeuralPLexer/inference/neuralplexer_dockgen_inputs.csv

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions scripts/evaluate_baseline_protein_conformation_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,19 @@ def main(cfg: DictConfig):
desc="Evaluating protein conformation changes",
):
pdb_id = os.path.basename(item).split("_holo_aligned")[0]
reference_protein_suffix = "_processed" if cfg.dataset == "dockgen" else ""
reference_ligand_file_ext = ".pdb" if cfg.dataset == "dockgen" else ".sdf"

# Parse filepaths
input_protein_structure_filepath = os.path.join(
cfg.input_protein_structure_dir,
f"{pdb_id}_holo_aligned_predicted_protein.pdb",
)
reference_protein_structure_filepath = os.path.join(
cfg.reference_structure_dir, pdb_id, f"{pdb_id}_protein.pdb"
cfg.reference_structure_dir, pdb_id, f"{pdb_id}_protein{reference_protein_suffix}.pdb"
)
reference_ligand_structure_filepath = os.path.join(
cfg.reference_structure_dir, pdb_id, f"{pdb_id}_ligand.sdf"
cfg.reference_structure_dir, pdb_id, f"{pdb_id}_ligand{reference_ligand_file_ext}"
)

if cfg.method == "dynamicbind":
Expand Down

0 comments on commit 4351e99

Please sign in to comment.