Test snakemake rules individually
During testing of the workflow, we need to reliably test each of the rules and their output independent of the other rules.
A proposed way to do this is:
- Create test folder for each of the rules within the test/test_rules_individually/test_(name of rule)
- put config file specific for this test, since the relative path is incompatible with the other test paths
- run snakemake once to produce the file that is required as input by the rule
- delete all other files BUT the required input
- run the snakemake TARGET rule (only this is executed)
- create md5sum
- remove output and then each time this runs check the md5sum of the output
This still relies on the general sample.tsv
One downside is that we need to have stored the input files of the rules, otherwise we cannot guarantee that these are not corrupted by some other rule.