Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
*.pyc
test-results
/.idea
.github
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you explain the reasoning here? typically this is not ignored because it can contain github actions

5 changes: 3 additions & 2 deletions ovo_proteindj/components/workflow_visualization_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,10 @@ def visualize_binder_design_structure(design_id: str):
# TODO use target spec for this
# Note this assumes that the target chain is B in the RFdiffusion output PDB,
# and that the residue numbers are same as in the input PDB
target_chain = workflow.get_target_chain()
hotspot_selections = (
[h.replace(workflow.target_chain, "B") for h in workflow.get_hotspots().split(",")]
if workflow.get_hotspots() and workflow.target_chain
[h.replace(target_chain, "B") for h in workflow.get_hotspots().split(",")]
if workflow.get_hotspots() and target_chain
else None
)

Expand Down
32 changes: 28 additions & 4 deletions ovo_proteindj/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,37 @@ def process_workflow_results(job: DesignJob, callback: Callable = None) -> list[
assert job.workflow.is_instance(models_proteindj.ProteinDJDesignWorkflow), (
"This function expects a ProteinDJDesignWorkflow instance, got: {}".format(type(job.workflow).__name__)
)

# Get source directory
source_dir = scheduler.get_output_dir(job.job_id)
run_dir = os.path.join(source_dir, "run")

# Auto-detect or use configured fold directory
fold_dir = job.workflow.params.get('fold_method', 'rfd')

# Auto-detect or use configured sequence design directory
seq_dir = job.workflow.params.get('seq_method')
if not seq_dir:
for option in ["fampnn", "mpnn"]:
if os.path.exists(os.path.join(run_dir, option)):
seq_dir = option
break

# Auto-detect or use configured structure prediction directory
pred_dir = job.workflow.params.get('pred_method')
if not pred_dir:
for option in ["af2", "boltz"]:
if os.path.exists(os.path.join(run_dir, option)):
pred_dir = option
break

return process_proteindj_output_dir(
job=job,
pool=pool,
source_dir=scheduler.get_output_dir(job.job_id),
fold_dir="rfd",
seq_dir=job.workflow.params.seq_method,
pred_dir=job.workflow.params.pred_method,
source_dir=source_dir,
fold_dir=fold_dir,
seq_dir=seq_dir,
pred_dir=pred_dir,
callback=callback,
)

Expand Down
2 changes: 1 addition & 1 deletion ovo_proteindj/models_proteindj.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# Pipeline version
# tag or commit ID from https://github.com/PapenfussLab/proteindj
PIPELINE_VERSION = "5db7c4e6b9507ebfdcd20090ebb3eef544abe27c"
PIPELINE_VERSION = "v2.1.1"

# Get default pipeline params from OVO config
plugin_config = config.plugins.get(__package__, {})
Expand Down