Skip to content

Commit

Permalink
HMS calculation fix
Browse files Browse the repository at this point in the history
- upstream amadeus function was fixed
- library argument is populated with dev library locations
  • Loading branch information
sigmafelix committed Nov 12, 2024
1 parent cc06cc2 commit c230aa0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
9 changes: 5 additions & 4 deletions _targets.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
############################## BEETHOVEN #############################
##### Main file controlling the settings, options, and sourcing of targets
##### for the beethoven analysis pipeline.
.libPaths(
c("/mnt/lib-flex", .libPaths())
)

############################# CONTROLLER #############################
default_controller <- crew::crew_controller_local(
Expand All @@ -20,17 +23,15 @@ targets::tar_config_set(store = "/opt/_targets")

############################## OPTIONS ##############################

.libPaths(
c("/mnt/lib-flex", .libPaths())
)


targets::tar_option_set(
packages = c(
"beethoven", "targets", "tarchetypes", "dplyr",
"data.table", "sf", "crew", "crew.cluster",
"amadeus"
),
# add
library = c("/mnt/lib-flex", .libPaths()),
repository = "local",
error = "continue",
memory = "transient",
Expand Down
25 changes: 25 additions & 0 deletions invalidate_container.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

DEBUG_TARGET=$1

#SBATCH --job-name=beethoven
#SBATCH --mail-user=manwareme@nih.gov
#SBATCH --mail-type=END,FAIL
#SBATCH --partition=geo
#SBATCH --ntasks=1
#SBATCH --mem=100G
#SBATCH --cpus-per-task=50
#SBATCH --error=/ddn/gs1/home/manwareme/beethoven/beethoven/slurm/beethoven_%j.err
#SBATCH --output=/ddn/gs1/home/manwareme/beethoven/beethoven/slurm/beethoven_%j.out

# run pipeline in the container
apptainer exec \
--bind $PWD:/mnt \
--bind $PWD/inst:/inst \
--bind /ddn:/input \
--bind $PWD/_targets:/opt/_targets \
beethoven_dl_calc.sif \
Rscript --no-init-file -e "targets::tar_invalidate('$DEBUG_TARGET')"

# run interactive R session in the container
# apptainer exec --bind $PWD/inst:/inst --bind /ddn/gs1/group/set/Projects/NRT-AP-Model/input:/input --bind $PWD:/mnt beethoven_dl_calc.sif R

0 comments on commit c230aa0

Please sign in to comment.