Closed cefect closed 3 months ago
Pretend it's sort of like an extra-special run
directive at the top level:
#### START OF SNAKEFILE####
foo = config["inputs"]
onstart:
thismany = len(foo)
print(f"Starting now and theres a total of {thismany} files")
rule do_stuff:
input: xxxx
output: yyyy
etc...
Awww.. this makes sense. Thank you for the tip.
The only information I can find on this feature is:
Is this meant to be included in rules as a directive? or a special function name at the head of the snakefile? Seems like a cool feature, but difficult to use without some more information or an example. Or maybe I'm missing something...