Skip to content

Commit

Permalink
Allow more lenient refine rules for the global refine parameters
Browse files Browse the repository at this point in the history
Separate washington-state specific refine parameters from a more permissive
global refine parameters.
  • Loading branch information
j23414 committed Oct 17, 2024
1 parent c3395e3 commit 75a51e6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 3 additions & 0 deletions phylogenetic/build-configs/washington-state/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ subsampling:
country: --query "country == 'USA' and state not in ['WA', 'CA', 'ID', 'OR', 'NV','AZ','NM', 'CO', 'UT', 'WY', 'MT'] and accession != 'NC_009942'" --group-by state year --subsample-max-sequences 300 --min-length '9800'
force_include: --exclude-all --include ../nextclade/defaults/include.txt

refine:
treetime_params: --coalescent opt --clock-filter-iqd 4 --date-inference marginal --date-confidence

traits:
metadata_columns: [
'country',
Expand Down
5 changes: 4 additions & 1 deletion phylogenetic/defaults/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ strain_id_field: "accession"
# Use 'Egypt 1951' as the reference and root, following Mencattelli et al, 2023
# https://www.nature.com/articles/s41467-023-42185-7
reference: "defaults/reference_global.gb"
root: "AF260968_REF"
root: "AF260968"

# Sequences must be FASTA and metadata must be TSV
# Both files must be zstd compressed
Expand Down Expand Up @@ -68,6 +68,9 @@ subsampling:
region: --query "is_lab_host != 'true'" --query-columns is_lab_host:str --min-length '9800' --group-by region year --subsample-max-sequences 3000 --exclude defaults/exclude.txt
force_include: --exclude-all --include defaults/include.txt

refine:
treetime_params: --coalescent opt --date-inference marginal --date-confidence

traits:
metadata_columns: [
'region',
Expand Down
9 changes: 2 additions & 7 deletions phylogenetic/rules/construct_phylogeny.smk
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ rule refine:
params:
metadata_id_columns = config["strain_id_field"],
root = config["root"],
date_inference = "marginal",
coalescent = "opt",
clock_filter_iqd = 4,
treetime_params = config["refine"]["treetime_params"],
shell:
"""
augur refine \
Expand All @@ -69,9 +67,6 @@ rule refine:
--output-node-data {output.node_data} \
--root {params.root} \
--timetree \
--coalescent {params.coalescent} \
--date-confidence \
--date-inference {params.date_inference} \
--clock-filter-iqd {params.clock_filter_iqd} \
{params.treetime_params} \
2>&1 | tee {log}
"""

0 comments on commit 75a51e6

Please sign in to comment.