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
Each compute environment must be pre-configured to enable Seqera Platform to submit tasks. You can read more on how to set up each environment using the links below.
40
-
41
-
!!! tip "The following guides describe how to configure each of these compute environments."
Copy file name to clipboardExpand all lines: docs/hello_nextflow/seqera/01_run_with_cli.md
+94-4Lines changed: 94 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
## 1. Use Seqera Platform to capture and monitor Nextflow jobs launched from the CLI
2
+
1
3
We'll start by using the Nextflow CLI to launch a pipeline and monitor it in Seqera Platform.
2
4
Start by logging into the [Seqera Platform](https://cloud.seqera.io/).
3
5
@@ -11,15 +13,15 @@ Follow these steps to set up your token:
11
13
12
14
1. Create a new token by clicking on the **Settings** drop-down menu:
13
15
14
-

16
+

15
17
16
18
2. Name your token:
17
19
18
-

20
+

19
21
20
22
3. Save your token safely:
21
23
22
-

24
+

23
25
24
26
!!! note
25
27
@@ -66,6 +68,94 @@ Hello world!
66
68
Use ++ctrl+click++ or ++cmd+click++ on the link to open it in your browser.
67
69
You'll see the Seqera Platform interface with the job finished and the logs captured.
68
70
69
-

71
+

70
72
71
73
You will see and be able to monitor your **Nextflow jobs** in Seqera Platform.
74
+
75
+
### 1.3. Set up Seqera Platform logging by default
76
+
77
+
To set up Seqera Platform logging by default, we first want to store our token more securely as a [Nextflow secret](https://www.nextflow.io/docs/latest/secrets.html).
78
+
79
+
```bash
80
+
nextflow secrets set tower_access_token "eyxxxxxxxxxxxxxxxQ1ZTE="
81
+
```
82
+
83
+
You can set up Seqera Platform logging by default by adding the following line to your `nextflow.config` file.
84
+
85
+
```groovy title="nextflow.config"
86
+
tower {
87
+
enabled = true
88
+
endpoint = "https://api.cloud.seqera.io"
89
+
accessToken = secrets.tower_access_token
90
+
}
91
+
```
92
+
93
+
Instead of putting this in the `nextflow.config` file of a specific project, you can also put it in the global file located at `$HOME/.nextflow/config`.
Notice that configuration for our pipeline run is being run pulled from three separate files:
140
+
141
+
- `/home/gitpod/.nextflow/config` - This is the global configuration file we just added.
142
+
- `/home/gitpod/.nextflow/assets/nextflow-io/hello/nextflow.config` - This is the `nextflow.config` file from the `nextflow-io/hello` repository.
143
+
- `/workspace/gitpod/nf-training/hello-nextflow/nextflow.config` - This is the `nextflow.config` file from our current working directory.
144
+
145
+
Nextflow resolves these configurations at runtime with a [specific order of precedence](https://www.nextflow.io/docs/latest/config.html#configuration-file).
146
+
The general rule, however, is that more specific configurations override less specific ones, and config/params specified on the CLI will override defaults in the config files.
147
+
148
+
Helpfully, Seqera Platform shows us the final output of this configuration resolution process which can be very useful for debugging!
149
+
150
+
### Takeaway
151
+
152
+
You have learned how to:
153
+
154
+
- Set up your Seqera Platform token by exporting it to your environment.
155
+
- Run Nextflow CLI with Seqera Platform visualizing and capturing logs.
156
+
- Set up Seqera Platform logging by default.
157
+
- Use Seqera Platform to explore the resolved configuration of a Nextflow pipeline.
158
+
159
+
### What's next?
160
+
161
+
Learn how to launch Nextflow pipelines from Seqera Platform using the Launchpad feature.
Each compute environment must be pre-configured to enable Seqera Platform to submit tasks. You can read more on how to set up each environment using the links below.
10
+
11
+
!!! tip "The following guides describe how to configure each of these compute environments."
0 commit comments