Skip to content

Commit e3d4a45

Browse files
authored
Merge pull request #437 from nextflow-io/add_script
Add script:
2 parents b16540a + cb49ea7 commit e3d4a45

File tree

44 files changed

+77
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+77
-1
lines changed

docs/hello_nextflow/02_hello_world.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ process sayHello {
7878
output:
7979
stdout
8080
81+
script:
8182
"""
8283
echo 'Hello World!'
8384
"""
@@ -112,6 +113,7 @@ process sayHello {
112113
output:
113114
stdout
114115
116+
script:
115117
"""
116118
echo 'Hello World!'
117119
"""
@@ -749,6 +751,7 @@ process convertToUpper {
749751
output:
750752
path "UPPER-${input_file}"
751753
754+
script:
752755
"""
753756
cat '$input_file' | tr '[a-z]' '[A-Z]' > UPPER-${input_file}
754757
"""
@@ -945,6 +948,7 @@ process sayHello {
945948
output:
946949
path "output.txt"
947950
951+
script:
948952
"""
949953
echo '$greeting' > "output.txt"
950954
"""
@@ -964,6 +968,7 @@ process sayHello {
964968
output:
965969
path "${greeting}-output.txt"
966970
971+
script:
967972
"""
968973
echo '$greeting' > '$greeting-output.txt'
969974
"""

docs/hello_nextflow/04_hello_genomics.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ process SAMTOOLS_INDEX {
189189
output:
190190
path "${input_bam}.bai"
191191
192+
script:
192193
"""
193194
samtools index '$input_bam'
194195
"""
@@ -312,6 +313,7 @@ process GATK_HAPLOTYPECALLER {
312313
path "${input_bam}.vcf" , emit: vcf
313314
path "${input_bam}.vcf.idx" , emit: idx
314315
316+
script:
315317
"""
316318
gatk HaplotypeCaller \
317319
-R ${ref_fasta} \

docs/hello_nextflow/05_hello_operators.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ process GATK_GENOMICSDB {
422422
output:
423423
path "${cohort_name}_gdb"
424424
425+
script:
425426
"""
426427
gatk GenomicsDBImport \
427428
-V ${all_gvcfs} \

docs/hello_nextflow/07_hello_modules.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ process SAMTOOLS_INDEX {
175175
output:
176176
tuple path(input_bam), path("${input_bam}.bai")
177177
178+
script:
178179
"""
179180
samtools index '$input_bam'
180181
"""
@@ -295,6 +296,7 @@ process GATK_HAPLOTYPECALLER {
295296
path "${input_bam}.g.vcf" , emit: vcf
296297
path "${input_bam}.g.vcf.idx" , emit: idx
297298
299+
script:
298300
"""
299301
gatk HaplotypeCaller \
300302
-R ${ref_fasta} \

hello-nextflow/containers/solutions/hello-containers-3.nf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ process cowSay {
4343
output:
4444
path "cowsay-*"
4545

46+
script:
4647
"""
4748
cowsay -c "$params.character" -t "\$(cat $input_file)" > cowsay-${input_file}
4849
"""

hello-nextflow/containers/solutions/hello-containers-4.1.nf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ process cowSay {
4343
output:
4444
path "cowsay-*"
4545

46+
script:
4647
"""
4748
cowsay -c "$params.character" -t "\$(cat $input_file)" > cowsay-${input_file}
4849
"""

hello-nextflow/containers/solutions/hello-containers-4.2.nf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ process cowSay {
4444
output:
4545
path "cowsay-*"
4646

47+
script:
4748
"""
4849
cowsay -c "$params.character" -t "\$(cat $input_file)" > cowsay-${input_file}
4950
"""

hello-nextflow/hello-config/main.nf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ process SAMTOOLS_INDEX {
3131
output:
3232
tuple path(input_bam), path("${input_bam}.bai")
3333

34+
script:
3435
"""
3536
samtools index '$input_bam'
3637
"""
@@ -56,6 +57,7 @@ process GATK_HAPLOTYPECALLER {
5657
path "${input_bam}.g.vcf" , emit: vcf
5758
path "${input_bam}.g.vcf.idx" , emit: idx
5859

60+
script:
5961
"""
6062
gatk HaplotypeCaller \
6163
-R ${ref_fasta} \

hello-nextflow/hello-containers.nf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ process cowSay {
4242
output:
4343
path "cowsay-*"
4444

45+
script:
4546
"""
4647
cowsay -c "$params.character" -t "\$(cat $input_file)" > cowsay-${input_file}
4748
"""

hello-nextflow/hello-genomics.nf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ process SAMTOOLS_INDEX {
1919

2020
output:
2121

22+
script:
2223
"""
2324
2425
"""

0 commit comments

Comments
 (0)