-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into advanced-update
- Loading branch information
Showing
270 changed files
with
23,934 additions
and
699 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "nfcore", | ||
"image": "ghcr.io/nextflow-io/training:latest", | ||
"remoteUser": "gitpod", | ||
"features": { | ||
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {} | ||
}, | ||
"remoteEnv": { | ||
"NXF_HOME": "/workspaces/.nextflow", | ||
"HOST_PROJECT_PATH": "${localWorkspaceFolder}" | ||
}, | ||
// Configure tool-specific properties. | ||
"customizations": { | ||
// Configure properties specific to VS Code. | ||
"vscode": { | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"python.defaultInterpreterPath": "/opt/conda/bin/python" | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"nf-core.nf-core-extensionpack", | ||
"nextflow.nextflow", | ||
"codezombiech.gitignore" | ||
] | ||
} | ||
}, | ||
"portsAttributes": { | ||
"3000": { | ||
"label": "Application", | ||
"onAutoForward": "openPreview" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: "v3.1.0" | ||
hooks: | ||
- id: prettier | ||
additional_dependencies: | ||
- prettier@3.2.5 | ||
|
||
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python | ||
rev: "2.7.3" | ||
hooks: | ||
- id: editorconfig-checker | ||
alias: ec | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
exclude_types: | ||
- svg | ||
- id: end-of-file-fixer | ||
exclude_types: | ||
- svg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Introduction | ||
|
||
Welcome to our Nextflow workshop for intermediate and advanced users! | ||
|
||
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. | ||
|
||
Please note that this is not an introductory workshop, and we will assume some basic familiarity with Nextflow. | ||
|
||
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. | ||
|
||
Let's get started! | ||
|
||
## Learning objectives | ||
|
||
By the end of this course you should: | ||
|
||
- Describe commonly used and well understood operators | ||
- Apply good practices for the propagation of metadata | ||
- Group and split channels | ||
- Apply Groovy helper classes to Nextflow scripts | ||
- Sensibly structure workflows | ||
- Apply layers of configuration to a workflow | ||
|
||
## Audience & prerequisites | ||
|
||
Please note that this is **not** a beginner's workshop and familiarity with Nextflow, the command line, and common file formats is assumed. | ||
|
||
**Prerequisites** | ||
|
||
- A GitHub account | ||
- Experience with command line | ||
- Familiarity with Nextflow and Groovy | ||
- An understanding of common file formats | ||
|
||
## Follow the training video | ||
|
||
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: | ||
|
||
<div style="text-align: center;"> | ||
<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> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# Orientation | ||
|
||
The Gitpod environment contains some test data that will be used in this workshop. | ||
|
||
!!! note | ||
|
||
Follow [this link](../envsetup/index.md) if you have not yet setup your Gitpod environment. | ||
|
||
## Getting started | ||
|
||
You will complete this module in the `nf-training-advanced/` folder. | ||
|
||
In this folder you will find a series of folders that will be used during different sections of this training. | ||
|
||
```console | ||
nf-training-advanced | ||
├── groovy | ||
│ ├── main.nf | ||
│ ├── modules | ||
│ │ └── local | ||
│ │ └── fastp | ||
│ │ └── main.nf | ||
│ └── nextflow.config | ||
├── grouping | ||
│ ├── data | ||
│ │ ├── genome.fasta | ||
│ │ ├── genome.fasta.fai | ||
│ │ ├── intervals.bed | ||
│ │ ├── reads | ||
│ │ │ ├── treatmentA | ||
│ │ │ │ └── <data files> | ||
│ │ │ └── treatmentB | ||
│ │ │ └── <data files> | ||
│ │ ├── samplesheet.csv | ||
│ │ └── samplesheet.ugly.csv | ||
│ └── main.nf | ||
├── metadata | ||
│ ├── data | ||
│ │ ├── reads | ||
│ │ │ ├── treatmentA | ||
│ │ │ │ └── <data files> | ||
│ │ │ └── treatmentB | ||
│ │ │ └── <data files> | ||
│ │ ├── samplesheet.csv | ||
│ │ └── samplesheet.ugly.csv | ||
│ └── main.nf | ||
├── operators | ||
│ ├── data | ||
│ │ ├── reads | ||
│ │ │ └── <data files> | ||
│ │ ├── samplesheet.csv | ||
│ │ └── samplesheet.ugly.csv | ||
│ └── main.nf | ||
└── structure | ||
├── lib | ||
│ └── Food.groovy | ||
├── main.nf | ||
└── templates | ||
├── adder.py | ||
└── demo_script.sh | ||
``` | ||
|
||
## Selecting a Nextflow version | ||
|
||
By default, Nextflow will pull the latest stable version into your environment. | ||
|
||
However, Nextflow is constantly evolving as we make improvements and fix bugs. | ||
|
||
The latest releases can be viewed on GitHub [here](https://github.com/nextflow-io/nextflow). | ||
|
||
If you want to use a specific version of Nextflow, you can set the `NXF_VER` variable as shown below: | ||
|
||
```bash | ||
export NXF_VER=23.10.0 | ||
``` | ||
|
||
!!! Note | ||
|
||
This tutorial workshop requires `NXF_VER=23.10.0`, or later. | ||
|
||
Run `nextflow -version` again to confirm that the change has taken effect. |
Oops, something went wrong.