zavolanlab / zarp-cli

A user-friendly command-line interface for the ZARP RNA-seq analysis workflow
https://zavolanlab.github.io/zarp-cli/
Apache License 2.0
5 stars 1 forks source link

fix: input files for SMK workflows are not always found when executing via Singularity #64

Closed uniqueg closed 1 year ago

uniqueg commented 1 year ago

Problem

Only the ZARP execution directory and the run directory for every given workflow are bind mounted to Singularity. If input files do not reside in any of these directories or their subdirectories, input files will not be found.

Solution

Pass locations of all input files to --singularity-args '--bind PATH_1,PATH_2', for example by interfacing a parameter that takes a list of paths inSnakemakeExecutor` constructor. Calling modules can then parse all required paths from the record object and pass them along.