-
Notifications
You must be signed in to change notification settings - Fork 113
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 update-nf-customize
- Loading branch information
Showing
44 changed files
with
1,214 additions
and
636 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,33 @@ | ||
{ | ||
"name": "nfcore", | ||
"image": "nfcore/gitpod:latest", | ||
"remoteUser": "gitpod", | ||
|
||
// 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", | ||
"python.linting.enabled": true, | ||
"python.linting.pylintEnabled": true, | ||
"python.formatting.autopep8Path": "/opt/conda/bin/autopep8", | ||
"python.formatting.yapfPath": "/opt/conda/bin/yapf", | ||
"python.linting.flake8Path": "/opt/conda/bin/flake8", | ||
"python.linting.pycodestylePath": "/opt/conda/bin/pycodestyle", | ||
"python.linting.pydocstylePath": "/opt/conda/bin/pydocstyle", | ||
"python.linting.pylintPath": "/opt/conda/bin/pylint" | ||
}, | ||
|
||
// 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"] | ||
} | ||
}, | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: "v3.1.0" | ||
hooks: | ||
- id: prettier | ||
additional_dependencies: | ||
- [email protected] | ||
|
||
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python | ||
rev: "2.7.3" | ||
hooks: | ||
- id: editorconfig-checker | ||
alias: ec |
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 |
---|---|---|
|
@@ -85,26 +85,26 @@ To exit from the container, stop the BASH session with the `exit` command. | |
|
||
### Your first Dockerfile | ||
|
||
Docker images are created by using a so-called `Dockerfile`, a simple text file containing a list of commands to assemble and configure the image with the software packages required. For example, a Dockerfile to create a container with `cowsay` installed could be as simple as this: | ||
Docker images are created by using a so-called `Dockerfile`, a simple text file containing a list of commands to assemble and configure the image with the software packages required. For example, a Dockerfile to create a container with `curl` installed could be as simple as this: | ||
|
||
```dockerfile linenums="1" title="Dockerfile" | ||
FROM debian:bullseye-slim | ||
|
||
LABEL image.author.name "Your Name Here" | ||
LABEL image.author.email "[email protected]" | ||
|
||
RUN apt-get update && apt-get install -y curl cowsay | ||
RUN apt-get update && apt-get install -y curl | ||
|
||
ENV PATH=$PATH:/usr/games/ | ||
``` | ||
|
||
Once your Dockerfile is ready, you can build the image by using the `build` command. For example: | ||
|
||
```bash | ||
docker build -t <my-image> . | ||
docker build -t my-image . | ||
``` | ||
|
||
Where `<my-image>` is the user-specified name for the container image you plan to build. | ||
Where `my-image` is the user-specified name for the container image you plan to build. | ||
|
||
!!! tip | ||
|
||
|
@@ -193,6 +193,10 @@ docker build -t my-image . | |
|
||
### Run Salmon in the container | ||
|
||
!!! tip | ||
|
||
If you didn't complete the steps above, use the 'rnaseq-nf' image used elsewhere in these materials by specifying `nextflow/rnaseq-nf` in place of `my-image` in the following examples. | ||
|
||
You can run the software installed in the container by using the `run` command. For example, you can check that Salmon is running correctly in the container generated above by using the following command: | ||
|
||
```bash | ||
|
@@ -609,8 +613,8 @@ Contrary to other registries that will pull the latest image when no tag (versio | |
You can also install `galaxy-util-tools` and search for _mulled_ containers in your CLI. You'll find instructions below, using conda to install the tool. | ||
|
||
```bash | ||
conda activate a-conda-env-you-already-have | ||
conda install galaxy-tool-util | ||
conda create -n galaxy-tool-util -y galaxy-tool-util # Create a new environment with 'galaxy-tool-util' installed | ||
conda activate galaxy-tool-util | ||
mulled-search --destination quay singularity --channel bioconda --search bowtie samtools | grep mulled | ||
``` | ||
|
||
|
@@ -670,7 +674,7 @@ Nextflow automatically sets up an environment for the given package names listed | |
|
||
!!! question "Exercise" | ||
|
||
The tools `fastqc` and `salmon` are both available in BioContainers. Add the appropriate `container` directives to the `FASTQC` and `QUANTIFICATION` processes in `script5.nf` to use BioContainers instead of the container image you have been using in this training. | ||
The tools `fastqc` and `salmon` are both available in Biocontainers (`biocontainers/fastqc:v0.11.5` and `quay.io/biocontainers/salmon:1.7.0--h84f40af_0`, respectively). Add the appropriate `container` directives to the `FASTQC` and `QUANTIFICATION` processes in `script5.nf` to use Seqera Containers instead of the container image you have been using in this training. | ||
|
||
!!! tip "Hint" | ||
|
||
|
Oops, something went wrong.