Skip to content

Commit 95165cf

Browse files
committed
fix: virprof missing from env in container
1 parent 1083252 commit 95165cf

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

containers/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
2-
VERS=$1
2+
VERS=${1-master}
33
YMP_VERS=master
4+
echo "Building Virprof $VERS"
45
apptainer build \
56
--force \
67
--build-arg version=$VERS \

containers/virprof.def

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ sed -i 's%conda_prefix: .*%conda_prefix: /opt/envs%' \
6161
virprof init-test demo
6262
cd demo
6363

64-
# DEBUG
65-
ymp show dir -vvv
66-
6764
# Install environments
6865
ymp env install \
6966
bbmap \
@@ -84,9 +81,15 @@ ymp env install \
8481
vp_rnaseq_r \
8582
wget
8683

84+
# Install current virprof into virprof_py environment
85+
vp_env=$(ymp env list virprof_py | tail -n 1 | awk '{print $3}')
86+
micromamba install -p $vp_env git
87+
micromamba run -p $vp_env pip install git+https://github.com/seiboldlab/virprof.git@{{version}} --no-deps
88+
8789
# Cleanup
90+
cd
8891
mamba clean --all
89-
rm -rf /root/.cache
92+
rm -rf /root/.cache /root/demo
9093

9194
%environment
9295
export LC_ALL=C

0 commit comments

Comments
 (0)