# This Snakefile run the SPADE analysis for all the possible configurations of simulators and hours from which the simulated spike data where recorded simulators = ['SpiNNaker', 'C'] hours = range(1,6) # Summoning all the output files rule all: input: expand('patterns_results/iteration_III/60s_simulation_runs/{simulator}/out_firings_after{hour}h/patterns.npy', simulator=simulators, hour=hours), expand('../simulation_data/iteration_III/60s_simulation_runs/{simulator}/out_firings_after{hour}h.dat', simulator=simulators, hour=hours) # Tocken rule to check the simulated data exist rule check_data: output: protected('../simulation_data/iteration_III/60s_simulation_runs/{simulator}/out_firings_after{hour}h.dat') # Rule to pass to spade_analysis.py all the combinations of the parameters simulator and hour rule analyze_data: input: data=protected('../simulation_data/iteration_III/60s_simulation_runs/{simulator}/out_firings_after{hour}h.dat'), script='spade_analysis.py' output: 'patterns_results/iteration_III/60s_simulation_runs/{simulator}/out_firings_after{hour}h/patterns.npy' shell: 'python spade_analysis.py {wildcards.simulator} {wildcards.hour}'