phykit 2.1.37__tar.gz → 2.1.38__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.
Files changed (112) hide show
  1. {phykit-2.1.37 → phykit-2.1.38}/PKG-INFO +1 -1
  2. {phykit-2.1.37 → phykit-2.1.38}/phykit/phykit.py +14 -9
  3. phykit-2.1.38/phykit/version.py +1 -0
  4. {phykit-2.1.37 → phykit-2.1.38}/phykit.egg-info/PKG-INFO +1 -1
  5. phykit-2.1.37/phykit/version.py +0 -1
  6. {phykit-2.1.37 → phykit-2.1.38}/LICENSE.md +0 -0
  7. {phykit-2.1.37 → phykit-2.1.38}/README.md +0 -0
  8. {phykit-2.1.37 → phykit-2.1.38}/phykit/__init__.py +0 -0
  9. {phykit-2.1.37 → phykit-2.1.38}/phykit/__main__.py +0 -0
  10. {phykit-2.1.37 → phykit-2.1.38}/phykit/cli_registry.py +0 -0
  11. {phykit-2.1.37 → phykit-2.1.38}/phykit/errors.py +0 -0
  12. {phykit-2.1.37 → phykit-2.1.38}/phykit/helpers/__init__.py +0 -0
  13. {phykit-2.1.37 → phykit-2.1.38}/phykit/helpers/boolean_argument_parsing.py +0 -0
  14. {phykit-2.1.37 → phykit-2.1.38}/phykit/helpers/caching.py +0 -0
  15. {phykit-2.1.37 → phykit-2.1.38}/phykit/helpers/files.py +0 -0
  16. {phykit-2.1.37 → phykit-2.1.38}/phykit/helpers/json_output.py +0 -0
  17. {phykit-2.1.37 → phykit-2.1.38}/phykit/helpers/parallel.py +0 -0
  18. {phykit-2.1.37 → phykit-2.1.38}/phykit/helpers/stats_summary.py +0 -0
  19. {phykit-2.1.37 → phykit-2.1.38}/phykit/helpers/streaming.py +0 -0
  20. {phykit-2.1.37 → phykit-2.1.38}/phykit/service_factories.py +0 -0
  21. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/__init__.py +0 -0
  22. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/__init__.py +0 -0
  23. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/alignment_entropy.py +0 -0
  24. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/alignment_length.py +0 -0
  25. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/alignment_length_no_gaps.py +0 -0
  26. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/alignment_outlier_taxa.py +0 -0
  27. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/alignment_recoding.py +0 -0
  28. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/base.py +0 -0
  29. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/column_score.py +0 -0
  30. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/composition_per_taxon.py +0 -0
  31. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/compositional_bias_per_site.py +0 -0
  32. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/create_concatenation_matrix.py +0 -0
  33. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/dna_threader.py +0 -0
  34. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/evolutionary_rate_per_site.py +0 -0
  35. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/faidx.py +0 -0
  36. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/gc_content.py +0 -0
  37. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/mask_alignment.py +0 -0
  38. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/occupancy_per_taxon.py +0 -0
  39. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/pairwise_identity.py +0 -0
  40. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/parsimony_informative_sites.py +0 -0
  41. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/plot_alignment_qc.py +0 -0
  42. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/rcv.py +0 -0
  43. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/rcvt.py +0 -0
  44. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/rename_fasta_entries.py +0 -0
  45. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/sum_of_pairs_score.py +0 -0
  46. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/alignment/variable_sites.py +0 -0
  47. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/base.py +0 -0
  48. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/__init__.py +0 -0
  49. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/ancestral_reconstruction.py +0 -0
  50. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/base.py +0 -0
  51. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/bipartition_support_stats.py +0 -0
  52. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/branch_length_multiplier.py +0 -0
  53. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/collapse_branches.py +0 -0
  54. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/concordance_asr.py +0 -0
  55. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/consensus_network.py +0 -0
  56. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/consensus_tree.py +0 -0
  57. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/cont_map.py +0 -0
  58. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/cophylo.py +0 -0
  59. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/covarying_evolutionary_rates.py +0 -0
  60. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/density_map.py +0 -0
  61. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/discordance_asymmetry.py +0 -0
  62. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/dvmc.py +0 -0
  63. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/evo_tempo_map.py +0 -0
  64. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/evolutionary_rate.py +0 -0
  65. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/fit_continuous.py +0 -0
  66. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/hidden_paralogy_check.py +0 -0
  67. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/internal_branch_stats.py +0 -0
  68. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/internode_labeler.py +0 -0
  69. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/last_common_ancestor_subtree.py +0 -0
  70. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/lb_score.py +0 -0
  71. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/ltt.py +0 -0
  72. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/monophyly_check.py +0 -0
  73. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/nearest_neighbor_interchange.py +0 -0
  74. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/network_signal.py +0 -0
  75. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/ou_shift_detection.py +0 -0
  76. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/ouwie.py +0 -0
  77. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/patristic_distances.py +0 -0
  78. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/phenogram.py +0 -0
  79. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/phylogenetic_glm.py +0 -0
  80. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/phylogenetic_ordination.py +0 -0
  81. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/phylogenetic_regression.py +0 -0
  82. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/phylogenetic_signal.py +0 -0
  83. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/phylomorphospace.py +0 -0
  84. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/polytomy_test.py +0 -0
  85. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/print_tree.py +0 -0
  86. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/prune_tree.py +0 -0
  87. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/quartet_network.py +0 -0
  88. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/rate_heterogeneity.py +0 -0
  89. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/relative_rate_test.py +0 -0
  90. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/rename_tree_tips.py +0 -0
  91. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/rf_distance.py +0 -0
  92. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/root_tree.py +0 -0
  93. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/saturation.py +0 -0
  94. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/spectral_discordance.py +0 -0
  95. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/spurious_sequence.py +0 -0
  96. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/stochastic_character_map.py +0 -0
  97. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/terminal_branch_stats.py +0 -0
  98. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/threshold_model.py +0 -0
  99. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/tip_labels.py +0 -0
  100. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/tip_to_tip_distance.py +0 -0
  101. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/tip_to_tip_node_distance.py +0 -0
  102. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/total_tree_length.py +0 -0
  103. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/treeness.py +0 -0
  104. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/treeness_over_rcv.py +0 -0
  105. {phykit-2.1.37 → phykit-2.1.38}/phykit/services/tree/vcv_utils.py +0 -0
  106. {phykit-2.1.37 → phykit-2.1.38}/phykit.egg-info/SOURCES.txt +0 -0
  107. {phykit-2.1.37 → phykit-2.1.38}/phykit.egg-info/dependency_links.txt +0 -0
  108. {phykit-2.1.37 → phykit-2.1.38}/phykit.egg-info/entry_points.txt +0 -0
  109. {phykit-2.1.37 → phykit-2.1.38}/phykit.egg-info/requires.txt +0 -0
  110. {phykit-2.1.37 → phykit-2.1.38}/phykit.egg-info/top_level.txt +0 -0
  111. {phykit-2.1.37 → phykit-2.1.38}/setup.cfg +0 -0
  112. {phykit-2.1.37 → phykit-2.1.38}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: phykit
3
- Version: 2.1.37
3
+ Version: 2.1.38
4
4
  Home-page: https://github.com/jlsteenwyk/phykit
5
5
  Author: Jacob L. Steenwyk
6
6
  Author-email: jlsteenwyk@gmail.com
@@ -291,9 +291,13 @@ class Phykit:
291
291
  """
292
292
  ),
293
293
  )
294
- parser.add_argument("command", help=SUPPRESS)
294
+ parser.add_argument("command", nargs="?", default=None, help=SUPPRESS)
295
295
  args = parser.parse_args(sys.argv[1:2])
296
296
 
297
+ if args.command is None:
298
+ parser.print_help()
299
+ sys.exit(0)
300
+
297
301
  # if command is part of the possible commands (i.e., the long form
298
302
  # commands, run). Otherwise, assume it is an alias and look to the
299
303
  # run_alias function
@@ -305,7 +309,8 @@ class Phykit:
305
309
  except SystemExit:
306
310
  # Re-raise SystemExit as-is to preserve exit code
307
311
  raise
308
- except NameError:
312
+ except NameError as e:
313
+ print(f"Error: {e}", file=sys.stderr)
309
314
  sys.exit(2)
310
315
 
311
316
  ## Aliases
@@ -494,7 +499,7 @@ class Phykit:
494
499
  Aliases:
495
500
  alignment_recoding, aln_recoding, recode
496
501
  Command line interfaces:
497
- bk_alignment_recoding, bk_aln_recoding, bk_recode
502
+ pk_alignment_recoding, pk_aln_recoding, pk_recode
498
503
 
499
504
  Usage:
500
505
  phykit alignment_recoding <fasta> -c/--code <code> [--json]
@@ -1206,7 +1211,7 @@ class Phykit:
1206
1211
  f"""\
1207
1212
  {help_header}
1208
1213
 
1209
- Calculate the number and percentage of parismony
1214
+ Calculate the number and percentage of parsimony
1210
1215
  informative sites in an alignment.
1211
1216
 
1212
1217
  The number of parsimony informative sites in an alignment
@@ -1853,13 +1858,13 @@ class Phykit:
1853
1858
 
1854
1859
  Options
1855
1860
  =====================================================
1856
- <tree_file_zero> first argument after
1861
+ <tree_file_zero> first argument after
1857
1862
  function name should be
1858
- an alignment file
1863
+ a tree file
1859
1864
 
1860
- <tree_file_one> first argument after
1865
+ <tree_file_one> second argument after
1861
1866
  function name should be
1862
- an alignment file
1867
+ a tree file
1863
1868
 
1864
1869
  -r/--reference a tree to correct branch
1865
1870
  lengths by in the two input
@@ -4514,7 +4519,7 @@ class Phykit:
4514
4519
  a tree file
4515
4520
 
4516
4521
  -v/--verbose optional argument to print
4517
- all internal branch lengths
4522
+ all terminal branch lengths
4518
4523
 
4519
4524
  --json optional argument to output
4520
4525
  results as JSON
@@ -0,0 +1 @@
1
+ __version__ = "2.1.38"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: phykit
3
- Version: 2.1.37
3
+ Version: 2.1.38
4
4
  Home-page: https://github.com/jlsteenwyk/phykit
5
5
  Author: Jacob L. Steenwyk
6
6
  Author-email: jlsteenwyk@gmail.com
@@ -1 +0,0 @@
1
- __version__ = "2.1.37"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes