Skip to content

Instantly share code, notes, and snippets.

@joverlee521
Created June 24, 2024 17:59
Show Gist options
  • Save joverlee521/777f7ba8179b32b7a37eff0314d20ac2 to your computer and use it in GitHub Desktop.
Save joverlee521/777f7ba8179b32b7a37eff0314d20ac2 to your computer and use it in GitHub Desktop.
copy-h1n1pdm-pandemic.smk
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