How can I use relative paths in my configuration file so that users do not need to change USER
in the paths for output directories?
I have this:
config.yml
proj_name: H1N1_rhesus
contact:
email: user.edu
person: user
01-preprocess: /home/user/2022-h1n1/01-preprocess/
02-salmon: /home/user/2022-h1n1/02-salmon/
raw-data: /tmp/H1N1_rhesus/
reference: /tmp/
Snakefile
#----SET VARIABLES----#
PROJ = config["proj_name"]
INPUTDIR = config["raw-data"]
PREPROCESS = config["01-preprocess"]
SALMON = config["02-salmon"]
REFERENCE = config["reference"
But would like to do something like this:
proj_name: H1N1_rhesus
contact:
email: user.edu
person: user
01-preprocess: /home/$(USER)/2022-h1n1/01-preprocess/
02-salmon: /home/$(USER)/2022-h1n1/02-salmon/
raw-data: /tmp/H1N1_rhesus/
reference: /tmp/
Or this:
proj_name: H1N1_rhesus
contact:
email: user.edu
person: user
01-preprocess: /home/$(PWD)/01-preprocess/
02-salmon: /home/$(PWD)/02-salmon/
raw-data: /tmp/H1N1_rhesus/
reference: /tmp/
But none of the methods I tried worked.