-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f643ce
commit ef522f7
Showing
4 changed files
with
149 additions
and
21 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
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 |
---|---|---|
|
@@ -19,9 +19,9 @@ LABEL maintainer.email="[email protected]" | |
WORKDIR /usr/src/app | ||
|
||
# Install dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
wget | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends wget ca-certificates && \ | ||
rm -rf /var/lib/apt/lists/* && apt-get autoclean | ||
|
||
# Download and extract Dorado package | ||
RUN wget https://cdn.oxfordnanoportal.com/software/analysis/dorado-${DORADO_VER}-linux-x64.tar.gz \ | ||
|
@@ -36,11 +36,6 @@ RUN mkdir /dorado_models && \ | |
cd /dorado_models && \ | ||
dorado download --model all | ||
|
||
# Download the specific Pod5 test file | ||
RUN wget -O /usr/src/app/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 | ||
|
||
# Default command | ||
CMD ["dorado"] | ||
|
||
|
@@ -49,6 +44,12 @@ CMD ["dorado"] | |
# ----------------------------- | ||
FROM app AS test | ||
|
||
|
||
# Download the specific Pod5 test file | ||
RUN wget -O /usr/src/app/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 | ||
|
||
# Set working directory | ||
WORKDIR /usr/src/app | ||
|
||
|
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 |
---|---|---|
|
@@ -20,23 +20,14 @@ This Docker image includes: | |
|
||
- **Dorado**: Version **0.8.0**, a tool for basecalling Oxford Nanopore sequencing data. | ||
- **NVIDIA CUDA**: Version **12.2.0**, for GPU acceleration (requires NVIDIA GPU). | ||
- **Pre-downloaded basecalling models**: All models are downloaded during the build. | ||
- **Sample Pod5 test file**: Included for testing the basecalling process. | ||
- **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. | ||
|
||
## Building the Docker Image | ||
|
||
**Build the Docker image** using the following command: | ||
|
||
```bash | ||
docker build -t dorado-image . | ||
``` | ||
|
||
## Running the Docker Container | ||
|
||
To run the Dorado tool within the Docker container, use the following command: | ||
|
@@ -49,7 +40,12 @@ This command will display the help information for Dorado, confirming that it's | |
|
||
## Testing the Docker Image | ||
|
||
To test that Dorado is working correctly, perform a basecalling operation using the provided sample Pod5 file and basecalling models. | ||
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. | ||
|
||
```bash | ||
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 | ||
|
||
|
@@ -74,16 +70,142 @@ docker run --gpus all -v $(pwd):/usr/src/app -it dorado-image bash -c "\ | |
Check the output file to ensure basecalling was successful: | ||
|
||
```bash | ||
less basecalled.sam | ||
samtools view basecalled.sam | ||
``` | ||
|
||
You should see SAM-formatted basecalling results. | ||
|
||
## Additional Notes | ||
|
||
- **Basecalling Models**: All models are downloaded to `/dorado_models` during the build process. | ||
- **Sample Data**: The sample Pod5 file is downloaded to `/usr/src/app` during the build. | ||
- **Internal Testing**: An internal test stage is included in the Dockerfile to verify installation. | ||
- **Basecalling Models**: All models are downloaded to `/dorado_models` during the build process. | ||
Below is the list of basecalling models included in the Docker image: | ||
```yaml | ||
modification models: | ||
- "[email protected][email protected]" | ||
- "[email protected][email protected]" | ||
- "[email protected][email protected]" | ||
- "[email protected]_5mCG_5hmCG@v0" | ||
- "[email protected]_5mCG_5hmCG@v0" | ||
- "[email protected]_5mCG_5hmCG@v0" | ||
- "[email protected]_5mCG@v2" | ||
- "[email protected]_5mCG@v2" | ||
- "[email protected]_5mCG@v2" | ||
- "[email protected]_5mCG@v2" | ||
- "[email protected]_5mCG@v2" | ||
- "[email protected]_5mCG@v2" | ||
- "[email protected]_5mCG_5hmCG@v2" | ||
- "[email protected]_5mCG_5hmCG@v2" | ||
- "[email protected]_5mCG_5hmCG@v2" | ||
- "[email protected]_5mCG_5hmCG@v2" | ||
- "[email protected]_5mCG_5hmCG@v2" | ||
- "[email protected]_5mCG_5hmCG@v2" | ||
- "[email protected]_5mCG_5hmCG@v2" | ||
- "[email protected]_5mCG_5hmCG@v2" | ||
- "[email protected]_5mCG_5hmCG@v2" | ||
- "[email protected]_5mCG_5hmCG@v2" | ||
- "[email protected]_5mCG_5hmCG@v2" | ||
- "[email protected]_5mCG_5hmCG@v2" | ||
- "[email protected]_5mCG_5hmCG@v2" | ||
- "[email protected]_5mCG_5hmCG@v2" | ||
- "[email protected]_5mCG_5hmCG@v2" | ||
- "[email protected][email protected]" | ||
- "[email protected]_5mC@v2" | ||
- "[email protected]_6mA@v2" | ||
- "[email protected]_6mA@v3" | ||
- "[email protected]_5mC_5hmC@v1" | ||
- "[email protected]_5mC_5hmC@v1" | ||
- "[email protected]_5mC_5hmC@v1" | ||
- "[email protected]_6mA@v1" | ||
- "[email protected]_6mA@v1" | ||
- "[email protected]_6mA@v2" | ||
- "[email protected]_6mA@v2" | ||
- "[email protected]_5mCG_5hmCG@v1" | ||
- "[email protected]_5mCG_5hmCG@v1" | ||
- "[email protected]_4mC_5mC@v1" | ||
- "[email protected]_4mC_5mC@v1" | ||
- "[email protected]_4mC_5mC@v2" | ||
- "[email protected]_4mC_5mC@v2" | ||
- "[email protected]_5mC_5hmC@v1" | ||
- "[email protected]_5mC_5hmC@v1" | ||
- "[email protected]_5mC_5hmC@v2" | ||
- "[email protected]_5mC_5hmC@v2" | ||
- "[email protected]_5mCG_5hmCG@v1" | ||
- "[email protected]_5mCG_5hmCG@v1" | ||
- "[email protected]_5mCG_5hmCG@v2" | ||
- "[email protected]_5mCG_5hmCG@v2" | ||
- "[email protected]_6mA@v1" | ||
- "[email protected]_6mA@v1" | ||
- "[email protected]_6mA@v2" | ||
- "[email protected]_6mA@v2" | ||
- "[email protected]_m6A_DRACH@v1" | ||
- "[email protected]_m6A@v1" | ||
- "[email protected]_m6A@v1" | ||
- "[email protected]_m6A_DRACH@v1" | ||
- "[email protected]_m6A_DRACH@v1" | ||
- "[email protected]_pseU@v1" | ||
- "[email protected]_pseU@v1" | ||
- "[email protected]_m5C@v1" | ||
- "[email protected]_m5C@v1" | ||
- "[email protected]_inosine_m6A@v1" | ||
- "[email protected]_inosine_m6A@v1" | ||
- "[email protected]_m6A_DRACH@v1" | ||
- "[email protected]_m6A_DRACH@v1" | ||
- "[email protected]_pseU@v1" | ||
- "[email protected]_pseU@v1" | ||
stereo models: | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
simplex models: | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "rna002_70bps_fast@v3" | ||
- "rna002_70bps_hac@v3" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "[email protected]" | ||
``` | ||
|
||
## License | ||
|
||
|