Skip to content

Commit f83a1e2

Browse files
committed
Merge remote-tracking branch 'upstream/dev' into dev
2 parents 20333e6 + a69b49b commit f83a1e2

2 files changed

Lines changed: 25 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4343
- [[PR #315](https://github.com/nf-core/proteinfold/pull/315)] - Add global db flag.
4444
- [[#263](https://github.com/nf-core/proteinfold/issues/263)] - Removed broken colabfold options (`auto` and `alphafold2`)
4545
- [[PR #316](https://github.com/nf-core/proteinfold/pull/316)] - Add process_gpu label to modules which use GPU.
46+
- [[PR #319](https://github.com/nf-core/proteinfold/pull/319)] - Update boltz workflow to accept YAML as input.
4647

4748
### Parameters
4849

workflows/boltz.nf

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,23 @@ workflow BOLTZ {
5353
msa_server
5454

5555
main:
56-
ch_samplesheet.join(
57-
ch_samplesheet.map{[it[0], it[1].text.findAll {letter -> letter == ">" }.size()]}
56+
ch_samplesheet
57+
.branch {
58+
fasta: it[1].extension == "fasta" || it[1].extension == "fa"
59+
yaml: it[1].extension == "yaml" || it[1].extension == "yml"
60+
}
61+
.set { ch_input_by_ext }
62+
63+
ch_input_by_ext.fasta
64+
.join(
65+
ch_input_by_ext.fasta
66+
.map { meta, file ->
67+
[
68+
meta,
69+
file.text.findAll { letter -> letter == ">" }.size()
70+
]
71+
}
72+
)
5873
)
5974
.map{
6075
def meta = it[0].clone()
@@ -103,9 +118,14 @@ workflow BOLTZ {
103118
ch_prepare_fasta
104119
)
105120

121+
ch_input_by_ext.yaml
122+
.map { meta, file -> [meta, file, []] } // already in YAML
123+
.mix(BOLTZ_FASTA.out.formatted_fasta) // newly converted from FASTA
124+
.set { ch_boltz_input }
125+
106126
RUN_BOLTZ(
107-
BOLTZ_FASTA.out.formatted_fasta.map{[it[0], it[1]]},
108-
BOLTZ_FASTA.out.formatted_fasta.map{it[2]},
127+
ch_boltz_input.map{[it[0], it[1]]},
128+
ch_boltz_input.map{it[2]},
109129
ch_boltz_model,
110130
ch_boltz_ccd
111131
)

0 commit comments

Comments
 (0)