@@ -42,7 +42,8 @@ def main():
4242 title = "Sub-commands help" , help = "" , metavar = "" , dest = "subparser_name" )
4343 subparser_modules .add_parser (
4444 "smuggle" , help = "Smuggle the budgie." , description = "Process the tree." ,
45- parents = [subparser_args1 ])
45+ parents = [subparser_args1 ],
46+ formatter_class = argparse .ArgumentDefaultsHelpFormatter )
4647
4748 subparser_modules .add_parser (
4849 "version" , help = "Print version." , description = "Print version." )
@@ -87,15 +88,14 @@ def main():
8788 t .standardize ()
8889 tree = Phylo .read (StringIO (t .write (format = 0 )), "newick" )
8990 if args .support_multiplier is not None :
90- print (f"Multiplying branch supports by { args .support_multiplier } " )
91+ print (f"Multiplying branch supports by { args .support_multiplier } " , file = sys . stderr )
9192 for non_terminal in tree .get_nonterminals ():
9293 if non_terminal .confidence is not None :
9394 if args .support_multiplier == 100 :
9495 non_terminal .confidence = float ("{0:.0f}" .format (float (non_terminal .confidence * args .support_multiplier )))
9596 else :
9697 if args .support_multiplier == 0.1 :
9798 non_terminal .confidence = float ("{0:.2f}" .format (float (non_terminal .confidence * args .support_multiplier )))
98- print (tree )
9999
100100 # Polytomies created by collapsing nodes still need to be parseable.
101101 # Achieve this by increasing the recursion limit
0 commit comments