Skip to content

Commit 795dc16

Browse files
committed
Add script:
1 parent b16540a commit 795dc16

File tree

12 files changed

+20
-0
lines changed

12 files changed

+20
-0
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/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-modules/main.nf

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

19+
script:
1920
"""
2021
samtools index '$input_bam'
2122
"""
@@ -42,6 +43,7 @@ process GATK_HAPLOTYPECALLER {
4243
path "${input_bam}.g.vcf" , emit: vcf
4344
path "${input_bam}.g.vcf.idx" , emit: idx
4445

46+
script:
4547
"""
4648
gatk HaplotypeCaller \
4749
-R ${ref_fasta} \

hello-nextflow/hello-nf-test/modules/local/gatk/haplotypecaller/main.nf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ process GATK_HAPLOTYPECALLER {
2121
path "${input_bam}.g.vcf" , emit: vcf
2222
path "${input_bam}.g.vcf.idx" , emit: idx
2323

24+
script:
2425
"""
2526
gatk HaplotypeCaller \
2627
-R ${ref_fasta} \

hello-nextflow/hello-nf-test/modules/local/samtools/index/main.nf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ process SAMTOOLS_INDEX {
1616
output:
1717
tuple path(input_bam), path("${input_bam}.bai")
1818

19+
script:
1920
"""
2021
samtools index '$input_bam'
2122
"""

hello-nextflow/solutions/hello-modules/modules/local/gatk/GATK_HAPLOTYPECALLER/main.nf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ process GATK_HAPLOTYPECALLER {
2121
path "${input_bam}.g.vcf" , emit: vcf
2222
path "${input_bam}.g.vcf.idx" , emit: idx
2323

24+
script:
2425
"""
2526
gatk HaplotypeCaller \
2627
-R ${ref_fasta} \

hello-nextflow/solutions/hello-modules/modules/local/samtools/index/main.nf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ process SAMTOOLS_INDEX {
1616
output:
1717
tuple path(input_bam), path("${input_bam}.bai")
1818

19+
script:
1920
"""
2021
samtools index '$input_bam'
2122
"""

0 commit comments

Comments
 (0)