@@ -808,7 +808,7 @@ Run the pipeline again and check if the new parameter is applied:
808
808
nextflow run . -profile docker,test --outdir results
809
809
```
810
810
811
- ``` bash
811
+ ``` console title="Output"
812
812
[67/cc3d2f] process > MYORG_MYFIRSTPIPELINE:MYFIRSTPIPELINE:SEQTK_TRIM (SAMPLE1_PE) [100%] 3 of 3 ✔
813
813
[b4/a1b41b] process > MYORG_MYFIRSTPIPELINE:MYFIRSTPIPELINE:MULTIQC [100%] 1 of 1 ✔
814
814
```
@@ -961,7 +961,7 @@ If you rerun the previous command, the warning should disappear:
961
961
nextflow run . -profile test,docker --outdir results --skip_trim
962
962
```
963
963
964
- ``` console
964
+ ``` console title="Output"
965
965
!! Only displaying parameters that differ from the pipeline defaults !!
966
966
------------------------------------------------------
967
967
executor > local (1)
@@ -1074,7 +1074,7 @@ Lastly, `sample` is information about the files that we want to attach and pass
1074
1074
1075
1075
This sets the key name as ` id ` and the value that is in the ` sample ` column, for example ` SAMPLE1_PE ` :
1076
1076
1077
- ``` console title="meta"
1077
+ ``` console title="meta map "
1078
1078
[id: SAMPLE1_PE]
1079
1079
```
1080
1080
@@ -1149,24 +1149,24 @@ We can access this new meta value in the pipeline and use it to, for example, on
1149
1149
an input channel into several new output channels based on a selection criteria. Let's add this within the ` if ` block:
1150
1150
1151
1151
``` groovy title="workflows/myfirstpipeline.nf" linenums="31"
1152
- if (!params.skip_trim) {
1152
+ if (!params.skip_trim) {
1153
1153
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
+ }
1158
1158
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
+ }
1165
1165
```
1166
1166
1167
1167
If we now rerun our default test, no reads are being trimmed (even though we did not specify ` --skip_trim ` ):
1168
1168
1169
- ``` console
1169
+ ``` console title="Output"
1170
1170
nextflow run . -profile docker,test --outdir results
1171
1171
1172
1172
[- ] 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
1179
1179
nextflow run . -profile docker,test --outdir results --input ../../data/sequencer_samplesheet.csv -resume
1180
1180
```
1181
1181
1182
- ``` console
1182
+ ``` console title="Output"
1183
1183
[47/fdf9de] process > MYORG_MYFIRSTPIPELINE:MYFIRSTPIPELINE:SEQTK_TRIM (SAMPLE2_PE) [100%] 1 of 1 ✔
1184
1184
[2a/a742ae] process > MYORG_MYFIRSTPIPELINE:MYFIRSTPIPELINE:MULTIQC [100%] 1 of 1 ✔
1185
1185
```
0 commit comments