by roel_v · 8y ago · 0 comments
(I was actually just writing a spec for a new tool that does just this this afternoon because I can't find anything suitable)
rule analyze_country:
input: 'whatever.{country}.txt'
output: 'analysis.{country}.txt'
shell:
'run-analysis-on-country {input} {output} --country=country'
rule analyze_target_countries:
input: ['analysis.usa.txt', 'analysis.canada.txt', 'analysis.mexico.txt'] rule analyze_country:
input: 'whatever.{country}.txt'
output: 'analysis.{country}.txt'
shell:
'run-analysis-on-country {input} {output} --country={wildcards.country}'