Skip to content

Commit

Permalink
fix: makes the compress rule more generic
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Sibley <tom@zulutango.org>
  • Loading branch information
j23414 and tsibley committed Mar 28, 2023
1 parent a3269e2 commit c932c00
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions ingest/workflow/snakemake_rules/transform.smk
Original file line number Diff line number Diff line change
Expand Up @@ -107,25 +107,24 @@ rule transform:
--sequence-field {params.sequence_field} ) 2>> {log}
"""


rule post_process_metadata:
input:
metadata="data/raw_metadata_{serotype}.tsv",
output:
metadata="data/metadata_{serotype}.tsv",
shell:
"""
"""
./bin/post_process_metadata.py --metadata {input.metadata} --outfile {output.metadata}
"""


rule compress:
input:
sequences="data/sequences_{serotype}.fasta",
metadata="data/metadata_{serotype}.tsv",
file="{a_file}",
output:
sequences="data/sequences_{serotype}.fasta.zst",
metadata="data/metadata_{serotype}.tsv.zst",
file_compressed="{a_file}.zst",
shell:
"""
zstd -T0 -o {output.sequences} {input.sequences}
zstd -T0 -o {output.metadata} {input.metadata}
"""
zstd -T0 -o {output.file_compressed} {input.file}
"""

0 comments on commit c932c00

Please sign in to comment.