Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview of today’s session:

  • Learn to use CONDA to install tools and create conda environments

  • Hands-on exercises:

    • Quality Control (QC) of raw Nanopore data

    • Mapping of processed Nanopore data onto a reference genome

    • Run the epi2me-labs/wf-human-variation nextflow pipeline

Public Nanopore Datasets

Experiment Accession

sample

FASTQ

Experiment Title

Organism Name

Instrument

Submitter

Study Accession

Study Title

Sample Accession

Total Size, Mb

Total Spots

Total Bases

Library Strategy

Library Source

Library Selection

SRX14748451

S1

SRR18645307

Homo sapiens

Homo sapiens

MinION

Drexel University

SRP367676

Multiplex structural variant detection by whole-genome mapping and nanopore sequencing.

SRS12509856

821.1

348226

972620520

OTHER

GENOMIC

other

ERX8211413

S3

ERR8578833

MinION sequencing

Homo sapiens

MinION

the university of hong kong

ERP135493

Target enrichment sequencing and variant calling on medical exome using ONT MinION

ERS10590135

8961.02

9636172

10382057986

Targeted-Capture

GENOMIC

PCR

SRX13322984

S5

SRR17138639

Nanopore targeted sequencing (ReadUntil/ReadFish) of NA12878-HG001- basecalled sequences

Homo sapiens

MinION

Garvan Institute of Medical Research

SRP349335

Comprehensive genetic diagnosis of tandem repeat expansion disorders with programmable targeted nanopore sequencing

SRS11230712

6629.97

5513156

7815960904

WGS

GENOMIC

other

SRX13323057

S6

SRR17138566

Nanopore targeted sequencing (ReadUntil/ReadFish) of NA12878-HG001- basecalled sequences

Homo sapiens

MinION

Garvan Institute of Medical Research

SRP349335

Comprehensive genetic diagnosis of tandem repeat expansion disorders with programmable targeted nanopore sequencing

SRS11230747

17107.98

12278391

20238395479

WGS

GENOMIC

other

...

Anaconda Distribution is a full featured installer that comes with a suite of packages for data science, as well as Anaconda Navigator, a GUI application for working with conda environments.

If

NOTE: if you have already installed conda then you do not need to do the steps below

Download Miniconda installer for your system https://docs.anaconda.com/free/miniconda/

...

Code Block
~/miniconda3/bin/conda init bash

Now close your terminal and open it again to be able to use conda.

Once logged in you will be able to access the conda “base” environment

Configure conda channels https://bioconda.github.io/

Code Block
conda config --add channels defaults
conda config --add channels bioconda
conda config --add channels conda-forge
conda config --set channel_priority strict

Source for information below: https://astrobiomike.github.io/unix/conda-intro

...

Base environment

The “base” conda environment is, like it sounds, kind of our home base inside conda. We wouldn’t want to install lots of complicated programs here, as the more things added, the more likely something is going to end up having a conflict. But the base environment is somewhere we might want to install smaller programs that we tend to use a lot (example below).

...

Making a new environment

The simplest way we can create a new conda environment is like so:

Code Block
conda create -n new-env

Where the base command is conda create, then we are specifying the name of our new environment with -n (here “new-env”). It will check some things out and tell us where it is going to put it, when we hit yand enter, it will be created.

...

Entering an environment

To enter that environment, we need to execute:

Code Block
conda activate new-env

And now we can see our prompt has changed to have (new-env) at the front, telling us we are in that environment.

If we had forgotten the name, or wanted to see all of our environments, we can do so with:

Code Block
conda env list

Which will print out all of the available conda environments, and have an asterisk next to the one we are currently in.

...

Exiting an environment

We can exit whatever conda environment we are currently in by running:

Code Block
conda deactivate

...

Making an environment with a specific python version

By default, the conda create command will use the python version that the base conda environment is running. But we can specify a different one in the command if we’d like:

Code Block
conda create -n python-v2.7 python=2.7

Breakdown

  • conda create – this is our base command

  • -n python-v2.7 – we are naming the environment “python-v2.7”

  • python=2.7 – here we are specifying the python version to use within the environment

...

Removing an environment

And here is how we can remove an environment, by providing its name to the -n flag:

Code Block
conda deactivate # we can't be inside the environment we want to remove

conda env remove -n python-v2.7

...