Skip to content

Commit 684138d

Browse files
vdauwerapinin4fjordsrobsymemribeirodantasewels
authored
New multi-course structure for training materials (#486)
Major refresh of the training materials * Pared down and streamlined the Hello Nextflow course (v2) * Spun out the genomics material into a separate mini-course, Nextflow for Genomics * Added stubs/placeholders for Nextflow Run and Side Quests * Consolidated the experimental and/or unfinished content into `other/` * Updated and streamlined the training index --------- Co-authored-by: Jonathan Manning <[email protected]> Co-authored-by: Rob Syme <[email protected]> Co-authored-by: Marcel Ribeiro-Dantas <[email protected]> Co-authored-by: Marcel Ribeiro-Dantas <[email protected]> Co-authored-by: Phil Ewels <[email protected]>
1 parent 0cef698 commit 684138d

File tree

335 files changed

+5665
-19206
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

335 files changed

+5665
-19206
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Please see the [official docs](https://squidfunk.github.io/mkdocs-material/refer
138138

139139
- Note that we have two custom admonitions: `exercise` and `result` (alias `solution`).
140140
- `!!!` does a regular admonition, `???` makes it collapsed (click to expand).
141-
- Intendation is important! Make sure you check the rendered site, as it's easy to make a mistake.
141+
- Indentation is important! Make sure you check the rendered site, as it's easy to make a mistake.
142142

143143
## Known limitations
144144

docs/advanced/index.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
Welcome to our Nextflow workshop for intermediate and advanced users!
44

5-
In this workshop, we will explore the advanced features of the Nextflow language and runtime, and learn how to use them to write efficient and scalable data-intensive workflows. We will cover topics such as parallel execution, error handling, and workflow customization.
5+
In this workshop, we will explore the advanced features of the Nextflow language and runtime, and learn how to use them to write efficient and scalable data-intensive workflows.
6+
We will cover topics such as parallel execution, error handling, and workflow customization.
67

7-
Please note that this is not an introductory workshop, and we will assume some basic familiarity with Nextflow.
8+
Please note that this is not an introductory workshop, and we will assume extensive familiarity with Nextflow.
89

910
By the end of this workshop, you will have the skills and knowledge to create complex and powerful Nextflow pipelines for your own data analysis projects.
1011

@@ -34,9 +35,12 @@ Please note that this is **not** a beginner's workshop and familiarity with Next
3435
- Familiarity with Nextflow and Groovy
3536
- An understanding of common file formats
3637

37-
## Follow the training video
38+
## Follow the training videos and get help
3839

39-
We run a free online training event for this course approximately every six months. Videos are streamed to YouTube and questions are handled in the nf-core Slack community. You can watch the recording of the most recent training ([September, 2023](https://nf-co.re/events/2023/training-sept-2023/)) below:
40+
Video recordings are available for this course.
41+
You can ask questions in the [Seqera community forum](https://community.seqera.io/).
42+
43+
You can watch the recording of the most recent training ([September, 2023](https://nf-co.re/events/2023/training-sept-2023/)) below:
4044

4145
<div style="text-align: center;">
4246
<iframe width="560" height="315" src="https://www.youtube.com/embed/nPAH9owvKvI?si=Kt3WmxF7rGhRp2L1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="" data-ruffle-polyfilled=""></iframe>

docs/basic_training/cache_and_resume.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ So D is matched with 'a' here, which was not the intention. That order will like
349349

350350
??? solution
351351

352-
You should see that while FOO and BAR reliably re-use their cache, FOOBAR will re-run at least a subset of its tasks due to differences in the combinations of inputs it recieves.
352+
You should see that while FOO and BAR reliably re-use their cache, FOOBAR will re-run at least a subset of its tasks due to differences in the combinations of inputs it receives.
353353

354354
The output will look like this:
355355

docs/basic_training/index.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Fundamentals Training
22

3-
You are now on the path to writing reproducible and scalable scientific workflows using Nextflow. This guide complements the full [Nextflow documentation](https://www.nextflow.io/docs/latest) - if you ever have any doubts, please refer to that.
3+
You are now on the path to writing reproducible and scalable scientific workflows using Nextflow.
4+
This guide complements the full [Nextflow documentation](https://www.nextflow.io/docs/latest) - if you ever have any doubts, please refer to that.
45

56
Let's get started!
67

@@ -18,17 +19,21 @@ By the end of this course you should:
1819

1920
## Audience & prerequisites
2021

21-
Please note that this is **not** a beginner's workshop and familiarity with Nextflow, the command line, and common file formats is assumed.
22+
Please note that this is **not** a beginner's workshop.
23+
Familiarity with Nextflow, the command line, and common file formats is assumed.
24+
25+
For a beginner's introduction to Nextflow, please see the [Hello Nextflow](../hello_nextflow/) course.
2226

2327
**Prerequisites**
2428

2529
- A GitHub account
2630
- Experience with command line
2731
- An understanding of common file formats
2832

29-
## Follow the training videos
33+
## Follow the training videos and get help
3034

31-
Free online training events for this course are run approximately every six months. Videos are streamed to YouTube and questions are handled in the nf-core Slack community.
35+
Video recordings are available for this course.
36+
You can ask questions in the [Seqera community forum](https://community.seqera.io/).
3237

3338
You can watch the recording of the most recent training ([March, 2024](https://nf-co.re/events/2024/training-foundational-march)) in the [YouTube playlist](https://youtu.be/dbOKB3VRpuE?si=MYBy4-gjRfEYkVRM) below:
3439

@@ -38,7 +43,7 @@ You can watch the recording of the most recent training ([March, 2024](https://n
3843

3944
!!! warning
4045

41-
Please note that the training material is updated regularly and that the videos may be out of date.
46+
Please note that the training material is updated regularly and that the videos linked below may be out of date.
4247

4348
If English is not your preferred language, you may find it useful to follow the training from the [March 2023 event](https://nf-co.re/events/2023/training-march-2023), which is available in multiple languages.
4449

docs/envsetup/01_setup.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ You can create a free GitHub account from the [GitHub home page](https://github.
1111

1212
Once you are logged in to GitHub, open this link in your browser to open the training environment: <https://codespaces.new/nextflow-io/training?quickstart=1&ref=master>
1313

14-
Alternatively, you can click on the button below.
14+
Alternatively, you can click on the button shown below from the many pages in the training portal where it is displayed.
1515

1616
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/nextflow-io/training?quickstart=1&ref=master)
1717

@@ -34,7 +34,7 @@ The free Github plan includes 120 core-hours of Codespaces compute per month, wh
3434

3535
## Explore your GitHub Codespaces IDE
3636

37-
After GitHub Codespaces has loaded, you should see something similar to the following (which may in light mode depending on your account preferences):
37+
After GitHub Codespaces has loaded, you should see something similar to the following (which may open in light mode depending on your account preferences):
3838

3939
![GitHub Codespaces welcome](img/codespaces_welcome.png)
4040

@@ -65,6 +65,10 @@ You should see the previous session, the default option is to resume it:
6565

6666
![Resume a GitHub Codespace](img/codespaces_resume.png)
6767

68+
## Saving files from GitHub Codespaces to your local machine
69+
70+
To save any file from the explorer panel, right-click the file and select `Download`.
71+
6872
## GitHub Codespaces quotas
6973

7074
GitHub Codespaces gives you up to 15 GB-month storage per month, and 120 core-hours per month.
@@ -76,7 +80,3 @@ Optionally, you can purchase access to more resources.
7680

7781
More information can be found in the GitHub docs:
7882
[About billing for GitHub Codespaces](https://docs.github.com/en/billing/managing-billing-for-your-products/managing-billing-for-github-codespaces/about-billing-for-github-codespaces)
79-
80-
## Saving files from GitHub Codespaces to your local machine
81-
82-
To save any file from the explorer panel, right-click the file and select `Download`.

docs/envsetup/02_local.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ To download the material, execute this command:
5959
git clone https://github.com/nextflow-io/training.git
6060
```
6161

62-
Then `cd` into the `nf-training` directory.
62+
Then `cd` into the relevant directory. By default, that is `hello-nextflow`.
6363

6464
## Checking your installation
6565

@@ -79,7 +79,7 @@ This should print the current version, system, and runtime.
7979
nextflow info
8080
```
8181

82-
This should come up with the Nextflow version and runtime information:
82+
This should come up with the Nextflow version and runtime information (actual versions may differ):
8383

8484
```console
8585
Version: 23.10.1 build 5891

docs/envsetup/img/onestepaway.png

-170 KB
Binary file not shown.

docs/hello_nextflow/01_orientation.md renamed to docs/hello_nextflow/00_orientation.md

Lines changed: 21 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ If you have not yet done so, please follow [this link](../../envsetup/) before g
77

88
## Materials provided
99

10-
Throughout this training course, we'll be working in the `hello-nextflow/` directory, which loads by default when you open the GitHub Codespaces workspace.
10+
Throughout this training course, we'll be working in the `hello-nextflow/` directory, which loads by default when you open the training workspace.
1111
This directory contains all the code files, test data and accessory files you will need.
1212

13-
Feel free to explore the contents of this directory; the easiest way to do so is to use the file explorer on the left-hand side of the GitHub Codespaces workspace.
13+
Feel free to explore the contents of this directory; the easiest way to do so is to use the file explorer on the left-hand side of the training workspace.
1414
Alternatively, you can use the `tree` command.
1515
Throughout the course, we use the output of `tree` to represent directory structure and contents in a readable form, sometimes with minor modifications for clarity.
1616

@@ -24,64 +24,36 @@ If you run this inside `hello-nextflow`, you should see the following output:
2424

2525
```console title="Directory contents"
2626
.
27-
├── containers
28-
│ ├── build
29-
│ ├── data
30-
│ ├── results
31-
│ └── solutions
32-
├── data
33-
│ ├── bam
34-
│ ├── greetings.csv
35-
│ ├── ref
36-
│ ├── sample_bams.txt
37-
│ └── samplesheet.csv
38-
├── hello-config
39-
│ ├── demo-params.json
40-
│ ├── main.nf
41-
│ └── nextflow.config
27+
├── greetings.csv
28+
├── hello-channels.nf
29+
├── hello-config.nf
4230
├── hello-containers.nf
43-
├── hello-genomics.nf
44-
├── hello-modules
45-
│ ├── demo-params.json
46-
│ ├── main.nf
47-
│ └── nextflow.config
48-
├── hello-nf-core
49-
│ ├── data
50-
│ └── solution
51-
├── hello-nf-test
52-
│ ├── demo-params.json
53-
│ ├── main.nf
54-
│ ├── modules
55-
│ └── nextflow.config
56-
├── hello-operators.nf
31+
├── hello-modules.nf
32+
├── hello-workflow.nf
5733
├── hello-world.nf
5834
├── nextflow.config
59-
└── solutions
60-
├── hello-config
61-
├── hello-genomics
62-
├── hello-modules
63-
├── hello-nf-test
64-
├── hello-operators
65-
└── hello-world
66-
67-
22 directories, 17 files
35+
├── solutions
36+
│ ├── 1-hello-world
37+
│ ├── 2-hello-channels
38+
│ ├── 3-hello-workflow
39+
│ ├── 4-hello-modules
40+
│ ├── 5-hello-containers
41+
│ └── 6-hello-config
42+
└── test-params.json
43+
44+
7 directories, 9 files
6845
```
6946

70-
!!!note
71-
72-
Don't worry if this seems like a lot; we'll go through the relevant pieces at each step of the course.
73-
This is just meant to give you an overview.
74-
7547
**Here's a summary of what you should know to get started:**
7648

7749
- **The `.nf` files** are workflow scripts that are named based on what part of the course they're used in.
7850

79-
- **The `hello-*` directories** are directories used in the later Parts of the course where we are working with more than just one workflow file.
80-
8151
- **The file `nextflow.config`** is a configuration file that sets minimal environment properties.
8252
You can ignore it for now.
8353

84-
- **The `data` directory** contains the input data we'll use in most of the course. The dataset is described in detail in Part 3, when we introduce it for the first time.
54+
- **The file `greetings.csv`** contains input data we'll use in most of the course. It is described in Part 1, when we introduce it for the first time.
55+
56+
- **The file `test-params.json`** is a file we'll use in Part 6. You can ignore it for now.
8557

8658
- **The `solutions` directory** contains the completed workflow scripts that result from each step of the course.
8759
They are intended to be used as a reference to check your work and troubleshoot any issues.
@@ -90,7 +62,7 @@ If you run this inside `hello-nextflow`, you should see the following output:
9062

9163
!!!tip
9264

93-
If for whatever reason you move out of this directory, you can always run this command to return to it:
65+
If for whatever reason you move out of this directory, you can always run this command to return to it (within the training environment):
9466

9567
```bash
9668
cd /workspaces/training/hello-nextflow

docs/hello_nextflow/01_orientation.pt.md renamed to docs/hello_nextflow/00_orientation.pt.md

Lines changed: 19 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Orientação
22

3-
O ambiente Gitpod contém todo o software, código e dados necessários para este curso. Você não precisa instalar nada por conta própria. No entanto, é necessária uma conta (gratuita) para logar - e recomendamos que você reserve alguns minutos para se familiarizar com a interface.
3+
O ambiente Github Codespaces contém todo o software, código e dados necessários para este curso. Você não precisa instalar nada por conta própria. No entanto, é necessária uma conta (gratuita) para logar - e recomendamos que você reserve alguns minutos para se familiarizar com a interface.
44

55
Caso ainda não tenha feito isso, siga [este link](../../envsetup/) antes de prosseguir.
66

@@ -20,47 +20,24 @@ Se você executar isso dentro do diretório `hello-nextflow`, verá a seguinte s
2020

2121
```console title="Directory contents"
2222
.
23-
├── containers
24-
│ ├── build
25-
│ ├── data
26-
│ ├── results
27-
│ └── scripts
28-
├── data
29-
│ ├── bam
30-
│ ├── greetings.csv
31-
│ ├── ref
32-
│ ├── sample_bams.txt
33-
│ └── samplesheet.csv
34-
├── hello-config
35-
│ ├── demo-params.json
36-
│ ├── main.nf
37-
│ └── nextflow.config
23+
├── greetings.csv
24+
├── hello-channels.nf
25+
├── hello-config.nf
3826
├── hello-containers.nf
39-
├── hello-genomics.nf
40-
├── hello-modules
41-
│ ├── demo-params.json
42-
│ ├── main.nf
43-
│ └── nextflow.config
44-
├── hello-nf-core
45-
│ ├── data
46-
│ └── solution
47-
├── hello-nf-test
48-
│ ├── demo-params.json
49-
│ ├── main.nf
50-
│ ├── modules
51-
│ └── nextflow.config
52-
├── hello-operators.nf
27+
├── hello-modules.nf
28+
├── hello-workflow.nf
5329
├── hello-world.nf
5430
├── nextflow.config
55-
└── solutions
56-
├── hello-config
57-
├── hello-genomics
58-
├── hello-modules
59-
├── hello-nf-test
60-
├── hello-operators
61-
└── hello-world
62-
63-
18 directories, 17 files
31+
├── solutions
32+
│ ├── 1-hello-world
33+
│ ├── 2-hello-channels
34+
│ ├── 3-hello-workflow
35+
│ ├── 4-hello-modules
36+
│ ├── 5-hello-containers
37+
│ └── 6-hello-config
38+
└── test-params.json
39+
40+
7 directories, 9 files
6441
```
6542

6643
!!!nota
@@ -71,11 +48,11 @@ Se você executar isso dentro do diretório `hello-nextflow`, verá a seguinte s
7148

7249
- **Os arquivos `.nf`** são _scripts_ de fluxo de trabalho nomeados com base na parte do curso em que são utilizados.
7350

74-
- **Os diretórios `hello-*`** são usados nas partes posteriores do curso, onde trabalhamos com mais de um arquivo de fluxo de trabalho.
75-
7651
- **O arquivo `nextflow.config`** é um arquivo de configuração que define propriedades mínimas do ambiente. Você pode ignorá-lo por enquanto.
7752

78-
- **O diretório `data`** contém os dados de entrada que usaremos na maior parte do curso. O conjunto de dados é descrito em detalhe na Parte 3, quando o introduzimos pela primeira vez.
53+
- **The file `greetings.csv`** contains input data we'll use in most of the course. It is described in Part 1, when we introduce it for the first time.
54+
55+
- **The file `test-params.json`** is a file we'll use in Part 6. You can ignore it for now.
7956

8057
- **O diretório `solutions`** contém os _scripts_ de fluxo de trabalho completos resultantes de cada etapa do curso. Eles servem como referência para verificar seu trabalho e solucionar quaisquer problemas. As informações de nome e o número presentes no nome do arquivo correspondem à etapa da parte relevante do curso. Por exemplo, o arquivo `hello-world-4.nf` é o resultado esperado ao completar as etapas 1 a 4 da Parte 1: Hello World.
8158

0 commit comments

Comments
 (0)