Skip to content

Commit

Permalink
Adding CNVkit and sequenza to CNV docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
skchronicles committed Dec 7, 2023
1 parent 5226f9b commit 6b85cf4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
21 changes: 20 additions & 1 deletion docker/genome-seek/cnv/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
FROM skchronicles/genome-seek:v0.1.0
LABEL maintainer="Skyler Kuhn <kuhnsa@nih.gov>" \
base_image="skchronicles/genome-seek:v0.1.0" \
version="v0.2.0" \
version="v0.3.0" \
software="genome-seekq cnv" \
about.summary="An awesome Clinical Whole Genome Sequencing Pipeline" \
about.home="https://github.com/OpenOmics/genome-seek" \
Expand Down Expand Up @@ -153,6 +153,25 @@ RUN mkdir -p /opt2/slivar/0.3.0/bin \
&& chmod a+x /opt2/slivar/0.3.0/bin/slivar
ENV PATH="${PATH}:/opt2/slivar/0.3.0/bin"

# Install cnvkit/0.9.10, for more info see:
# https://github.com/etal/cnvkit
# Requires python>=3.7 and for extended
# functionality, requires the following
# R package from Bioconductor: "DNAcopy",
# python3 version and DNAcopy requirement
# already satified, cnvkit/0.9.10 not compatiable
# with pomegranate>=1.0.0, see for more info:
# https://github.com/etal/cnvkit/issues/815
RUN pip3 install pomegranate==0.14.9 && pip3 install cnvkit==0.9.10

# Installs sequenza/3.0.0, for more info see:
# https://cran.r-project.org/web/packages/sequenza/index.html
# Requires R, Python, SAMtools, tabix (already satisfied)
# https://cran.r-project.org/web/packages/sequenza/vignettes/sequenza.html#getting-started
RUN pip3 install sequenza-utils==3.0.0 \
&& Rscript -e 'install.packages(c("pbapply", "squash", "iotools", "seqminer"), repos="http://cran.r-project.org");' \
&& Rscript -e 'install.packages("https://cran.r-project.org/src/contrib/Archive/sequenza/sequenza_3.0.0.tar.gz", repos=NULL, type="source")'


################ POST #################
# Add Dockerfile and export env variables
Expand Down
12 changes: 6 additions & 6 deletions docker/genome-seek/cnv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ Directly below are instructions for building an image using the provided Dockerf
docker image ls

# Build from Dockerfile
docker build --no-cache -f Dockerfile --tag=genome-seek_cnv:v0.2.0 .
docker build --no-cache -f Dockerfile --tag=genome-seek_cnv:v0.3.0 .

# Testing, take a peek inside
docker run -ti genome-seek_cnv:v0.2.0 /bin/bash
docker run -ti genome-seek_cnv:v0.3.0 /bin/bash

# Updating Tag before pushing to DockerHub
docker tag genome-seek_cnv:v0.2.0 skchronicles/genome-seek_cnv:v0.2.0
docker tag genome-seek_cnv:v0.2.0 skchronicles/genome-seek_cnv # latest
docker tag genome-seek_cnv:v0.3.0 skchronicles/genome-seek_cnv:v0.3.0
docker tag genome-seek_cnv:v0.3.0 skchronicles/genome-seek_cnv # latest

# Check out new tag(s)
docker image ls

# Push new tagged image to DockerHub
docker push skchronicles/genome-seek_cnv:v0.2.0
docker push skchronicles/genome-seek_cnv:v0.3.0
docker push skchronicles/genome-seek_cnv:latest
```

Expand All @@ -31,7 +31,7 @@ docker push skchronicles/genome-seek_cnv:latest
Scan your image for known vulnerabilities:

```bash
docker scan genome-seek_cnv:v0.2.0
docker scan genome-seek_cnv:v0.3.0
```

> **Please Note**: Any references to `skchronicles` should be replaced your username if you would also like to push the image to a non-org account.

0 comments on commit 6b85cf4

Please sign in to comment.