Skip to content

Commit

Permalink
ingest: Move intermediate files to data directory
Browse files Browse the repository at this point in the history
Follow up to review in the measles PR
nextstrain/measles#10 (comment)
  • Loading branch information
joverlee521 committed Feb 17, 2024
1 parent 3120df9 commit 8451d68
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ingest/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ else:

rule create_final_metadata:
input:
metadata="results/subset_metadata.tsv"
metadata="data/subset_metadata.tsv"
output:
metadata="results/metadata.tsv"
shell:
Expand Down
8 changes: 4 additions & 4 deletions ingest/rules/curate.smk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ REQUIRED INPUTS:
OUTPUTS:
metadata = results/subset_metadata.tsv
metadata = data/subset_metadata.tsv
seuqences = results/sequences.fasta
"""
Expand Down Expand Up @@ -61,7 +61,7 @@ rule curate:
all_geolocation_rules="data/all-geolocation-rules.tsv",
annotations=config["curate"]["annotations"],
output:
metadata="results/all_metadata.tsv",
metadata="data/all_metadata.tsv",
sequences="results/sequences.fasta",
log:
"logs/curate.txt",
Expand Down Expand Up @@ -118,9 +118,9 @@ rule curate:

rule subset_metadata:
input:
metadata="results/all_metadata.tsv",
metadata="data/all_metadata.tsv",
output:
subset_metadata="results/subset_metadata.tsv",
subset_metadata="data/subset_metadata.tsv",
params:
metadata_fields=",".join(config["curate"]["metadata_columns"]),
shell:
Expand Down
4 changes: 2 additions & 2 deletions ingest/rules/nextclade.smk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ and sequences.
REQUIRED INPUTS:
metadata = results/subset_metadata.tsv
metadata = data/subset_metadata.tsv
sequences = results/sequences.fasta
OUTPUTS:
Expand Down Expand Up @@ -64,7 +64,7 @@ rule run_nextclade:
rule join_metadata_and_nextclade:
input:
nextclade="results/nextclade.tsv",
metadata="results/subset_metadata.tsv",
metadata="data/subset_metadata.tsv",
nextclade_field_map=config["nextclade"]["field_map"],
output:
metadata="results/metadata.tsv",
Expand Down

0 comments on commit 8451d68

Please sign in to comment.