TreeSAK 1.57.4__tar.gz → 1.57.6__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.57.4/treesak.egg-info → treesak-1.57.6}/PKG-INFO +2 -2
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/RootTree.py +10 -5
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/VERSION +1 -1
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/replace_clade.py +10 -8
- {treesak-1.57.4 → treesak-1.57.6/treesak.egg-info}/PKG-INFO +2 -2
- {treesak-1.57.4 → treesak-1.57.6}/LICENSE +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/MANIFEST.in +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/README.md +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/ALE.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/ALE1.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/ALE2.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/ALE2RTC.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/ALE3.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/ALE4.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/ALE5.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/ALE6.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/ALE7.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/ALE_backup.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/AssessCVG.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/AssessMarker.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/AssessMarkerDeltaLL.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/AssessMarkerPA.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/BMGE.jar +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/BMGE.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/C60SR4.nex +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/CompareMCMC.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/ConcateMSA.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/ConvertMSA.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/Dir.rb +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/ExtractMarkerSeq.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/FastRoot.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/FastRoot_backup.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/FigTree.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/GTDB_tree.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/GeneTree.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/KEGG_Luo17.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/LcaToLeaves.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/MarkerRef2Tree.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/MarkerRef2Tree_backup.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/MarkerSeq2Tree.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/MarkerSeq2Tree_backup.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/ModifyTopo.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/Newick_tree_plotter.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/OMA.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/OMA2.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/OneLineAln.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/PB.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/PMSF.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/PhyloBiAssoc.R +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/PhyloBiAssoc.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/PlotMCMC.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/PlotMcmcNode.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/PlotMcmcNode_old.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/RootTreeGTDB.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/RootTreeGTDB214.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/RootTreeGTDB220.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/SequentialDating.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/SingleAleHGT.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/SingleLinePhy.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/SliceMSA.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/SplitScore.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/SplitScore1.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/SplitScore1OMA.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/SplitScore2.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/Tanglegram.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/TaxaCountStats.R +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/TaxonTree.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/TimeScale.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/TreeSAK_config.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/VisHPD95.R +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/VisHPD95.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/__init__.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/ale_parser.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/ale_splitter.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/alignment_pruner.pl +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/assessOG.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/assessPB.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/batch_itol.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/catfasta2phy.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/cogTree.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/compare_trees.R +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/compare_trees.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/cophyloplot.R +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/cophyloplot.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/dating.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/dating_ss.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/deltall.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/do_rrtc.rb +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/fa2phy.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/filter_rename_ar53.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/format_leaf_name.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/gap_stats.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/get_SCG_tree.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/get_arCOG_seq.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/get_lca_id.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/global_functions.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/gnm_leaves.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/guide_tree.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/iTOL.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/iTOL_gene_tree.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/itol_msa_stats.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/keep_highest_rrtc.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/koTree.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/label_gene_tree_by_gnm.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/label_tree.R +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/label_tree.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/mad.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/mcmc2tree.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/mcmcTC copy.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/mcmcTC.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/mcmctree_out.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/mcmctree_vs_reltime.R +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/mcmctree_vs_reltime.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/merge_pdf.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/pRTC.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/parse_mcmctree.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/parse_reltime.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/phy2fa.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/plot_distruibution_th.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/prep_mcmctree_ctl.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/print_leaves.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/pruneMSA.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/recode.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/remove_bias.R +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/rename_leaves.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/root_with_out_group.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/run_TaxaCountStats_R_s1.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/subsample_drep_gnms.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/subset.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/subset_tree_stupid_old_way.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/supertree.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/tmp_1.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/tmp_2.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/tmp_3.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/tmp_4.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/tree_fmt.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/TreeSAK/weighted_rand.rb +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/bin/TreeSAK +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/setup.cfg +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/setup.py +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/treesak.egg-info/SOURCES.txt +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/treesak.egg-info/dependency_links.txt +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/treesak.egg-info/requires.txt +0 -0
- {treesak-1.57.4 → treesak-1.57.6}/treesak.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: treesak
|
|
3
|
-
Version: 1.57.
|
|
3
|
+
Version: 1.57.6
|
|
4
4
|
Summary: BioSAK
|
|
5
5
|
Home-page: https://github.com/songweizhi/TreeSAK
|
|
6
6
|
Author: Weizhi Song
|
|
@@ -24,4 +24,4 @@ Requires-Dist: kaleido
|
|
|
24
24
|
Requires-Dist: PyPDF3
|
|
25
25
|
Requires-Dist: dendropy
|
|
26
26
|
|
|
27
|
-
TreeSAK v1.57.
|
|
27
|
+
TreeSAK v1.57.6
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import os
|
|
1
2
|
import random
|
|
2
3
|
import dendropy
|
|
3
4
|
import argparse
|
|
@@ -5,11 +6,12 @@ from ete3 import Tree
|
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
RootTree_usage = '''
|
|
8
|
-
|
|
9
|
+
======================= RootTree example commands =======================
|
|
9
10
|
|
|
10
|
-
TreeSAK RootTree -i input.tree -
|
|
11
|
+
TreeSAK RootTree -i input.tree -o rooted.tree -og outgroup_genomes.txt
|
|
12
|
+
TreeSAK RootTree -i input.tree -o rooted.tree -og leaf1,leaf2,leaf3
|
|
11
13
|
|
|
12
|
-
|
|
14
|
+
=========================================================================
|
|
13
15
|
'''
|
|
14
16
|
|
|
15
17
|
|
|
@@ -78,8 +80,11 @@ def RootTree(args):
|
|
|
78
80
|
add_root_branch = args['add_root']
|
|
79
81
|
|
|
80
82
|
out_group_set = set()
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
if os.path.isfile(out_group_txt) is True:
|
|
84
|
+
for each_og in open(out_group_txt):
|
|
85
|
+
out_group_set.add(each_og.strip())
|
|
86
|
+
else:
|
|
87
|
+
out_group_set = out_group_txt.split(',')
|
|
83
88
|
|
|
84
89
|
# tre = Tree(tree_file, format=tree_fmt)
|
|
85
90
|
# out_group_lca = tre.get_common_ancestor(out_group_set)
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
import os
|
|
1
2
|
import argparse
|
|
2
3
|
from ete3 import Tree
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
replace_clade_usage = '''
|
|
6
|
-
|
|
7
|
+
====================== replace_clade example commands ======================
|
|
7
8
|
|
|
8
9
|
TreeSAK replace_clade -m main.tree -s sub.tree -l leaves.txt -o out.tree
|
|
10
|
+
TreeSAK replace_clade -m main.tree -s sub.tree -l leaf1,leaf2 -o out.tree
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
============================================================================
|
|
11
13
|
'''
|
|
12
14
|
|
|
13
15
|
|
|
@@ -24,15 +26,17 @@ def replace_clade(args):
|
|
|
24
26
|
|
|
25
27
|
# read in leaves
|
|
26
28
|
leaf_list = []
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
if os.path.isfile(leaf_txt) is True:
|
|
30
|
+
for each_leaf in open(leaf_txt):
|
|
31
|
+
leaf_list.append(each_leaf.strip())
|
|
32
|
+
else:
|
|
33
|
+
leaf_list = leaf_txt.split(',')
|
|
29
34
|
|
|
30
35
|
# read in main tree
|
|
31
36
|
main_tre = Tree(main_tree_file, quoted_node_names=True, format=1)
|
|
32
37
|
|
|
33
38
|
# remove clades
|
|
34
|
-
lca
|
|
35
|
-
|
|
39
|
+
lca = main_tre.get_common_ancestor(leaf_list)
|
|
36
40
|
lca_p = lca.up
|
|
37
41
|
lca_p.remove_child(lca)
|
|
38
42
|
lca_p.add_child(sub_tre)
|
|
@@ -41,8 +45,6 @@ def replace_clade(args):
|
|
|
41
45
|
main_tre.write(outfile=tree_out, format=tree_out_fmt)
|
|
42
46
|
|
|
43
47
|
|
|
44
|
-
|
|
45
|
-
|
|
46
48
|
if __name__ == '__main__':
|
|
47
49
|
|
|
48
50
|
replace_clade_parser = argparse.ArgumentParser()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: treesak
|
|
3
|
-
Version: 1.57.
|
|
3
|
+
Version: 1.57.6
|
|
4
4
|
Summary: BioSAK
|
|
5
5
|
Home-page: https://github.com/songweizhi/TreeSAK
|
|
6
6
|
Author: Weizhi Song
|
|
@@ -24,4 +24,4 @@ Requires-Dist: kaleido
|
|
|
24
24
|
Requires-Dist: PyPDF3
|
|
25
25
|
Requires-Dist: dendropy
|
|
26
26
|
|
|
27
|
-
TreeSAK v1.57.
|
|
27
|
+
TreeSAK v1.57.6
|
|
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
|
|
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
|