Skip to content

Commit

Permalink
fix: use snakemake args instead of new cli option
Browse files Browse the repository at this point in the history
  • Loading branch information
boasvdp committed Nov 18, 2024
1 parent 5c08176 commit e84efbb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion envs/juno_mapping.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ dependencies:
- python=3.11.*
- pyvcf
- pip:
- "--editable=git+https://github.com/RIVM-bioinformatics/juno-library.git@cluster_cancel#egg=juno_library"
- "--editable=git+https://github.com/RIVM-bioinformatics/juno-library.git@v2.2.1#egg=juno_library"
12 changes: 9 additions & 3 deletions run_pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ export -f __conda_hashr
mamba env create -f envs/juno_mapping.yaml --name pipeline_env
conda activate pipeline_env

# Make the script checking LSF status available without .py extension
# with .py extension, the argument is not recognized when passing this to juno-mapping
cp /mnt/miniconda/bin/check_lsf_status.py $CONDA_PREFIX/bin/check_lsf_status

#----------------------------------------------#
# Run the pipeline

Expand Down Expand Up @@ -91,7 +95,7 @@ fi
# Containers will use it for storing tmp files when building a container
export SINGULARITY_TMPDIR="$(pwd)"

#without exclusion file
# without exclusion file
# set time limit to 600 minutes in case large files are present. GATK is slow.
if [ "${EXCLUSION_FILE}" == "" ]
then
Expand All @@ -100,8 +104,9 @@ then
-i "${input_dir}" \
-o "${output_dir}" \
-s "${SPECIES}" \
--snakemake-args "cluster_status=check_lsf_status" \
--prefix "/mnt/db/juno/sing_containers" \
-tl 600
-tl 1200

result=$?
else
Expand All @@ -112,7 +117,8 @@ else
-s "${SPECIES}" \
--prefix "/mnt/db/juno/sing_containers" \
-ex "${EXCLUSION_FILE}" \
-tl 600
--snakemake-args "cluster_status=check_lsf_status" \
-tl 1200

result=$?
fi
Expand Down

0 comments on commit e84efbb

Please sign in to comment.