Now we set workdir to results and cd in each rule. Alternatively, we could set the input/output of each file rule to results/{experiment}/somefile.
It would make the workflow easier to grasp and remove the finicky dependency on the workdir setting. On the other hands, when you pass in another workdir via the command line, it will be more nested.
Now we set workdir to
results
and cd in each rule. Alternatively, we could set the input/output of each file rule toresults/{experiment}/somefile
.It would make the workflow easier to grasp and remove the finicky dependency on the workdir setting. On the other hands, when you pass in another workdir via the command line, it will be more nested.