I'm a bit new on snakemake.
Imagine that I have a rule, like the one below (I've set the number of threads to 10).
Is there any way to make snakemake
magically handles the parallelization of the loop for in this rule?
rule MY_RULE:
input:
input_file=TRAIN_DATA
output:
output_file=OUTPUT_DATA
threads: 10
run:
for f,o in zip(input.input_file, output.output_file):
DO_SOMETHING_AND_SAVE(f,o)
Thanks