fix: names for diagnostic files
@@ -83,8 +83,8 @@ rule download_diagnostic:
params:
# Only `to-exclude` is defined via the config, so we make some assumptions about the format of the other filenames
to_exclude_address = lambda w: config["inputs"][_trim_origin(w.origin)]["to-exclude"],
- flagged_address = lambda w: config["inputs"][_trim_origin(w.origin)]["to-exclude"].replace('to-exclude.txt', 'flagged-sequences.tsv'),
- diagnostics_address = lambda w: config["inputs"][_trim_origin(w.origin)]["to-exclude"].replace('to-exclude.txt', 'sequence-diagnostics.tsv'),
+ flagged_address = lambda w: config["inputs"][_trim_origin(w.origin)]["to-exclude"].replace(f'to-exclude{w.origin}.txt', f'flagged-sequences{w.origin}.tsv'),
+ diagnostics_address = lambda w: config["inputs"][_trim_origin(w.origin)]["to-exclude"].replace(f'to-exclude{w.origin}.txt', f'sequence-diagnostics{w.origin}.tsv'),
# assume the compression is the same across all 3 addresses
deflate = lambda w: _infer_decompression(config["inputs"][_trim_origin(w.origin)]["to-exclude"])
shell:
