Skip to content

Commit b73f9b5

Browse files
committed
🎨 style(hello_seqera): incorporate suggestions from code-review
Co-authored by: Geraldine Van der Auwera <geraldinevdauwera@gmail.com> Co-authored by: Marcel Ribeiro-Dantas <mribeirodantas@seqera.io>
1 parent 7ac9982 commit b73f9b5

File tree

3 files changed

+35
-27
lines changed

3 files changed

+35
-27
lines changed

‎docs/hello_nextflow/seqera/01_run_with_cli.md

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Start by logging into the [Seqera Platform](https://cloud.seqera.io/).
66
!!! info "Nextflow Tower"
77

88
Seqera Platform was previously known as Nextflow Tower.
9-
You'll still see references to the previous name in environment variable and cli option names.
9+
You'll still see references to the previous name in environment variables and CLI option names.
1010

1111
### 1.1. Set up your Seqera Platform token by exporting it to your environment
1212

@@ -26,21 +26,26 @@ Follow these steps to set up your token:
2626

2727
!!! note
2828

29-
Leave this browser tab open as we will need the token once more to store it as a Nextflow secret.
29+
Leave the browser tab with the token open as we will need it once more to store it as a Nextflow secret.
3030

3131
4. To make your token available to the Nextflow CLI, export it on the command line:
3232

3333
Open a terminal and type:
3434

3535
```bash
36-
export TOWER_ACCESS_TOKEN=eyxxxxxxxxxxxxxxxQ1ZTE=
36+
export TOWER_ACCESS_TOKEN=eyxxxxxxxxxxxxxxxQ1ZTE=
3737
```
3838

3939
Where `eyxxxxxxxxxxxxxxxQ1ZTE=` is the token you have just created.
4040

41-
### 1.2. Run Nextflow cli with Seqera Platform visualizing and capturing logs
41+
!!! Warning "Security Note"
4242

43-
Run your Nextflow workflows as usual with the addition of the `-with-tower` command:
43+
Keep your token secure and do not share it with others.
44+
You can add a ++space++ before the `export` command to prevent it from being saved in your shell history.
45+
46+
### 1.2. Run Nextflow CLI with Seqera Platform visualizing and capturing logs
47+
48+
Run a Nextflow workflow with the addition of the `-with-tower` command:
4449

4550
```bash
4651
nextflow run nextflow-io/hello -with-tower
@@ -66,7 +71,7 @@ Hola world!
6671
Hello world!
6772
```
6873

69-
Use ++ctrl+click++ or ++cmd+click++ on the link to open it in your browser.
74+
Hold ++ctrl++ or ++cmd++ and click on the link to open it in your browser.
7075
You'll see the Seqera Platform interface with the job finished and the logs captured.
7176
7277
![Seqera Platform](seqera/img/run_with_tower.png)
@@ -75,40 +80,40 @@ You will see and be able to monitor your **Nextflow jobs** in Seqera Platform.
7580
7681
### 1.3. Set up Seqera Platform in Nextflow configuration
7782
78-
Doing that token setup regularly can get bit tedious, but the same setup can be applied in configuration applied to Nexflow configuration so that it does not need to be set each time.
79-
This can be the `nextflow.config` file of a specific project, or the global file located at `$HOME/.nextflow/config`, which will apply to all your runs.
83+
Doing that token setup regularly can get a bit tedious, so let's set this configuration for all our pipeline runs with the global Nextflow configuration file located at `$HOME/.nextflow/config`.
8084

8185
Before we set the configuration, we need to permanently store the token in Nextflow using a [Nextflow secret](https://www.nextflow.io/docs/latest/secrets.html):
8286

8387
```bash
8488
nextflow secrets set tower_access_token "eyxxxxxxxxxxxxxxxQ1ZTE="
8589
```
8690

87-
The following block of configuration will enable Seqera Platform logging by default:
91+
Open the Nextflow configuration file located at `$HOME/.nextflow/config`:
8892

89-
```groovy title="nextflow.config"
90-
tower {
91-
enabled = true
92-
endpoint = "https://api.cloud.seqera.io"
93-
accessToken = secrets.tower_access_token
94-
}
93+
```bash
94+
code $HOME/.nextflow/config
9595
```
9696

97-
However, instead of enabling Seqera Platform for an individual pipeline, we want to enable it for ourselves globally.
98-
99-
Run the following command to put the config block in your user configuration file located at `$HOME/.nextflow/config`.
97+
Then add the following block of configuration:
10098

101-
```bash
102-
cat <<EOF >> $HOME/.nextflow/config
99+
```groovy title="$HOME/.nextflow/config"
103100
tower {
104101
enabled = true
105102
endpoint = "https://api.cloud.seqera.io"
106103
accessToken = secrets.tower_access_token
104+
workspaceId = secrets.tower_workspace_id
107105
}
108-
EOF
109106
```
110107

111-
Run your Nextflow workflows as usual:
108+
!!! hint "Workspace ID and Endpoint`
109+
110+
We haven't set `secrets.tower_workspace_id` yet, and so Nextflow will fill in an empty string for this value.
111+
This will default to the user's workspace in Seqera Platform which is what we want for now.
112+
113+
The `endpoint` is the URL of the Seqera Platform API.
114+
If your institution is running a private instance of Seqera Platform, you will want to change this to the appropriate URL.
115+
116+
Run your Nextflow workflows as before, but without the `-with-tower` command:
112117
113118
```bash
114119
nextflow run nextflow-io/hello

‎docs/hello_nextflow/seqera/02_run_with_launchpad.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Follow these steps to launch a test run of a pipeline:
3333
3. Change the "Workflow run name" to "<username>-rnaseq-test".
3434
4. Click "Next" to bring up the parameters form.
3535
5. Find the `trimmer` parameter and change it to `fastp`.
36-
6. Click to "Next" to inspect the advanced configuration.
36+
6. Click on "Next" to inspect the advanced configuration.
3737
7. Click "Launch" to start the pipeline!
3838

3939
!!! Tip
@@ -75,10 +75,10 @@ Click on the task to see the task details:
7575

7676
You have learned how to:
7777

78-
- Switch between organizations and workspaces in Seqera Platform.
79-
- Launch a Nextflow pipeline that ran in the cloud using Seqera Platform.
80-
- Monitor the progress of the pipeline run.
81-
- Inspect the details of a task that was executed as part of the pipeline.
78+
- Switch between organizations and workspaces in Seqera Platform.
79+
- Launch a Nextflow pipeline that ran in the cloud using Seqera Platform.
80+
- Monitor the progress of the pipeline run.
81+
- Inspect the details of a task that was executed as part of the pipeline.
8282

8383
### Next steps
8484

‎mkdocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ markdown_extensions:
155155
preserve_tabs: true
156156
- pymdownx.tabbed:
157157
alternate_style: true
158+
- pymdownx.tasklist:
159+
custom_checkbox: true
160+
clickable_checkbox: true
158161
- tables
159162
- toc:
160163
title: On this page

0 commit comments

Comments
 (0)