Skip to content

Commit

Permalink
Instead of "fixed" root, use mid_point rooting #46
Browse files Browse the repository at this point in the history
  • Loading branch information
j23414 authored Dec 7, 2024
2 parents 57f184f + b73d025 commit cafdf9f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
12 changes: 4 additions & 8 deletions phylogenetic/defaults/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,11 @@ tree:
refine:
coalescent: "opt"
date_inference: "marginal"
clock_rate: 0.0006
# Rooting to outgroup clade based on strains
# Pinneo-NIG-1969 (L accession KM822127 and S accession KM822128)
# and strain 812285 (L accession MG812674 and S accession MG812675)
# TreeTime needs two tips to root to common ancestor of these tips
# Root the tree based on "mid_point" for treetime
root:
l: "KM822127 MG812674"
s: "KM822128 MG812675"
gpc: "KM822128"
l: "mid_point"
s: "mid_point"
gpc: "mid_point"

ancestral:
inference: "joint"
Expand Down
7 changes: 7 additions & 0 deletions phylogenetic/defaults/exclude.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ KU978809 # GUINEA_Z_185a L segment
KU978810 # GUINEA_Z_185a S segment
KU978811 # NIGERIA_IKEJI S segment
KU978812 # NIGERIA_IKEJI L segment
OR493499 # Large insertion off the end of the S segment
OR493501 # Large insertion off the end of the S segment
OR493502 # Large insertion off the end of the S segment
OR493503 # Large insertion off the end of the S segment
OR493504 # Large insertion off the end of the S segment
OM735982 # Large insertion of Ns in the S segment
MK117995 # 6 base insersion in the S segment
2 changes: 0 additions & 2 deletions phylogenetic/rules/construct_phylogeny.smk
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ rule refine:
strain_id_field = config["strain_id_field"],
coalescent = config['refine']['coalescent'],
date_inference = config['refine']['date_inference'],
clock_rate = config['refine']['clock_rate'],
root = lambda wildcards: config['refine']['root'][wildcards.segment],
shell:
"""
Expand All @@ -76,7 +75,6 @@ rule refine:
--output-node-data {output.node_data} \
--timetree \
--coalescent {params.coalescent} \
--clock-rate {params.clock_rate} \
--date-confidence \
--date-inference {params.date_inference} \
--root {params.root} \
Expand Down

0 comments on commit cafdf9f

Please sign in to comment.