Skip to content

Commit 8260b34

Browse files
committed
Made 'centroid' the default decomposition, rather than 'longest'
1 parent 34ebb91 commit 8260b34

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

run_sate_gui.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def OnSatePresets(self, event):
216216
#wx.MessageBox("Preset Selected (Binding 1)", "Info")
217217
preset_selection = self.cb_sate_presets.GetValue()
218218
if preset_selection != "(custom)":
219-
self.cb_decomp.SetValue("Longest")
219+
self.cb_decomp.SetValue("Centroid")
220220
self.blindmode.SetValue(1)
221221
self.cb_apply_stop_rule.Enable()
222222
self.checkbox_stop_time.SetValue(False)
@@ -421,7 +421,7 @@ def _create_sate_settings_sizer(self):
421421
])
422422

423423
strategy_list = ["Centroid", "Longest"]
424-
self.cb_decomp = wx.ComboBox(self, -1, "Longest", choices=strategy_list, style=wx.CB_READONLY)
424+
self.cb_decomp = wx.ComboBox(self, -1, "Centroid", choices=strategy_list, style=wx.CB_READONLY)
425425

426426
self.ctrls.append(self.cb_decomp)
427427
self.sate_settings_ctrl_list = []

sate/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
PROGRAM_NAME = "SATe"
1313
PROGRAM_AUTHOR = ["Jiaye Yu", "Mark T. Holder", "Jeet Sukumaran", "Siavash Mirarab", "Jamie Oaks"]
1414
PROGRAM_LICENSE = "GNU General Public License, version 3"
15-
PROGRAM_VERSION = "2.2.2"
15+
PROGRAM_VERSION = "2.2.3"
1616
PROGRAM_YEAR = "2009-2012"
1717
PROGRAM_DESCRIPTION = "Simultaneous Alignment and Tree Estimation"
1818
PROGRAM_WEBSITE = "http://phylo.bio.ku.edu/software/sate/sate.html"

sate/mainsate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def get_auto_defaults_from_summary_stats(datatype, ntax_nchar_tuple_list, total_
8787
'tree_estimator' : 'fasttree',
8888
'aligner' : 'mafft',
8989
'merger' : 'muscle',
90-
'break_strategy' : 'longest',
90+
'break_strategy' : 'centroid',
9191
'move_to_blind_on_worse_score' : True,
9292
'start_tree_search_from_current' : True,
9393
'after_blind_iter_without_imp_limit' : 1,

sate/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def __init__(self):
7474
self.sate.add_option('aligner', StringUserSetting(name='aligner', default='mafft', short_name=None, help='The name of the alignment program to use for subproblems.', subcategory='tools'))
7575
self.sate.add_option('merger', StringUserSetting(name='merger', default='muscle', short_name=None, help='The name of the alignment program to use to merge subproblems.', subcategory='tools'))
7676
self.sate.add_option('tree_estimator', StringUserSetting(name='tree_estimator', default='fasttree', short_name=None, help='The name of the tree inference program to use to find trees on fixed alignments.', subcategory='tools'))
77-
self.sate.add_option('break_strategy', ChoiceUserSetting(name='break_strategy', default='longest', choices=['centroid', 'longest'], multiple_choices=True, short_name=None, help='The method for choosing an edge when bisecting the tree during decomposition', subcategory='decomposition'))
77+
self.sate.add_option('break_strategy', ChoiceUserSetting(name='break_strategy', default='centroid', choices=['centroid', 'longest'], multiple_choices=True, short_name=None, help='The method for choosing an edge when bisecting the tree during decomposition', subcategory='decomposition'))
7878
self.sate.add_option('max_subproblem_size', IntUserSetting(name='max_subproblem_size', default=3, min=0, max=None, short_name=None, help='The maximum size (number of leaves) of subproblems. When a subproblem contains this number of leaves (or fewer), then it will not be decomposed further.', subcategory='decomposition'))
7979
self.sate.add_option('max_subproblem_frac', FloatUserSetting(name='max_subproblem_frac', default=0.5, min=0.0, max=None, short_name=None, help='The maximum size (number of leaves) of subproblems specified in terms as a proportion of the total number of leaves. When a subproblem contains this number of leaves (or fewer), then it will not be decomposed further.', subcategory='decomposition'))
8080
self.sate.add_option('start_tree_search_from_current', BoolUserSetting(name='start_tree_search_from_current', default='False', short_name=None, help='If selected that the tree from the previous iteration will be given to the tree searching tool as a starting tree.', subcategory='searching'))

sate_ui.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
<string-option name="tree_estimator" default="fasttree" category="sate" subcategory="tools">
123123
<help>The name of the tree inference program to use to find trees on fixed alignments.</help>
124124
</string-option>
125-
<choice-option name="break_strategy" default="longest" multichoice="True" category="sate" subcategory="decomposition">
125+
<choice-option name="break_strategy" default="centroid" multichoice="True" category="sate" subcategory="decomposition">
126126
<choice value="centroid"><help>The edge that comes closest to dividing the tree into two equally sized subtrees (in terms of the number of leaves).</help></choice>
127127
<choice value="longest" ><help>Longest edge in the tree</help></choice>
128128
<help>The method for choosing an edge when bisecting the tree during decomposition</help>

0 commit comments

Comments
 (0)