Skip to content

workflow.source_path does not work as expected #2331

@chrarnold

Description

@chrarnold

Snakemake version
7.24

Describe the bug
In params, I have the following line to specify that the config file for multiqc is in the following location (which is specified relative to where the Snakefile is located):
config = workflow.source_path("tools/multiqc_config.yaml")

However, workflow.source_path does not work as expected, an error is thrown (see below)

Logs
Error: Invalid value for '-c' / '--config': Path '/home/bla/.cache/snakemake/snakemake/source-cache/runtime-cache/tmpoe2bb5nk/file/{full_path}/tools/multiqc_config.yaml' does not exist.

Here, I replaced the beginning of the full path with {full_path}.

Does it work differently than what I expected and understood from the documentation?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions