Skip to content

Commit

Permalink
Define input paths with literal path strings
Browse files Browse the repository at this point in the history
  • Loading branch information
j23414 committed Jan 11, 2024
1 parent efe11e3 commit 6349fd7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 17 deletions.
11 changes: 0 additions & 11 deletions phylogenetic/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@ rule all:
input:
auspice_json = "auspice/zika.json",

rule files:
params:
input_fasta = "data/zika.fasta",
dropped_strains = "config/dropped_strains.txt",
reference = "config/zika_reference.gb",
colors = "config/colors.tsv",
auspice_config = "config/auspice_config.json",
description = "config/description.md"

files = rules.files.params

include: "rules/usvi.smk"
include: "rules/prepare_sequences.smk"
include: "rules/construct_phylogeny.smk"
Expand Down
2 changes: 1 addition & 1 deletion phylogenetic/rules/annotate_phylogeny.smk
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ rule translate:
input:
tree = "results/tree.nwk",
node_data = "results/nt_muts.json",
reference = files.reference
reference = "config/zika_reference.gb"
output:
node_data = "results/aa_muts.json"
shell:
Expand Down
6 changes: 3 additions & 3 deletions phylogenetic/rules/export.smk
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ rule export:
traits = "results/traits.json",
nt_muts = "results/nt_muts.json",
aa_muts = "results/aa_muts.json",
colors = files.colors,
auspice_config = files.auspice_config,
description = files.description
colors = "config/colors.tsv",
auspice_config = "config/auspice_config.json",
description = "config/description.md"
output:
auspice_json = "results/raw_zika.json",
root_sequence = "results/raw_zika_root-sequence.json",
Expand Down
4 changes: 2 additions & 2 deletions phylogenetic/rules/prepare_sequences.smk
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ rule filter:
input:
sequences = "data/sequences_all.fasta",
metadata = "data/metadata_all.tsv",
exclude = files.dropped_strains
exclude = "config/dropped_strains.txt",
output:
sequences = "results/filtered.fasta"
params:
Expand Down Expand Up @@ -90,7 +90,7 @@ rule align:
"""
input:
sequences = "results/filtered.fasta",
reference = files.reference
reference = "config/zika_reference.gb"
output:
alignment = "results/aligned.fasta"
shell:
Expand Down

0 comments on commit 6349fd7

Please sign in to comment.