I have a BASH
pipeline which at a point runs a Singularity
container with singularity exec as follows:
singularity exec --bind `pwd`:/folder --bind $d:/results <image>.sif <tool_command> -i /folder/<file>.fastq -v /results/<output>/<file>.vcf -r /folder/<reference>.fna -s <vcf_sample_name> -j 24 -t 24 -o /results/<output_file_suffix>
Since I'm running multiple experiments at once with an array, I'm redefining the experiments with an environment variable that I wish to add to the <output_file_suffix>
; it works for all the steps of the pipeline but Singularity
seems it's unable to see the variable(s) I'm defining in my script...
Does anyone have any advice on how to do so? I looked up a bit but the --env
does not seem to be working. Thanks in advance!