Skip to content

Commit 6ffbe27

Browse files
authored
Merge pull request nf-core#315 from tlitfin-unsw/add-db-flag
Add global db flag
2 parents bbf97b1 + 91c2fee commit 6ffbe27

3 files changed

Lines changed: 89 additions & 87 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4040
- [[PR #306](https://github.com/nf-core/proteinfold/pull/306)] - extract_output.py -> extract_metrics.py so pLDDT, MSA, PAE emitted as raw data .tsv files
4141
- [[PR #307](https://github.com/nf-core/proteinfold/pull/307)] - Update Boltz-1 boilerplate and formatting.
4242
- [[PR #314](https://github.com/nf-core/proteinfold/pull/314)] - Fix extract metrics for broken modules.
43+
- [[PR #315](https://github.com/nf-core/proteinfold/pull/315)] - Add global db flag.
44+
- [[#263](https://github.com/nf-core/proteinfold/issues/263)] - Removed broken colabfold options (`auto` and `alphafold2`)
4345
- [[PR #316](https://github.com/nf-core/proteinfold/pull/316)] - Add process_gpu label to modules which use GPU.
4446

4547
### Parameters

nextflow.config

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ params {
1414
mode = 'alphafold2' // {alphafold2, colabfold, esmfold, rosettafold_all_atom, helixfold3, boltz}
1515
use_gpu = false
1616
split_fasta = false
17+
db = null
1718

1819
// Alphafold2 parameters
1920
alphafold2_mode = "standard"
@@ -62,7 +63,7 @@ params {
6263

6364
// Colabfold parameters
6465
colabfold_server = "webserver"
65-
colabfold_model_preset = "alphafold2_ptm" // {'auto', 'alphafold2', 'alphafold2_ptm', 'alphafold2_multimer_v1', 'alphafold2_multimer_v2', 'alphafold2_multimer_v3'}
66+
colabfold_model_preset = "alphafold2_ptm" // {'alphafold2_ptm', 'alphafold2_multimer_v1', 'alphafold2_multimer_v2', 'alphafold2_multimer_v3'}
6667
num_recycles_colabfold = 3
6768
use_amber = true
6869
colabfold_db = null
@@ -147,16 +148,6 @@ params {
147148
helixfold3_obsolete_path = null
148149
helixfold3_maxit_src_path = null
149150

150-
// Boltz links
151-
boltz_ccd_link = null
152-
boltz_model_link = null
153-
154-
// Boltz parameters and paths
155-
boltz_db = null
156-
boltz_ccd_path = null
157-
boltz_model_path = null
158-
boltz_use_msa_server = false
159-
160151
// Foldseek params
161152
foldseek_search = null
162153
foldseek_easysearch_arg = null
@@ -471,6 +462,21 @@ validation {
471462
}
472463
}
473464

465+
if (params.mode.toLowerCase().split(",").contains("alphafold2"))
466+
{ params.alphafold2_db = params.alphafold2_db ?: params.db }
467+
if (params.mode.toLowerCase().split(",").contains("colabfold"))
468+
{ params.colabfold_db = params.colabfold_db ?: params.db }
469+
if (params.mode.toLowerCase().split(",").contains("esmfold"))
470+
{ params.esmfold_db = params.esmfold_db ?: params.db }
471+
if (params.mode.toLowerCase().split(",").contains("rosettafold_all_atom"))
472+
{ params.rosettafold_all_atom_db = params.rosettafold_all_atom_db ?: params.db }
473+
if (params.mode.toLowerCase().split(",").contains("helixfold3"))
474+
{ params.helixfold3_db = params.helixfold3_db ?: params.db }
475+
if (params.mode.toLowerCase().split(",").contains("boltz")) {
476+
params.boltz_db = params.boltz_db ?: params.db
477+
params.colabfold_db = params.colabfold_db ?: params.db
478+
}
479+
474480
// Load modules.config for DSL2 module specific options
475481
includeConfig 'conf/modules.config'
476482

0 commit comments

Comments
 (0)