Skip to content

Commit

Permalink
fixed container calls
Browse files Browse the repository at this point in the history
  • Loading branch information
explodecomputer committed Jan 16, 2025
1 parent 3cd60b2 commit 6a4b40e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/run_apptainer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ source config.env
# td=$(mktemp -d)
# cd $td

genotype_input_dir=$(head -n 1 geno_input.txt | awk '{ print $1 }' | xargs -I {} dirname {})

apptainer run \
--containall \
--bind "${PWD}/config.env:/project/config.env" \
--bind "${PWD}/geno_input.txt:/project/geno_input.txt" \
--bind "${phenotype_input_dir}:${phenotype_input_dir}" \
--bind "${phenotype_processed_dir}:${phenotype_processed_dir}" \
--bind "${genotype_input_dir}:${genotype_input_dir}" \
Expand Down
3 changes: 3 additions & 0 deletions utils/run_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ source config.env
# docker build -t mrcieu/lifecourse-gwas:latest .
# docker pull mrcieu/lifecourse-gwas:latest

genotype_input_dir=$(head -n 1 geno_input.txt | awk '{ print $1 }' | xargs -I {} dirname {})

docker run \
-v "${PWD}/config.env:/project/config.env:ro" \
-v "${PWD}/geno_input.txt:/project/geno_input.txt:ro" \
-v ${phenotype_input_dir}:${phenotype_input_dir} \
-v ${phenotype_processed_dir}:${phenotype_processed_dir} \
-v ${genotype_input_dir}:${genotype_input_dir} \
Expand Down

0 comments on commit 6a4b40e

Please sign in to comment.