snakemake config file with path
0
0
Entering edit mode
4 months ago
QX ▴ 60

Hi all,

I am learning the snakemake for my pipeline. For snakefile I am specifying my configfile: configfile: "./config.yaml" In the config.yaml, I have software:

bwa: /hpc/lab/bin/bwa-0.7.17/bwa for calling bwa software from a path. However, the /hpc/lab/bin/ happens to appear alots for all softs I used.

Is there a way to assign the path to variable, let say soft: /hpc/lab/bin/ and call it for bwa: ${soft}/bwa-0.7.17/bwa in yaml like in bash scrip?

Thank

snakemake • 348 views
ADD COMMENT
0
Entering edit mode

Does your HPC use something like Lmod to manage dependencies?

ADD REPLY
0
Entering edit mode

yes they could have share packages but I would like to use the packages in local folder, not via module load

ADD REPLY
1
Entering edit mode

In that case the best option would probably be to use snakemake's built-in conda environment manager to manage dependencies.

https://snakemake.readthedocs.io/en/stable/snakefiles/deployment.html#integrated-package-management

ADD REPLY

Login before adding your answer.

Traffic: 2154 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6