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.
- {TreeSAK-1.32.0/TreeSAK.egg-info → TreeSAK-1.32.1}/PKG-INFO +2 -2
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/VERSION +3 -3
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/replace_clade.py +16 -9
- {TreeSAK-1.32.0 → TreeSAK-1.32.1/TreeSAK.egg-info}/PKG-INFO +2 -2
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/bin/TreeSAK +0 -1
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/LICENSE +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/MANIFEST.in +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/README.md +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ALE.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ALE1.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ALE2.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ALE2RTC.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ALE3.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ALE4.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ALE5.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ALE6.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ALE_backup.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/AlignmentPruner.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/AssessCVG.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/AssessMarker.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/AssessMarkerDeltaLL.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/AssessMarkerPA.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/BMGE.jar +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/BMGE.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/CompareMCMC.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ConcateMSA.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ConvertMSA.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/Dir.rb +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ExtractMarkerSeq.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/FastRoot.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/FastRoot_backup.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/GTDB_tree.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/KEGG_Luo17.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/LcaToLeaves.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/MCMCtreeR.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/MarkerRef2Tree.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/MarkerRef2Tree_backup.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/MarkerSeq2Tree.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ModifyTopo.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/OMA.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/OMA2.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/OneLineAln.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/PMSF.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/PhyloBiAssoc.R +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/PhyloBiAssoc.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/PlotMcmcNode.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/RootTree.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/SequentialDating.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/SingleAleHGT.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/SingleLinePhy.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/SliceMSA.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/SplitScore.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/SplitScore1.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/SplitScore1OMA.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/SplitScore2.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/TaxaCountStats.R +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/TreeSAK_config.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/VisHPD95.R +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/VisHPD95.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/__init__.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ale_parser.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/ale_splitter.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/compare_trees.R +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/compare_trees.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/dating.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/dating_ss.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/do_rrtc.rb +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/fa2phy.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/format_leaf_name.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/get_arCOG_seq.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/global_functions.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/gtdb_root.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/pRTC.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/parse_deltall_stdout.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/pb_mpi.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/plot_distruibution_th.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/prep_mcmctree_ctl.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/print_leaves.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/rename_leaves.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/root_with_out_group.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/run_TaxaCountStats_R_s1.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/subsample_drep_gnms.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/subset.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/subset_tree_stupid_old_way.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/test_1.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/test_2.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/tmp_1.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/tmp_2.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/tmp_3.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/tmp_4.py +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK/weighted_rand.rb +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK.egg-info/SOURCES.txt +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK.egg-info/dependency_links.txt +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK.egg-info/requires.txt +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/TreeSAK.egg-info/top_level.txt +0 -0
- {TreeSAK-1.32.0 → TreeSAK-1.32.1}/setup.cfg +0 -0
- {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.
|
|
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.
|
|
26
|
+
TreeSAK v1.32.1
|
|
@@ -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(
|
|
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
|
-
#
|
|
21
|
-
|
|
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(
|
|
34
|
+
lca = main_tre.get_common_ancestor(leaf_list)
|
|
28
35
|
|
|
29
|
-
if len(lca.get_leaf_names()) != len(subtree_leaf_name_list):
|
|
30
|
-
|
|
31
|
-
|
|
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.
|
|
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.
|
|
26
|
+
TreeSAK v1.32.1
|
|
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
|
|
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
|