Skip to content

Commit c4e86d7

Browse files
committed
list getting parsed ok, now let's get the groovy highlighting
1 parent ec9f5e2 commit c4e86d7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/side_quests/splitting_and_grouping.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,19 +1112,19 @@ Mastering these channel operations will enable you to build flexible, scalable p
11121112

11131113
1. **Creating structured input data:** Starting from a CSV file with meta maps (building on patterns from [Metadata in workflows](./metadata.md))
11141114

1115-
```groovy
1116-
ch_samples = channel.fromPath("./data/samplesheet.csv")
1117-
.splitCsv(header: true)
1118-
.map{ row ->
1119-
[[id:row.id, repeat:row.repeat, type:row.type], row.bam]
1120-
}
1121-
```
1115+
```groovy
1116+
ch_samples = channel.fromPath("./data/samplesheet.csv")
1117+
.splitCsv(header: true)
1118+
.map{ row ->
1119+
[[id:row.id, repeat:row.repeat, type:row.type], row.bam]
1120+
}
1121+
```
11221122
11231123
2. **Splitting data into separate channels:** We used `filter` to divide data into independent streams based on the `type` field
11241124
1125-
```groovy
1126-
channel.filter { it.type == 'tumor' }
1127-
```
1125+
```groovy
1126+
channel.filter { it.type == 'tumor' }
1127+
```
11281128
11291129
3. **Joining matched samples:** We used `join` to recombine related samples based on `id` and `repeat` fields
11301130

0 commit comments

Comments
 (0)