Skip to content

Commit

Permalink
Fixes Add indents to match destination of code blocks #422
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Ribeiro-Dantas <[email protected]>
  • Loading branch information
mribeirodantas committed Oct 30, 2024
1 parent 5d9048d commit fa6fba3
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 32 deletions.
24 changes: 12 additions & 12 deletions docs/hello_nextflow/02_hello_world.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,17 +252,17 @@ This is the same change we made when we ran the command directly in the terminal
_Before:_

```groovy title="hello-world.nf" linenums="11"
"""
echo 'Hello World!'
"""
"""
echo 'Hello World!'
"""
```

_After:_

```groovy title="hello-world.nf" linenums="11"
"""
echo 'Hello World!' > output.txt
"""
"""
echo 'Hello World!' > output.txt
"""
```

### 3.2. Change the output declaration in the `sayHello` process
Expand Down Expand Up @@ -481,17 +481,17 @@ Now we swap the original hardcoded value for the input variable.
_Before:_

```groovy title="hello-world.nf" linenums="16"
"""
echo 'Hello World!' > output.txt
"""
"""
echo 'Hello World!' > output.txt
"""
```

_After:_

```groovy title="hello-world.nf" linenums="16"
"""
echo '$greeting' > output.txt
"""
"""
echo '$greeting' > output.txt
"""
```

### 5.3. Create an input channel
Expand Down
2 changes: 1 addition & 1 deletion docs/hello_nextflow/03_hello_containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ For the `quote` container image, you can either use the one you built yourself i

A good choice for the `script` block of your getQuote process might be:
```groovy
script:
script:
def safe_author = author.tokenize(' ').join('-')
"""
quote "$author" > quote-${safe_author}.txt
Expand Down
10 changes: 5 additions & 5 deletions docs/hello_nextflow/04_hello_genomics.md
Original file line number Diff line number Diff line change
Expand Up @@ -618,16 +618,16 @@ Specifically, where we previously declared two separate input paths in the input
_Before:_

```groovy title="hello-genomics.nf" linenums="49"
input:
path input_bam
path input_bam_index
input:
path input_bam
path input_bam_index
```

_After:_

```groovy title="hello-genomics.nf" linenums="49"
input:
tuple path(input_bam), path(input_bam_index)
input:
tuple path(input_bam), path(input_bam_index)
```

Of course, since we've now changed the shape of the inputs that `GATK_HAPLOTYPECALLER` expects, we need to update the process call accordingly in the workflow body.
Expand Down
26 changes: 13 additions & 13 deletions docs/hello_nextflow/05_hello_operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -734,24 +734,24 @@ The second command requires the reference genome files, so we need to add those
_Before:_

```groovy title="hello-operators.nf" linenums="78"
input:
path all_gvcfs
path all_idxs
path interval_list
val cohort_name
input:
path all_gvcfs
path all_idxs
path interval_list
val cohort_name
```

_After:_

```groovy title="hello-operators.nf" linenums="78"
input:
path all_gvcfs
path all_idxs
path interval_list
val cohort_name
path ref_fasta
path ref_index
path ref_dict
input:
path all_gvcfs
path all_idxs
path interval_list
val cohort_name
path ref_fasta
path ref_index
path ref_dict
```

It may seem annoying to type these out, but remember, you only type them once, and then you can run the workflow a million times. Worth it?
Expand Down
2 changes: 1 addition & 1 deletion docs/hello_nextflow/07_hello_modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ process GATK_JOINTGENOTYPING {
path "${cohort_name}.joint.vcf.idx"
script:
def gvcfs_line = all_gvcfs.collect { gvcf -> "-V ${gvcf}" }.join(' ')
def gvcfs_line = all_gvcfs.collect { gvcf -> "-V ${gvcf}" }.join(' ')
"""
gatk GenomicsDBImport \
${gvcfs_line} \
Expand Down

0 comments on commit fa6fba3

Please sign in to comment.