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
Copy file name to clipboardExpand all lines: docs/nf4_science/genomics/03_modules.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,7 @@ include { SAMTOOLS_INDEX } from './modules/samtools/index/main.nf'
116
116
process GATK_HAPLOTYPECALLER {
117
117
```
118
118
119
-
You can now run the workflow again, and it should still work the same way as before. If you supply the `-resume` flag, no new should even need to be done:
119
+
You can now run the workflow again, and it should still work the same way as before. If you supply the `-resume` flag, no new tasks should even need to be run:
Wrote process test file '/workspaces/training/nf4-science/genomics/tests/modules/samtools/index/main.nf.test
114
114
115
115
SUCCESS: Generated 1 test files.
116
116
```
@@ -431,7 +431,7 @@ Learn how to write tests for other processes in our genomics workflow, using the
431
431
432
432
## 2. Add tests to a chained process and test for contents
433
433
434
-
To test `GATK_HAPLOTYPECALLER`, we need to provide the process with the `SAMTOOLS_INDEX` output as an input. We could do that by running the `SAMTOOLS_INDEX`, retrieving its outputs, and storing with the test data for the workflow. That's actually the recommended approach for a polished pipeline, but nf-test provides an alternative approach, using the `setup` method.
434
+
To test `GATK_HAPLOTYPECALLER`, we need to provide the process with the `SAMTOOLS_INDEX` output as an input. We could do that by running `SAMTOOLS_INDEX`, retrieving its outputs, and storing them with the test data for the workflow. That's actually the recommended approach for a polished pipeline, but nf-test provides an alternative approach, using the `setup` method.
435
435
436
436
With the setup method, we can trigger the `SAMTOOLS_INDEX` process as part of the test setup, and then use its output as an input for `GATK_HAPLOTYPECALLER`. This has a cost - we're going to have to run the `SAMTOOLS_INDEX` process every time we run the test for `GATK_HAPLOTYPECALLER`- but maybe we're still developing the workflow and don't want to pre-generate test data we might have to change later. `SAMTOOLS_INDEX` process is also very quick, so maybe the benefits of pre-generating and storing its outputs are negligible. Let's see the setup method works.
437
437
@@ -524,7 +524,7 @@ test("Should run without failures") {
Test [c847bfae] 'Should call son's halotype correctly' PASSED (19.91s)
797
-
Test [44494e9c] 'Should call mother's halotype correctly' PASSED (18.606s)
798
-
Test [eb0d1a07] 'Should call father's halotype correctly' PASSED (18.773s)
796
+
Test [c847bfae] 'Should call son's haplotype correctly' PASSED (19.91s)
797
+
Test [44494e9c] 'Should call mother's haplotype correctly' PASSED (18.606s)
798
+
Test [eb0d1a07] 'Should call father's haplotype correctly' PASSED (18.773s)
799
799
800
800
801
801
SUCCESS: Executed 3 tests in 57.348s
@@ -1181,9 +1181,9 @@ https://www.nf-test.com
1181
1181
1182
1182
Test Process GATK_HAPLOTYPECALLER
1183
1183
1184
-
Test [c847bfae] 'Should call son's halotype correctly' PASSED (20.951s)
1185
-
Test [44494e9c] 'Should call mother's halotype correctly' PASSED (19.155s)
1186
-
Test [eb0d1a07] 'Should call father's halotype correctly' PASSED (21.843s)
1184
+
Test [c847bfae] 'Should call son's haplotype correctly' PASSED (20.951s)
1185
+
Test [44494e9c] 'Should call mother's haplotype correctly' PASSED (19.155s)
1186
+
Test [eb0d1a07] 'Should call father's haplotype correctly' PASSED (21.843s)
1187
1187
1188
1188
Test Process GATK_JOINTGENOTYPING
1189
1189
@@ -1205,7 +1205,7 @@ SUCCESS: Executed 8 tests in 167.772s
1205
1205
1206
1206
7 tests in 1 command! We spent a long time configuring lots and lots of tests, but when it came to running them it was very quick and easy. You can see how useful this is when maintaining a large pipeline, which could include hundreds of different elements. We spend time writing tests once so we can save time running them many times.
1207
1207
1208
-
Furthermore, we can automate this! imagine tests running every time you or a colleague tries to add new code. This is how we ensure our pipelines maintain a high standard.
1208
+
Furthermore, we can automate this! Imagine tests running every time you or a colleague tries to add new code. This is how we ensure our pipelines maintain a high standard.
0 commit comments