Skip to content

Commit

Permalink
Rename phylogenetic/config to phylogenetic/defaults
Browse files Browse the repository at this point in the history
To be more consistent with the pathogen-repo-guide and the ingest workflow
  • Loading branch information
j23414 committed Dec 18, 2024
1 parent 1a168b5 commit cca844c
Show file tree
Hide file tree
Showing 22 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion phylogenetic/Snakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configfile: "config/config_dengue.yaml"
configfile: "defaults/config_dengue.yaml"

serotypes = ['all', 'denv1', 'denv2', 'denv3', 'denv4']
genes = ['genome', 'E']
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ strain_id_field: "genbank_accession"
display_strain_field: "strain"

filter:
exclude: "config/exclude.txt"
include: "config/include_{serotype}.txt"
exclude: "defaults/exclude.txt"
include: "defaults/include_{serotype}.txt"
group_by: "year region"
min_length:
genome: 5000
Expand All @@ -32,11 +32,11 @@ traits:

clades:
clade_definitions:
all: 'config/clades_serotypes.tsv'
denv1: 'config/clades_genotypes.tsv'
denv2: 'config/clades_genotypes.tsv'
denv3: 'config/clades_genotypes.tsv'
denv4: 'config/clades_genotypes.tsv'
all: 'defaults/clades_serotypes.tsv'
denv1: 'defaults/clades_genotypes.tsv'
denv2: 'defaults/clades_genotypes.tsv'
denv3: 'defaults/clades_genotypes.tsv'
denv4: 'defaults/clades_genotypes.tsv'

export:
description: "config/description.md"
description: "defaults/description.md"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion phylogenetic/rules/annotate_phylogeny.smk
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ rule translate:
input:
tree = "results/{gene}/tree_{serotype}.nwk",
node_data = "results/{gene}/nt-muts_{serotype}.json",
reference = lambda wildcard: "config/reference_{serotype}_genome.gb" if wildcard.gene in ['genome'] else "results/config/reference_{serotype}_{gene}.gb"
reference = lambda wildcard: "defaults/reference_{serotype}_genome.gb" if wildcard.gene in ['genome'] else "results/defaults/reference_{serotype}_{gene}.gb"
output:
node_data = "results/{gene}/aa-muts_{serotype}.json"
shell:
Expand Down
8 changes: 4 additions & 4 deletions phylogenetic/rules/export.smk
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import json

rule colors:
input:
color_schemes = "config/color_schemes.tsv",
color_orderings = "config/color_orderings.tsv",
color_schemes = "defaults/color_schemes.tsv",
color_orderings = "defaults/color_orderings.tsv",
metadata = "data/metadata_{serotype}.tsv",
output:
colors = "results/colors_{serotype}.tsv"
Expand All @@ -40,7 +40,7 @@ rule colors:
rule prepare_auspice_config:
"""Prepare the auspice config file for each serotypes"""
output:
auspice_config="results/config/{gene}/auspice_config_{serotype}.json",
auspice_config="results/defaults/{gene}/auspice_config_{serotype}.json",
params:
replace_clade_key=lambda wildcard: r"clade_membership" if wildcard.gene in ['genome'] else r"genotype_nextclade",
replace_clade_title=lambda wildcard: r"Serotype" if wildcard.serotype in ['all'] else r"Dengue Genotype (Nextclade)",
Expand Down Expand Up @@ -140,7 +140,7 @@ rule export:
nt_muts = "results/{gene}/nt-muts_{serotype}.json",
aa_muts = "results/{gene}/aa-muts_{serotype}.json",
description = config["export"]["description"],
auspice_config = "results/config/{gene}/auspice_config_{serotype}.json",
auspice_config = "results/defaults/{gene}/auspice_config_{serotype}.json",
colors = "results/colors_{serotype}.tsv",
output:
auspice_json = "results/{gene}/raw_dengue_{serotype}.json"
Expand Down
2 changes: 1 addition & 1 deletion phylogenetic/rules/prepare_sequences.smk
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ rule align:
"""
input:
sequences = "results/{gene}/filtered_{serotype}.fasta",
reference = lambda wildcard: "config/reference_{serotype}_genome.gb" if wildcard.gene in ['genome'] else "results/config/reference_{serotype}_{gene}.gb"
reference = lambda wildcard: "defaults/reference_{serotype}_genome.gb" if wildcard.gene in ['genome'] else "results/defaults/reference_{serotype}_{gene}.gb"
output:
alignment = "results/{gene}/aligned_{serotype}.fasta"
shell:
Expand Down
8 changes: 4 additions & 4 deletions phylogenetic/rules/prepare_sequences_E.smk
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ rule generate_E_reference_files:
Generating reference files for the E gene
"""
input:
reference = "config/reference_{serotype}_genome.gb",
reference = "defaults/reference_{serotype}_genome.gb",
output:
fasta = "results/config/reference_{serotype}_E.fasta",
genbank = "results/config/reference_{serotype}_E.gb",
fasta = "results/defaults/reference_{serotype}_E.fasta",
genbank = "results/defaults/reference_{serotype}_E.gb",
params:
gene = "E",
shell:
Expand All @@ -42,7 +42,7 @@ rule align_and_extract_E:
"""
input:
sequences = "data/sequences_{serotype}.fasta",
reference = "results/config/reference_{serotype}_E.fasta"
reference = "results/defaults/reference_{serotype}_E.fasta"
output:
sequences = "results/E/sequences_{serotype}.fasta"
params:
Expand Down

0 comments on commit cca844c

Please sign in to comment.