You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4. **Distributing across intervals:** We used `combine` to create Cartesian products of samples with genomic intervals for parallel processing.
1156
1156
1157
-
```groovy
1158
-
samples_ch.combine(intervals_ch)
1159
-
```
1157
+
```groovy
1158
+
samples_ch.combine(intervals_ch)
1159
+
```
1160
1160
1161
1161
5. **Aggregating by grouping keys:** We used `groupTuple` to group by the first element in each tuple, thereby collecting samples sharing `id` and `interval` fields and merging technical replicates.
1162
1162
1163
-
```groovy
1164
-
channel.groupTuple()
1165
-
```
1163
+
```groovy
1164
+
channel.groupTuple()
1165
+
```
1166
1166
1167
1167
6. **Optimizing the data structure:** We used `subMap` to extract specific fields and created a named closure for making transformations reusable.
0 commit comments