Skip to content

Commit 35a20da

Browse files
committed
optimOTU 5.1
1 parent bdc175e commit 35a20da

File tree

7 files changed

+27
-476
lines changed

7 files changed

+27
-476
lines changed

image_development/Dockerfile_optimOTU2 renamed to image_development/Dockerfile_optimOTU

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
1-
FROM --platform=linux/amd64 ubuntu:24.04
1+
FROM ubuntu:24.04
22
ENV LANG=C.UTF-8
33
ENV LC_ALL=C.UTF-8
44
ENV CONDA_DIR=/opt/conda
55
ENV PATH=$CONDA_DIR/bin:$PATH
66
RUN apt-get update && \
7-
apt-get install -y wget git zip build-essential zlib1g-dev && \
8-
git clone --branch main https://github.com/brendanf/optimotu_targets.git /optimotu_targets
9-
COPY image_development/protaxFungi/ /optimotu_targets/protaxFungi/
10-
COPY image_development/protaxAnimal/ /optimotu_targets/protaxAnimal/
7+
apt-get install -y wget git zip unzip build-essential zlib1g-dev && \
8+
wget -O /tmp/optimotu_targets.zip https://github.com/brendanf/optimotu_targets/archive/refs/tags/v5.1.0.zip && \
9+
unzip /tmp/optimotu_targets.zip -d /tmp && \
10+
mv /tmp/optimotu_targets-5.1.0 /optimotu_targets
11+
# Download protax assets instead of copying from build context
12+
RUN cd /optimotu_targets && \
13+
rm -rf /optimotu_targets/protaxFungi && \
14+
wget -O /optimotu_targets/protaxFungi.zip https://nextcloud.jyu.fi/index.php/s/JCdqdNPgsNqJw6o/download && \
15+
unzip /optimotu_targets/protaxFungi.zip -d /optimotu_targets && \
16+
rm /optimotu_targets/protaxFungi.zip && \
17+
wget -O /optimotu_targets/protaxAnimal.zip https://nextcloud.jyu.fi/index.php/s/74p3zTjRjLX76fb/download && \
18+
unzip /optimotu_targets/protaxAnimal.zip -d /optimotu_targets && \
19+
rm /optimotu_targets/protaxAnimal.zip
1120
COPY image_development/OptimOTU_v5.yaml /
1221

1322
RUN sed -i 's|BASEDIR=$(pwd)|BASEDIR="/optimotu_targets"|g' /optimotu_targets/scripts/runprotax && \
@@ -30,6 +39,8 @@ RUN sed -i 's|BASEDIR=$(pwd)|BASEDIR="/optimotu_targets"|g' /optimotu_targets/sc
3039
cd /optimotu_targets && \
3140
wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
3241
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
42+
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main && \
43+
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r && \
3344
conda env create -f /OptimOTU_v5.yaml && \
3445
chmod -R 777 /opt/conda/envs/OptimOTU_v5 && \
3546
eval "$(conda shell.bash hook)" && \
@@ -43,13 +54,15 @@ RUN sed -i 's|BASEDIR=$(pwd)|BASEDIR="/optimotu_targets"|g' /optimotu_targets/sc
4354
usearch -makeudb_usearch protaxFungi/addedmodel/sintaxits2.fasta -output protaxFungi/addedmodel/sintaxits2.udb && \
4455
usearch -makeudb_usearch protaxFungi/addedmodel/amptk_synmock.fasta -output protaxFungi/addedmodel/amptk_synmock.udb && \
4556
usearch -makeudb_usearch protaxFungi/addedmodel/its2.fa -output protaxFungi/addedmodel/its2.udb && \
57+
sed -i "s/usearch10.0.240_i86linux32/usearch/" /optimotu_targets/scripts/102_protax_refseqs.R && \
4658
rm -f /optimotu_targets/5dcbe93a-b50c-4ff5-8898-528160c4e593.zip && \
4759
rm -f /optimotu_targets/FinPROTAX.zip && \
4860
rm -f /optimotu_targets/protaxAnimal_bin.zip && \
4961
rm -f ~/miniconda.sh && \
62+
rm -f /tmp/optimotu_targets.zip && \
5063
rm -rf /optimotu_targets/protaxAnimal_bin && \
5164
conda clean -afy && \
52-
apt-get remove -y wget git build-essential && \
65+
apt-get remove -y wget git zip unzip build-essential && \
5366
apt-get autoremove -y && \
5467
apt-get clean && \
5568
rm -rf /var/lib/apt/lists/* && \

src/components/Run.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ export default {
907907
await this.$store.dispatch('clearContainerConflicts', 'optimotu');
908908
try {
909909
const container = await this.$docker.createContainer({
910-
Image: 'pipecraft/optimotu:5',
910+
Image: 'pipecraft/optimotu:5.1',
911911
name: 'optimotu',
912912
Cmd: ['/scripts/run_optimotu.sh'],
913913
Tty: true,

src/pipecraft-core/service_scripts/pipeline_options.yaml

Lines changed: 0 additions & 202 deletions
This file was deleted.

src/pipecraft-core/service_scripts/pipeline_options1.yaml

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)