Skip to content

Commit

Permalink
feat: create docker for ciri2
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Apr 29, 2024
1 parent b46f345 commit fd80a94
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ cutadapt_q: 20
high_confidence_core_callers: "circExplorer,circExplorer_bwa"
high_confidence_core_callers_plus_n: 1

ciri_perl_script: "/data/CCBR_Pipeliner/bin/CIRI_v2.0.6/CIRI2.pl"
ciri_perl_script: "/opt2/CIRI_v2.0.6/CIRI2.pl" # in docker container
nclscan_dir: "/data/CCBR_Pipeliner/bin/NCLscan-1.7.0"
circrnafinder_dir: "/data/CCBR_Pipeliner/bin/circRNA_finder-1.2"
find_circ_dir: "/data/CCBR_Pipeliner/bin/find_circ"
Expand All @@ -118,6 +118,7 @@ containers:
base: "docker://nciccbr/ccbr_ubuntu_base_20.04:v6"
bowtie1: "docker://nciccbr/charlie_bowtie1:v0.1.0"
circexplorer: 'docker://nciccbr/ccbr_circexplorer:v1.0'
ciri: 'docker://nciccbr/charlie_ciri2:v1'
clear: "docker://nciccbr/ccbr_clear:latest"
cutadapt: 'docker://nciccbr/charlie_cutadapt_fqfilter:v1'
dcc: "docker://nciccbr/charlie_dcc:v0.1.0"
Expand Down
24 changes: 24 additions & 0 deletions docker/ciri2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM nciccbr/ccbr_ubuntu_base_20.04:v6

# build time variables
ARG BUILD_DATE="000000"
ENV BUILD_DATE=${BUILD_DATE}
ARG BUILD_TAG="000000"
ENV BUILD_TAG=${BUILD_TAG}
ARG REPONAME="000000"
ENV REPONAME=${REPONAME}

# install CIRI
WORKDIR /opt2
RUN wget -O CIRI.zip https://sourceforge.net/projects/ciri/files/CIRI2/CIRI_v2.0.6.zip/download && \
unzip CIRI.zip
ENV PATH="/opt2/CIRI2_v2.0.6/:$PATH"

# Save Dockerfile in the docker
COPY Dockerfile /opt2/Dockerfile_${REPONAME}.${BUILD_TAG}
RUN chmod a+r /opt2/Dockerfile_${REPONAME}.${BUILD_TAG}

# cleanup
WORKDIR /data2
RUN apt-get clean && apt-get purge \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
4 changes: 4 additions & 0 deletions docker/ciri2/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dockerhub_namespace: nciccbr
image_name: charlie_ciri2
version: v1
container: "$(dockerhub_namespace)/$(image_name):$(version)"
2 changes: 1 addition & 1 deletion workflow/rules/findcircrna.smk
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ rule ciri:
script=join(SCRIPTS_DIR, "filter_ciriout.py"),
randomstr=str(uuid.uuid4()),
threads: getthreads("ciri")
container: config['containers']['base']
container: config['containers']['ciri']
shell:
"""
set -exo pipefail
Expand Down

0 comments on commit fd80a94

Please sign in to comment.