TreeSAK 1.32.0__tar.gz → 1.32.1__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 (97) hide show
  1. {TreeSAK-1.32.0/TreeSAK.egg-info → TreeSAK-1.32.1}/PKG-INFO +2 -2
  2. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/VERSION +3 -3
  3. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/replace_clade.py +16 -9
  4. {TreeSAK-1.32.0 → TreeSAK-1.32.1/TreeSAK.egg-info}/PKG-INFO +2 -2
  5. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/bin/TreeSAK +0 -1
  6. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/LICENSE +0 -0
  7. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/MANIFEST.in +0 -0
  8. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/README.md +0 -0
  9. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ALE.py +0 -0
  10. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ALE1.py +0 -0
  11. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ALE2.py +0 -0
  12. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ALE2RTC.py +0 -0
  13. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ALE3.py +0 -0
  14. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ALE4.py +0 -0
  15. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ALE5.py +0 -0
  16. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ALE6.py +0 -0
  17. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ALE_backup.py +0 -0
  18. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/AlignmentPruner.py +0 -0
  19. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/AssessCVG.py +0 -0
  20. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/AssessMarker.py +0 -0
  21. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/AssessMarkerDeltaLL.py +0 -0
  22. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/AssessMarkerPA.py +0 -0
  23. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/BMGE.jar +0 -0
  24. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/BMGE.py +0 -0
  25. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/CompareMCMC.py +0 -0
  26. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ConcateMSA.py +0 -0
  27. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ConvertMSA.py +0 -0
  28. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/Dir.rb +0 -0
  29. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ExtractMarkerSeq.py +0 -0
  30. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/FastRoot.py +0 -0
  31. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/FastRoot_backup.py +0 -0
  32. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/GTDB_tree.py +0 -0
  33. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/KEGG_Luo17.py +0 -0
  34. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/LcaToLeaves.py +0 -0
  35. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/MCMCtreeR.py +0 -0
  36. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/MarkerRef2Tree.py +0 -0
  37. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/MarkerRef2Tree_backup.py +0 -0
  38. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/MarkerSeq2Tree.py +0 -0
  39. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ModifyTopo.py +0 -0
  40. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/OMA.py +0 -0
  41. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/OMA2.py +0 -0
  42. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/OneLineAln.py +0 -0
  43. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/PMSF.py +0 -0
  44. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/PhyloBiAssoc.R +0 -0
  45. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/PhyloBiAssoc.py +0 -0
  46. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/PlotMcmcNode.py +0 -0
  47. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/RootTree.py +0 -0
  48. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/SequentialDating.py +0 -0
  49. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/SingleAleHGT.py +0 -0
  50. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/SingleLinePhy.py +0 -0
  51. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/SliceMSA.py +0 -0
  52. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/SplitScore.py +0 -0
  53. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/SplitScore1.py +0 -0
  54. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/SplitScore1OMA.py +0 -0
  55. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/SplitScore2.py +0 -0
  56. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/TaxaCountStats.R +0 -0
  57. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/TreeSAK_config.py +0 -0
  58. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/VisHPD95.R +0 -0
  59. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/VisHPD95.py +0 -0
  60. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/__init__.py +0 -0
  61. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ale_parser.py +0 -0
  62. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ale_splitter.py +0 -0
  63. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/compare_trees.R +0 -0
  64. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/compare_trees.py +0 -0
  65. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/dating.py +0 -0
  66. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/dating_ss.py +0 -0
  67. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/do_rrtc.rb +0 -0
  68. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/fa2phy.py +0 -0
  69. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/format_leaf_name.py +0 -0
  70. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/get_arCOG_seq.py +0 -0
  71. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/global_functions.py +0 -0
  72. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/gtdb_root.py +0 -0
  73. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/pRTC.py +0 -0
  74. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/parse_deltall_stdout.py +0 -0
  75. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/pb_mpi.py +0 -0
  76. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/plot_distruibution_th.py +0 -0
  77. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/prep_mcmctree_ctl.py +0 -0
  78. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/print_leaves.py +0 -0
  79. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/rename_leaves.py +0 -0
  80. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/root_with_out_group.py +0 -0
  81. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/run_TaxaCountStats_R_s1.py +0 -0
  82. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/subsample_drep_gnms.py +0 -0
  83. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/subset.py +0 -0
  84. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/subset_tree_stupid_old_way.py +0 -0
  85. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/test_1.py +0 -0
  86. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/test_2.py +0 -0
  87. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/tmp_1.py +0 -0
  88. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/tmp_2.py +0 -0
  89. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/tmp_3.py +0 -0
  90. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/tmp_4.py +0 -0
  91. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/weighted_rand.rb +0 -0
  92. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK.egg-info/SOURCES.txt +0 -0
  93. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK.egg-info/dependency_links.txt +0 -0
  94. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK.egg-info/requires.txt +0 -0
  95. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK.egg-info/top_level.txt +0 -0
  96. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/setup.cfg +0 -0
  97. {TreeSAK-1.32.0 → TreeSAK-1.32.1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TreeSAK
3
- Version: 1.32.0
3
+ Version: 1.32.1
4
4
  Summary: BioSAK
5
5
  Home-page: https://github.com/songweizhi/TreeSAK
6
6
  Author: Weizhi Song
@@ -23,4 +23,4 @@ Requires-Dist: plotly
23
23
  Requires-Dist: kaleido
24
24
  Requires-Dist: PyPDF3
25
25
 
26
- TreeSAK v1.32.0
26
+ TreeSAK v1.32.1
@@ -1,9 +1,9 @@
1
+ 1.32.1
2
+ - fixed bugs
3
+
1
4
  1.32.0
2
5
  - new module added: replace_clade
3
6
 
4
- 1.31.22
5
- - fixed bugs
6
-
7
7
  1.31.0
8
8
  - new module added: PhyloBiAssoc
9
9
 
@@ -12,23 +12,30 @@ TreeSAK replace_clade -m main.tree -s sub.tree -l leaves.txt -o output.tree
12
12
  '''
13
13
 
14
14
 
15
- def replace_clade(main_tree_file, sub_tree_file, tree_out):
15
+ def replace_clade(args):
16
+
17
+ main_tree_file = args['m']
18
+ sub_tree_file = args['s']
19
+ tree_out = args['o']
20
+ leaf_txt = args['l']
16
21
 
17
22
  # read in sub tree
18
- sub_tre = Tree(sub_tree_file, format=1)
23
+ sub_tre = Tree(sub_tree_file, quoted_node_names=True, format=1)
19
24
 
20
- # get all leaves in sub tree
21
- subtree_leaf_name_list = sub_tre.get_leaf_names()
25
+ # read in leaves
26
+ leaf_list = []
27
+ for each_leaf in open(leaf_txt):
28
+ leaf_list.append(each_leaf.strip())
22
29
 
23
30
  # read in main tree
24
- main_tre = Tree(main_tree_file)
31
+ main_tre = Tree(main_tree_file, quoted_node_names=True, format=1)
25
32
 
26
33
  # remove clades
27
- lca = main_tre.get_common_ancestor(subtree_leaf_name_list)
34
+ lca = main_tre.get_common_ancestor(leaf_list)
28
35
 
29
- if len(lca.get_leaf_names()) != len(subtree_leaf_name_list):
30
- print('LCA of subtree leaves in main tree contain extra leaves, program exited!')
31
- exit()
36
+ # if len(lca.get_leaf_names()) != len(subtree_leaf_name_list):
37
+ # print('LCA of subtree leaves in main tree contain extra leaves, program exited!')
38
+ # exit()
32
39
 
33
40
  lca_p = lca.up
34
41
  lca_p.remove_child(lca)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TreeSAK
3
- Version: 1.32.0
3
+ Version: 1.32.1
4
4
  Summary: BioSAK
5
5
  Home-page: https://github.com/songweizhi/TreeSAK
6
6
  Author: Weizhi Song
@@ -23,4 +23,4 @@ Requires-Dist: plotly
23
23
  Requires-Dist: kaleido
24
24
  Requires-Dist: PyPDF3
25
25
 
26
- TreeSAK v1.32.0
26
+ TreeSAK v1.32.1
@@ -665,7 +665,6 @@ cd /Users/songweizhi/PycharmProjects/TreeSAK
665
665
  rm -r build dist TreeSAK.egg-info
666
666
  python3 setup.py sdist bdist_wheel
667
667
  twine upload dist/*
668
-
669
668
  __token__
670
669
 
671
670
  pip3 install --upgrade TreeSAK
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
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
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
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
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