Skip to content

Commit

Permalink
give 10% of alphafold jobs gpu access
Browse files Browse the repository at this point in the history
  • Loading branch information
mira-miracoli committed May 7, 2024
1 parent 0168448 commit c447c45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions files/galaxy/tpv/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ tools:
- if: helpers.tool_version_gte(tool, '2.3.1+galaxy2')
params:
singularity_run_extra_arguments: "--env ALPHAFOLD_DB=/data/db/databases/alphafold_databases,ALPHAFOLD_USE_GPU=False"
execute: |
from random import SystemRandom
if SystemRandom().random() < 0.10:
entity.gpus = 1
# tweak amount of requested memory depending on the AlphaFold model to be run
- id: model_preset_multimer
if: job.get_param_values(app).get("model_preset") == "multimer"
Expand Down

0 comments on commit c447c45

Please sign in to comment.