Skip to content

Commit 2178a0c

Browse files
edmundmillerclaude
andcommitted
fix: Add script labels and improve Nextflow code formatting
- Add required script: labels to both processes to fix linting errors - Improve string interpolation with proper ${} syntax - Clean up indentation and remove unnecessary backslashes - Format workflow pipe operators for better readability 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> fix: Add script labels and improve Nextflow code formatting - Add required script: labels to both processes to fix linting errors - Improve string interpolation with proper curly brace syntax - Clean up indentation and remove unnecessary backslashes - Format workflow pipe operators for better readability 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 0937ec6 commit 2178a0c

File tree

1 file changed

+7
-8
lines changed
  • src/pages/examples/basic-pipeline

1 file changed

+7
-8
lines changed
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,40 @@
11
#!/usr/bin/env nextflow
22

33

4-
params.in = "$baseDir/data/sample.fa"
4+
params.in = "${baseDir}/data/sample.fa"
55

66

77
process splitSequences {
8-
98
input:
109
path 'input.fa'
1110

1211
output:
1312
path 'seq_*'
1413

14+
script:
1515
"""
1616
awk '/^>/{f="seq_"++d} {print > f}' < input.fa
1717
"""
1818
}
1919

2020

2121
process reverse {
22-
2322
input:
2423
path x
2524

2625
output:
2726
stdout
2827

28+
script:
2929
"""
30-
cat $x | rev
30+
cat ${x} | rev
3131
"""
3232
}
3333

3434

3535
workflow {
3636

37-
splitSequences(params.in) \
38-
39-
| reverse \
40-
| view
37+
splitSequences(params.in)
38+
| reverse
39+
| view
4140
}

0 commit comments

Comments
 (0)