Skip to content

Commit

Permalink
test on zika
Browse files Browse the repository at this point in the history
  • Loading branch information
rneher committed Oct 3, 2019
1 parent 1025bac commit 23c1ce3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion augur/parse.py
Expand Up @@ -102,7 +102,7 @@ def run(args):
tmp_meta = {k:v for k,v in zip(args.fields, fields)}

for field in args.prettify_fields:
tmp_meta[field] = prettify_fields(tmp_meta[field], camelCase=field!='author',
tmp_meta[field] = prettify(tmp_meta[field], camelCase=field!='author',
etal='lower' if field=='author' else None)

meta_data[seq.id] = tmp_meta
Expand Down
6 changes: 4 additions & 2 deletions tests/builds/zika/Snakefile
Expand Up @@ -25,14 +25,16 @@ rule parse:
sequences = "results/sequences.fasta",
metadata = "results/metadata.tsv"
params:
fasta_fields = "strain virus accession date region country division city db segment authors url title journal paper_url"
fasta_fields = "strain virus accession date region country division city db segment authors url title journal paper_url",
prettify_fields = "region country division city"
shell:
"""
augur parse \
--sequences {input.sequences} \
--output-sequences {output.sequences} \
--output-metadata {output.metadata} \
--fields {params.fasta_fields}
--fields {params.fasta_fields} \
--prettify-fields {params.prettify_fields}
"""

rule filter:
Expand Down

0 comments on commit 23c1ce3

Please sign in to comment.