sumt 3.8.2__tar.gz → 3.8.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sumt
3
- Version: 3.8.2
3
+ Version: 3.8.4
4
4
  Summary: Computes consensus trees and other phylogenetic tree summaries
5
5
  Home-page: https://github.com/agormp/sumt
6
6
  Author: Anders Gorm Pedersen
@@ -16,7 +16,7 @@ Requires-Dist: psutil
16
16
 
17
17
  # sumt
18
18
 
19
- ![](https://img.shields.io/badge/version-3.8.2-blue)
19
+ ![](https://img.shields.io/badge/version-3.8.4-blue)
20
20
  [![PyPI downloads](https://static.pepy.tech/personalized-badge/sumt?period=total&units=none&left_color=black&right_color=blue&left_text=PyPI%20downloads&service=github)](https://pepy.tech/project/sumt)
21
21
  [![DOI](https://zenodo.org/badge/461522623.svg)](https://zenodo.org/doi/10.5281/zenodo.10148693)
22
22
 
@@ -1,6 +1,6 @@
1
1
  # sumt
2
2
 
3
- ![](https://img.shields.io/badge/version-3.8.2-blue)
3
+ ![](https://img.shields.io/badge/version-3.8.4-blue)
4
4
  [![PyPI downloads](https://static.pepy.tech/personalized-badge/sumt?period=total&units=none&left_color=black&right_color=blue&left_text=PyPI%20downloads&service=github)](https://pepy.tech/project/sumt)
5
5
  [![DOI](https://zenodo.org/badge/461522623.svg)](https://zenodo.org/doi/10.5281/zenodo.10148693)
6
6
 
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = sumt
3
- version = 3.8.2
3
+ version = 3.8.4
4
4
  author = Anders Gorm Pedersen
5
5
  author_email = agpe@dtu.dk
6
6
  description = Computes consensus trees and other phylogenetic tree summaries
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sumt
3
- Version: 3.8.2
3
+ Version: 3.8.4
4
4
  Summary: Computes consensus trees and other phylogenetic tree summaries
5
5
  Home-page: https://github.com/agormp/sumt
6
6
  Author: Anders Gorm Pedersen
@@ -16,7 +16,7 @@ Requires-Dist: psutil
16
16
 
17
17
  # sumt
18
18
 
19
- ![](https://img.shields.io/badge/version-3.8.2-blue)
19
+ ![](https://img.shields.io/badge/version-3.8.4-blue)
20
20
  [![PyPI downloads](https://static.pepy.tech/personalized-badge/sumt?period=total&units=none&left_color=black&right_color=blue&left_text=PyPI%20downloads&service=github)](https://pepy.tech/project/sumt)
21
21
  [![DOI](https://zenodo.org/badge/461522623.svg)](https://zenodo.org/doi/10.5281/zenodo.10148693)
22
22
 
@@ -203,9 +203,11 @@ def parse_commandline(commandlist):
203
203
 
204
204
  if args.burninfrac is None:
205
205
  args.burninfrac = [0.0] * len(args.infilelist)
206
+ elif len(args.burninfrac) == 1:
207
+ burnin_value = args.burninfrac[0]
208
+ args.burninfrac = [burnin_value] * len(args.infilelist)
206
209
  elif len(args.burninfrac) != len(args.infilelist):
207
- msg = "number of burnin values {len(args.burninfrac)} must match number of input files len(args.infilelist){}"
208
- raise parser.error(msg)
210
+ parser.error("either provide one burnin value, or one value per input file")
209
211
 
210
212
  if any(x < 0 or x > 1 for x in args.burninfrac):
211
213
  parser.error("option -b: NUM must be between 0.0 and 1.0")
@@ -372,7 +374,7 @@ def build_parser():
372
374
 
373
375
  bayes_grp = parser.add_argument_group("Bayesian phylogeny options")
374
376
 
375
- bayes_grp.add_argument("-b", dest="burninfrac", metavar="NUM", type=float, default=None, nargs='*',
377
+ bayes_grp.add_argument("-b", dest="burninfrac", metavar="NUM", type=float, default=None, nargs='+',
376
378
  help="burnin: fraction of trees to discard [0 - 1; default: %(default)s]. "
377
379
  + "Either one value (used on all input files), or one value per input file.")
378
380
 
@@ -896,7 +898,7 @@ def compute_and_print_contree(treesummary, args, wt_count_burnin_filename_list):
896
898
  elif args.rootminvar:
897
899
  contree.rootminvar()
898
900
  elif args.rootmaxfreq:
899
- treesummary.root_maxfreq(contree)
901
+ contree = treesummary.root_maxfreq(contree)
900
902
 
901
903
  # If MCC tree was re-rooted, then we need to recompute log clade credibility
902
904
  if args.mcc and args.actively_rooted:
@@ -910,7 +912,7 @@ def compute_and_print_contree(treesummary, args, wt_count_burnin_filename_list):
910
912
  sys.stdout.flush()
911
913
  contree = treesummary.set_ca_node_depths(contree, wt_count_burnin_filename_list)
912
914
  sys.stdout.write("done.\n")
913
- elif args.biplen and (args.mcc or args.mbc):
915
+ elif args.biplen and args.mcc:
914
916
  contree = treesummary.set_mean_biplen(contree)
915
917
 
916
918
  # If root is bifurcation and one child is leaf: Remove branchID (=leafname) and label from other child-branch
File without changes
File without changes
File without changes
File without changes
File without changes