I was wondering if there is any way to configure snakemake so that certain rules can be run locally while others are run on an cluster.
For example, suppose I had rule A, which is lightweight, and rule B, which is more computationally expensive. Rule B requires the output of rule A. Is there any way for me to run rule A on a local computer and rule B be submitted as a job via SLURM?
EDIT: I should have read the documentation more thoroughly. What I said above can be accomplished using localrules.
As a modification to the above question, can I run one rule on a cluster and one rule on the cloud?