Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/hello_nextflow/02_hello_world.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ process sayHello {
output:
stdout

script:
"""
echo 'Hello World!'
"""
Expand Down Expand Up @@ -112,6 +113,7 @@ process sayHello {
output:
stdout

script:
"""
echo 'Hello World!'
"""
Expand Down Expand Up @@ -749,6 +751,7 @@ process convertToUpper {
output:
path "UPPER-${input_file}"

script:
"""
cat '$input_file' | tr '[a-z]' '[A-Z]' > UPPER-${input_file}
"""
Expand Down Expand Up @@ -945,6 +948,7 @@ process sayHello {
output:
path "output.txt"

script:
"""
echo '$greeting' > "output.txt"
"""
Expand All @@ -964,6 +968,7 @@ process sayHello {
output:
path "${greeting}-output.txt"

script:
"""
echo '$greeting' > '$greeting-output.txt'
"""
Expand Down
2 changes: 2 additions & 0 deletions docs/hello_nextflow/04_hello_genomics.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ process SAMTOOLS_INDEX {
output:
path "${input_bam}.bai"

script:
"""
samtools index '$input_bam'
"""
Expand Down Expand Up @@ -312,6 +313,7 @@ process GATK_HAPLOTYPECALLER {
path "${input_bam}.vcf" , emit: vcf
path "${input_bam}.vcf.idx" , emit: idx

script:
"""
gatk HaplotypeCaller \
-R ${ref_fasta} \
Expand Down
1 change: 1 addition & 0 deletions docs/hello_nextflow/05_hello_operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ process GATK_GENOMICSDB {
output:
path "${cohort_name}_gdb"

script:
"""
gatk GenomicsDBImport \
-V ${all_gvcfs} \
Expand Down
2 changes: 2 additions & 0 deletions docs/hello_nextflow/07_hello_modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ process SAMTOOLS_INDEX {
output:
tuple path(input_bam), path("${input_bam}.bai")

script:
"""
samtools index '$input_bam'
"""
Expand Down Expand Up @@ -295,6 +296,7 @@ process GATK_HAPLOTYPECALLER {
path "${input_bam}.g.vcf" , emit: vcf
path "${input_bam}.g.vcf.idx" , emit: idx

script:
"""
gatk HaplotypeCaller \
-R ${ref_fasta} \
Expand Down
1 change: 1 addition & 0 deletions hello-nextflow/containers/solutions/hello-containers-3.nf
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ process cowSay {
output:
path "cowsay-*"

script:
"""
cowsay -c "$params.character" -t "\$(cat $input_file)" > cowsay-${input_file}
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ process cowSay {
output:
path "cowsay-*"

script:
"""
cowsay -c "$params.character" -t "\$(cat $input_file)" > cowsay-${input_file}
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ process cowSay {
output:
path "cowsay-*"

script:
"""
cowsay -c "$params.character" -t "\$(cat $input_file)" > cowsay-${input_file}
"""
Expand Down
2 changes: 2 additions & 0 deletions hello-nextflow/hello-config/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ process SAMTOOLS_INDEX {
output:
tuple path(input_bam), path("${input_bam}.bai")

script:
"""
samtools index '$input_bam'
"""
Expand All @@ -56,6 +57,7 @@ process GATK_HAPLOTYPECALLER {
path "${input_bam}.g.vcf" , emit: vcf
path "${input_bam}.g.vcf.idx" , emit: idx

script:
"""
gatk HaplotypeCaller \
-R ${ref_fasta} \
Expand Down
1 change: 1 addition & 0 deletions hello-nextflow/hello-containers.nf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ process cowSay {
output:
path "cowsay-*"

script:
"""
cowsay -c "$params.character" -t "\$(cat $input_file)" > cowsay-${input_file}
"""
Expand Down
1 change: 1 addition & 0 deletions hello-nextflow/hello-genomics.nf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ process SAMTOOLS_INDEX {

output:

script:
"""

"""
Expand Down
2 changes: 2 additions & 0 deletions hello-nextflow/hello-modules/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ process SAMTOOLS_INDEX {
output:
tuple path(input_bam), path("${input_bam}.bai")

script:
"""
samtools index '$input_bam'
"""
Expand All @@ -42,6 +43,7 @@ process GATK_HAPLOTYPECALLER {
path "${input_bam}.g.vcf" , emit: vcf
path "${input_bam}.g.vcf.idx" , emit: idx

script:
"""
gatk HaplotypeCaller \
-R ${ref_fasta} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ process GATK_HAPLOTYPECALLER {
path "${input_bam}.g.vcf" , emit: vcf
path "${input_bam}.g.vcf.idx" , emit: idx

script:
"""
gatk HaplotypeCaller \
-R ${ref_fasta} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ process SAMTOOLS_INDEX {
output:
tuple path(input_bam), path("${input_bam}.bai")

script:
"""
samtools index '$input_bam'
"""
Expand Down
2 changes: 2 additions & 0 deletions hello-nextflow/hello-operators.nf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ process SAMTOOLS_INDEX {
output:
tuple path(input_bam), path("${input_bam}.bai")

script:
"""
samtools index '$input_bam'
"""
Expand All @@ -53,6 +54,7 @@ process GATK_HAPLOTYPECALLER {
path "${input_bam}.vcf" , emit: vcf
path "${input_bam}.vcf.idx" , emit: idx

script:
"""
gatk HaplotypeCaller \
-R ${ref_fasta} \
Expand Down
1 change: 1 addition & 0 deletions hello-nextflow/hello-world.nf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ process sayHello {
output:
stdout

script:
"""
echo 'Hello World!'
"""
Expand Down
4 changes: 3 additions & 1 deletion hello-nextflow/solutions/hello-config/final-main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ process SAMTOOLS_INDEX {

output:
tuple path(input_bam), path("${input_bam}.bai")


script:
"""
samtools index '$input_bam'
"""
Expand All @@ -42,6 +43,7 @@ process GATK_HAPLOTYPECALLER {
path "${input_bam}.g.vcf" , emit: vcf
path "${input_bam}.g.vcf.idx" , emit: idx

script:
"""
gatk HaplotypeCaller \
-R ${ref_fasta} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ process SAMTOOLS_INDEX {
output:
path "${input_bam}.bai"

script:
"""
samtools index '$input_bam'
"""
Expand Down
2 changes: 2 additions & 0 deletions hello-nextflow/solutions/hello-genomics/hello-genomics-2.nf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ process SAMTOOLS_INDEX {
output:
path "${input_bam}.bai"

script:
"""
samtools index '$input_bam'
"""
Expand All @@ -54,6 +55,7 @@ process GATK_HAPLOTYPECALLER {
path "${input_bam}.vcf" , emit: vcf
path "${input_bam}.vcf.idx" , emit: idx

script:
"""
gatk HaplotypeCaller \
-R ${ref_fasta} \
Expand Down
2 changes: 2 additions & 0 deletions hello-nextflow/solutions/hello-genomics/hello-genomics-3.nf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ process SAMTOOLS_INDEX {
output:
tuple path(input_bam), path("${input_bam}.bai")

script:
"""
samtools index '$input_bam'
"""
Expand All @@ -57,6 +58,7 @@ process GATK_HAPLOTYPECALLER {
path "${input_bam}.vcf" , emit: vcf
path "${input_bam}.vcf.idx" , emit: idx

script:
"""
gatk HaplotypeCaller \
-R ${ref_fasta} \
Expand Down
2 changes: 2 additions & 0 deletions hello-nextflow/solutions/hello-genomics/hello-genomics-4.nf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ process SAMTOOLS_INDEX {
output:
tuple path(input_bam), path("${input_bam}.bai")

script:
"""
samtools index '$input_bam'
"""
Expand All @@ -53,6 +54,7 @@ process GATK_HAPLOTYPECALLER {
path "${input_bam}.vcf" , emit: vcf
path "${input_bam}.vcf.idx" , emit: idx

script:
"""
gatk HaplotypeCaller \
-R ${ref_fasta} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ process GATK_HAPLOTYPECALLER {
path "${input_bam}.g.vcf" , emit: vcf
path "${input_bam}.g.vcf.idx" , emit: idx

script:
"""
gatk HaplotypeCaller \
-R ${ref_fasta} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ process SAMTOOLS_INDEX {
output:
tuple path(input_bam), path("${input_bam}.bai")

script:
"""
samtools index '$input_bam'
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ process GATK_HAPLOTYPECALLER {
path "${input_bam}.g.vcf" , emit: vcf
path "${input_bam}.g.vcf.idx" , emit: idx

script:
"""
gatk HaplotypeCaller \
-R ${ref_fasta} \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ process SAMTOOLS_INDEX {
output:
tuple path(input_bam), path("${input_bam}.bai")

script:
"""
samtools index '$input_bam'
"""
Expand Down
2 changes: 2 additions & 0 deletions hello-nextflow/solutions/hello-operators/hello-operators-1.nf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ process SAMTOOLS_INDEX {
output:
tuple path(input_bam), path("${input_bam}.bai")

script:
"""
samtools index '$input_bam'
"""
Expand All @@ -53,6 +54,7 @@ process GATK_HAPLOTYPECALLER {
path "${input_bam}.g.vcf" , emit: vcf
path "${input_bam}.g.vcf.idx" , emit: idx

script:
"""
gatk HaplotypeCaller \
-R ${ref_fasta} \
Expand Down
2 changes: 2 additions & 0 deletions hello-nextflow/solutions/hello-operators/hello-operators-2.nf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ process SAMTOOLS_INDEX {
output:
tuple path(input_bam), path("${input_bam}.bai")

script:
"""
samtools index '$input_bam'
"""
Expand All @@ -56,6 +57,7 @@ process GATK_HAPLOTYPECALLER {
path "${input_bam}.g.vcf" , emit: vcf
path "${input_bam}.g.vcf.idx" , emit: idx

script:
"""
gatk HaplotypeCaller \
-R ${ref_fasta} \
Expand Down
2 changes: 2 additions & 0 deletions hello-nextflow/solutions/hello-operators/hello-operators-3.nf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ process SAMTOOLS_INDEX {
output:
tuple path(input_bam), path("${input_bam}.bai")

script:
"""
samtools index '$input_bam'
"""
Expand All @@ -56,6 +57,7 @@ process GATK_HAPLOTYPECALLER {
path "${input_bam}.g.vcf" , emit: vcf
path "${input_bam}.g.vcf.idx" , emit: idx

script:
"""
gatk HaplotypeCaller \
-R ${ref_fasta} \
Expand Down
1 change: 1 addition & 0 deletions hello-nextflow/solutions/hello-world/hello-world-1.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ process sayHello {
output:
stdout

script:
"""
echo 'Hello World!'
"""
Expand Down
1 change: 1 addition & 0 deletions hello-nextflow/solutions/hello-world/hello-world-2.nf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ process sayHello {
output:
stdout

script:
"""
echo 'Hello World!'
"""
Expand Down
1 change: 1 addition & 0 deletions hello-nextflow/solutions/hello-world/hello-world-3.nf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ process sayHello {
output:
path 'output.txt'

script:
"""
echo 'Hello World!' > output.txt
"""
Expand Down
1 change: 1 addition & 0 deletions hello-nextflow/solutions/hello-world/hello-world-4.nf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ process sayHello {
output:
path 'output.txt'

script:
"""
echo 'Hello World!' > output.txt
"""
Expand Down
1 change: 1 addition & 0 deletions hello-nextflow/solutions/hello-world/hello-world-5.nf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ process sayHello {
output:
path "output.txt"

script:
"""
echo '$greeting' > output.txt
"""
Expand Down
1 change: 1 addition & 0 deletions hello-nextflow/solutions/hello-world/hello-world-6.nf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ process sayHello {
output:
path "output.txt"

script:
"""
echo '$greeting' > "output.txt"
"""
Expand Down
Loading
Loading