Skip to content

Latest commit

 

History

History
220 lines (186 loc) · 8.8 KB

README.md

File metadata and controls

220 lines (186 loc) · 8.8 KB

Dorado Docker Image

This Dockerfile sets up an environment for running Dorado, a tool for basecalling Fast5/Pod5 files from Oxford Nanopore sequencing.

Table of Contents

Introduction

This Docker image includes:

  • Dorado: Version 0.8.3, a tool for basecalling Oxford Nanopore sequencing data.
  • NVIDIA CUDA: Version 12.2.0, for GPU acceleration (requires NVIDIA GPU).
  • Pigz: Version 2.6, for parallel compression and decompression.
  • Pre-downloaded basecalling models: All models are downloaded during the build process for basecalling.

Requirements

  • Docker: Installed on your system.
  • NVIDIA GPU and Drivers: Installed and configured.
  • NVIDIA Container Toolkit: To enable GPU support in Docker containers.

Running the Docker Container

To run the Dorado tool within the Docker container, use the following command:

docker run --gpus all -it dorado-image dorado --help

This command will display the help information for Dorado, confirming that it's installed correctly.

Testing the Docker Image

To test that Dorado is working correctly, you will need to download a sample Pod5 file and perform a basecalling operation using the pre-downloaded basecalling models.

wget -O dna_r10.4.1_e8.2_260bps-FLO_PRO114-SQK_NBD114_96_260-4000.pod5 \
  https://github.com/nanoporetech/dorado/raw/release-v0.7/tests/data/pod5/dna_r10.4.1_e8.2_260bps/dna_r10.4.1_e8.2_260bps-FLO_PRO114-SQK_NBD114_96_260-4000.pod5


### Basecalling Test

Run the following command:

```bash
docker run --gpus all -v $(pwd):/usr/src/app -it dorado-image bash -c "\
  dorado basecaller /dorado_models/[email protected] \
  /usr/src/app/dna_r10.4.1_e8.2_260bps-FLO_PRO114-SQK_NBD114_96_260-4000.pod5 \
  --emit-moves > /usr/src/app/basecalled.sam"

Explanation:

  • --gpus all: Enables GPU support.
  • -v $(pwd):/usr/src/app: Mounts the current directory to /usr/src/app inside the container.
  • bash -c "...": Runs the basecalling command inside the container.
  • > /usr/src/app/basecalled.sam: Redirects the output to basecalled.sam in your current directory.

Verifying the Output

Check the output file to ensure basecalling was successful:

samtools view basecalled.sam

You should see SAM-formatted basecalling results.

Additional Notes

License

Dorado is licensed under Oxford Nanopore Technologies' License.


Note: Please ensure that you have the necessary NVIDIA drivers and the NVIDIA Container Toolkit installed to utilize GPU acceleration.