Skip to content

Setting up your computer

Quick setup : VSCode and devcontainers

The fastest way to start coding is with VSCode (≥ 1.95) and docker (≥ 24).

  1. If you don’t have VSCode or docker installed yet, do it using the links provided above.

  2. Open VSCode. If it opens in a project, close it or open a new empty window (ctrl+shift+N).

  3. Open the VSCode terminal. For that, you can either pull on the VSCode window footer or use the ctrl+shift+` keyboard shortcut (you will find the ` key left to the Enter key).

    docker run hello-world

  4. Test that you have access to docker. In the VSCode Terminal, run :

    Terminal window
    docker run hello-world

Install the pipeline template

Next step is to install the pipeline template locally.

  1. In you VSCode window, find Clone git repository under the Start main menu. Clicking on it opens the command palette at the top of the window.

    vscode clone github repository

  2. Select Clone from Github and login if asked.

  3. Search and select scilus/nf-neuro-tutorial. Set a download location for the repository when asked, anywhere is fine.

    vscode find nf-neuro-tutorial

  4. Wait for a prompt to open the cloned repository directory in the current VSCode window.

Development container

It will take only a few seconds for the editor to load up, but you don’t have access to the development environment to its full extent yet. For that, you need the devcontainer.

  1. Install the Dev Containers extension. You’ll find it in the Extension Marketplace, located in the navigation bar on the left.

    dev containers extension

  2. Locate and click on the Remote Window Menu icon at the bottom left corner of the VSCode window. The command palette at the trop of the window.

    vscode remote window

  3. Find the Reopen in Container option and click it.

    reopen in container

  4. Wait a few minutes for the container to build. It’s a good time for a hot drink .

Working in the devcontainer

Once in the container, you’ll notice that, well, not much has changed in fact !

The whole content of the custom pipeline template you cloned locally on your computer is accessible through the Explorer panel on the left.

Sanity checks

Let’s verify that tools are available and working by running some quick and simple tests commands.

  1. Open a VSCode terminal (pulling on the window’s footer or with the ctrl+shift+` shortcut, ` is on the left of the enter key).

  2. nf-core/tools

    Terminal window
    nf-core modules list remote
  3. docker

    Terminal window
    docker run hello-world
  4. Nextflow

    Terminal window
    nextflow run helloworld
  5. nf-test

    Terminal window
    nf-test test modules/nf-neuro/reconst/dtimetrics --profile docker