@@ -808,7 +808,7 @@ Run the pipeline again and check if the new parameter is applied:
808808nextflow run . -profile docker,test --outdir results
809809```
810810
811- ``` bash
811+ ``` console title="Output"
812812[67/cc3d2f] process > MYORG_MYFIRSTPIPELINE:MYFIRSTPIPELINE:SEQTK_TRIM (SAMPLE1_PE) [100%] 3 of 3 ✔
813813[b4/a1b41b] process > MYORG_MYFIRSTPIPELINE:MYFIRSTPIPELINE:MULTIQC [100%] 1 of 1 ✔
814814```
@@ -961,7 +961,7 @@ If you rerun the previous command, the warning should disappear:
961961nextflow run . -profile test,docker --outdir results --skip_trim
962962```
963963
964- ``` console
964+ ``` console title="Output"
965965!! Only displaying parameters that differ from the pipeline defaults !!
966966------------------------------------------------------
967967executor > local (1)
@@ -1074,7 +1074,7 @@ Lastly, `sample` is information about the files that we want to attach and pass
10741074
10751075This sets the key name as ` id ` and the value that is in the ` sample ` column, for example ` SAMPLE1_PE ` :
10761076
1077- ``` console title="meta"
1077+ ``` console title="meta map "
10781078[id: SAMPLE1_PE]
10791079```
10801080
@@ -1149,24 +1149,24 @@ We can access this new meta value in the pipeline and use it to, for example, on
11491149an input channel into several new output channels based on a selection criteria. Let's add this within the ` if ` block:
11501150
11511151``` groovy title="workflows/myfirstpipeline.nf" linenums="31"
1152- if (!params.skip_trim) {
1152+ if (!params.skip_trim) {
11531153
1154- ch_seqtk_in = ch_samplesheet.branch { meta, reads ->
1155- to_trim: meta["sequencer"] == "sequencer2"
1156- other: true
1157- }
1154+ ch_seqtk_in = ch_samplesheet.branch { meta, reads ->
1155+ to_trim: meta["sequencer"] == "sequencer2"
1156+ other: true
1157+ }
11581158
1159- SEQTK_TRIM (
1160- ch_seqtk_in.to_trim
1161- )
1162- ch_trimmed = SEQTK_TRIM.out.reads
1163- ch_versions = ch_versions.mix(SEQTK_TRIM.out.versions.first())
1164- }
1159+ SEQTK_TRIM (
1160+ ch_seqtk_in.to_trim
1161+ )
1162+ ch_trimmed = SEQTK_TRIM.out.reads
1163+ ch_versions = ch_versions.mix(SEQTK_TRIM.out.versions.first())
1164+ }
11651165```
11661166
11671167If we now rerun our default test, no reads are being trimmed (even though we did not specify ` --skip_trim ` ):
11681168
1169- ``` console
1169+ ``` console title="Output"
11701170nextflow run . -profile docker,test --outdir results
11711171
11721172[- ] process > MYORG_MYFIRSTPIPELINE:MYFIRSTPIPELINE:SEQTK_TRIM -
@@ -1179,7 +1179,7 @@ If we use the samplesheet with the `sequencer` set, only one sample will be trim
11791179nextflow run . -profile docker,test --outdir results --input ../../data/sequencer_samplesheet.csv -resume
11801180```
11811181
1182- ``` console
1182+ ``` console title="Output"
11831183[47/fdf9de] process > MYORG_MYFIRSTPIPELINE:MYFIRSTPIPELINE:SEQTK_TRIM (SAMPLE2_PE) [100%] 1 of 1 ✔
11841184[2a/a742ae] process > MYORG_MYFIRSTPIPELINE:MYFIRSTPIPELINE:MULTIQC [100%] 1 of 1 ✔
11851185```
0 commit comments