Skip to content

Commit

Permalink
Merge pull request #110 from nextstrain/james/cattle-outbreak-clock-f…
Browse files Browse the repository at this point in the history
…ilter

Cattle outbreak clock filter
  • Loading branch information
jameshadfield authored Dec 10, 2024
2 parents ec2b17d + 871a0de commit 0780396
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ def refine_clock_rates(w):
return f"--clock-rate {info[w.segment][0]} --clock-std-dev {info[w.segment][1]}"

def refine_clock_filter(w):
filter = get_config('refine', 'clock_filter_iqd', w)
filter = get_config('refine', 'genome_clock_filter_iqd', w) \
if w.segment=='genome' \
else get_config('refine', 'clock_filter_iqd', w)
return f"--clock-filter-iqd {filter}" if filter else ""


Expand Down
2 changes: 2 additions & 0 deletions config/h5n1-cattle-outbreak.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ refine:
coalescent: const
date_inference: marginal

genome_clock_filter_iqd:
FALLBACK: 3
clock_filter_iqd:
FALLBACK: false

Expand Down
3 changes: 3 additions & 0 deletions ingest/build-configs/ncbi/defaults/host-map.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,6 @@ western sandpiper Avian
Wild-Bird Avian
EMU Avian
Emu Avian
Dromaius novaehollandiae Avian
White-winged Dove Avian
Rock Pigeon Avian

0 comments on commit 0780396

Please sign in to comment.