So far I used snakemake to generate individual plots with snakemake. This has worked great! Now though, I want to create a rule that creates a combined plot across the topics, without explicitly putting the name in the plot. See the combined_plot rule below.
topics=["soccer", "football"] params=[1, 2, 3, 4] rule all: input: expand("plot_p={param}_{topic}.png", topic=topics, param=params), expand("combined_p={param}_plot.png", param=params), rule plot: input: "data_p={param}_{topic}.csv" output: "plot_p={param}_{topic}.png" shell: "plot.py --input={input} --output={output}" rule combined_plot: input: # all data_p={param}_{topic}.csv files output: "combined_p={param}_plot.png" shell: "plot2.py " + # one "--input=" and one "--output" for each csv file Is there a simple way to do this with snakemake?