Created
June 24, 2024 17:59
-
-
Save joverlee521/777f7ba8179b32b7a37eff0314d20ac2 to your computer and use it in GitHub Desktop.
copy-h1n1pdm-pandemic.smk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| subtypes = ['h1n1pdm'] | |
| segments = ['ha', 'na'] | |
| times = ['pandemic'] | |
| rule all: | |
| input: | |
| expand("data/{subtype}/{segment}/{time}.done", subtype=subtypes, segment=segments, time=times) | |
| rule copy_aws_files: | |
| output: touch("data/{subtype}/{segment}/{time}.done") | |
| shell: | |
| """ | |
| aws s3 cp s3://nextstrain-data/flu_seasonal_{wildcards.subtype}_{wildcards.segment}_{wildcards.time}_meta.json s3://nextstrain-data/seasonal-flu_{wildcards.subtype}_{wildcards.segment}_{wildcards.time}_meta.json | |
| aws s3 cp s3://nextstrain-data/flu_seasonal_{wildcards.subtype}_{wildcards.segment}_{wildcards.time}_tree.json s3://nextstrain-data/seasonal-flu_{wildcards.subtype}_{wildcards.segment}_{wildcards.time}_tree.json | |
| aws s3 cp s3://nextstrain-data/flu_seasonal_{wildcards.subtype}_{wildcards.segment}_{wildcards.time}_tip-frequencies.json s3://nextstrain-data/seasonal-flu_{wildcards.subtype}_{wildcards.segment}_{wildcards.time}_tip-frequencies.json | |
| """ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment