Skip to content

Commit

Permalink
Undo defaults.yaml change, use one config per build, add default profile
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusroemer committed Sep 20, 2023
1 parent ea5e21b commit 5019420
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 54 deletions.
4 changes: 0 additions & 4 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ if version.parse(augur_version) < version.parse(min_augur_version):
sys.exit(1)


# Use default configuration values. Override with Snakemake's --configfile/--config options.
configfile: "config/defaults.yaml"


build_dir = "results"


Expand Down
16 changes: 16 additions & 0 deletions config/config_hmpxv1.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
exclude: "config/exclude_accessions_mpxv.txt"
reference: "config/reference.fasta"
genemap: "config/genemap.gff"
genbank_reference: "config/reference.gb"
colors: "config/colors_hmpxv1.tsv"
clades: "config/clades.tsv"
lat_longs: "config/lat_longs.tsv"
auspice_config: "config/auspice_config_hmpxv1.json"
description: "config/description.md"
tree_mask: "config/tree_mask.tsv"

# Use `accession` as the ID column since `strain` currently contains duplicates¹.
# ¹ https://github.com/nextstrain/monkeypox/issues/33
strain_id_field: "accession"
display_strain_field: "strain"

build_name: "hmpxv1"
auspice_name: "mpox_mpxv-IIb"
Expand Down Expand Up @@ -58,6 +71,9 @@ root: "MK783032 MK783030"
clock_rate: 5.7e-5
clock_std_dev: 2e-5

## recency
recency: true

mask:
from_beginning: 800
from_end: 6422
Expand Down
16 changes: 16 additions & 0 deletions config/config_hmpxv1_big.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
exclude: "config/exclude_accessions_mpxv.txt"
reference: "config/reference.fasta"
genemap: "config/genemap.gff"
genbank_reference: "config/reference.gb"
colors: "config/colors_hmpxv1.tsv"
clades: "config/clades.tsv"
lat_longs: "config/lat_longs.tsv"
auspice_config: "config/auspice_config_hmpxv1_big.json"
description: "config/description.md"
tree_mask: "config/tree_mask.tsv"

# Use `accession` as the ID column since `strain` currently contains duplicates¹.
# ¹ https://github.com/nextstrain/monkeypox/issues/33
strain_id_field: "accession"
display_strain_field: "strain"

build_name: "hmpxv1_big"
auspice_name: "mpox_mpxv-IIb-B.1"
Expand Down Expand Up @@ -36,6 +49,9 @@ root: "OP890401"
clock_rate: 5.7e-5
clock_std_dev: 2e-5

## recency
recency: true

mask:
from_beginning: 800
from_end: 6422
Expand Down
23 changes: 23 additions & 0 deletions config/config_mpxv.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
exclude: "config/exclude_accessions_mpxv.txt"
reference: "config/reference.fasta"
genemap: "config/genemap.gff"
genbank_reference: "config/reference.gb"
colors: "config/colors_mpxv.tsv"
lat_longs: "config/lat_longs.tsv"
auspice_config: "config/auspice_config_mpxv.json"
description: "config/description.md"
clades: "config/clades.tsv"
tree_mask: "config/tree_mask.tsv"

# Use `accession` as the ID column since `strain` currently contains duplicates¹.
# ¹ https://github.com/nextstrain/monkeypox/issues/33
strain_id_field: "accession"
display_strain_field: "strain"

build_name: "mpxv"
auspice_name: "mpox_mpxv"
Expand Down Expand Up @@ -41,12 +54,22 @@ filter:
group_by: "--group-by country year"
sequences_per_group: "--subsample-max-sequences 100"

## align
max_indel: 10000
seed_spacing: 1000

## treefix
fix_tree: true

## refine
timetree: false
root: "min_dev"
clock_rate: 3e-6
clock_std_dev: 6e-6

## recency
recency: true

mask:
from_beginning: 1350
from_end: 6422
Expand Down
50 changes: 0 additions & 50 deletions config/defaults.yaml

This file was deleted.

5 changes: 5 additions & 0 deletions profiles/default/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cores: all
printshellcmds: true
reason: true
rerun-incomplete: true
configfile: config/config_mpxv.yaml

0 comments on commit 5019420

Please sign in to comment.