TreeSAK 1.48.0__tar.gz → 1.48.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.48.0/TreeSAK.egg-info → TreeSAK-1.48.1}/PKG-INFO +2 -2
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/VERSION +3 -3
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/parse_reltime.py +10 -10
- {TreeSAK-1.48.0 → TreeSAK-1.48.1/TreeSAK.egg-info}/PKG-INFO +2 -2
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/bin/TreeSAK +9 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/LICENSE +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/MANIFEST.in +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/README.md +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/ALE.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/ALE1.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/ALE2.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/ALE2RTC.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/ALE3.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/ALE4.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/ALE5.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/ALE6.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/ALE7.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/ALE_backup.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/AssessCVG.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/AssessMarker.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/AssessMarkerDeltaLL.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/AssessMarkerPA.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/AssessPB.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/BMGE.jar +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/BMGE.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/CompareMCMC.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/ConcateMSA.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/ConvertMSA.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/Dir.rb +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/ExtractMarkerSeq.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/FastRoot.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/FastRoot_backup.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/FigTree.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/GTDB_tree.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/GeneTree.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/KEGG_Luo17.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/LcaToLeaves.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/MarkerRef2Tree.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/MarkerRef2Tree_backup.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/MarkerSeq2Tree.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/MarkerSeq2Tree_backup.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/ModifyTopo.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/Newick_tree_plotter.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/OMA.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/OMA2.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/OneLineAln.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/PB.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/PMSF.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/PhyloBiAssoc.R +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/PhyloBiAssoc.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/PlotMCMC.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/PlotMcmcNode.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/PlotMcmcNode_old.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/RootTree.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/RootTreeGTDB214.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/RootTreeGTDB220.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/SequentialDating.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/SingleAleHGT.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/SingleLinePhy.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/SliceMSA.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/SplitScore.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/SplitScore1.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/SplitScore1OMA.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/SplitScore2.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/TaxaCountStats.R +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/TaxonTree.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/TreeSAK_config.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/VisHPD95.R +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/VisHPD95.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/__init__.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/ale_parser.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/ale_splitter.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/alignment_pruner.pl +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/assessOG.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/catfasta2phy.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/cogTree.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/compare_trees.R +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/compare_trees.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/dating.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/dating_ss.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/deltall.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/do_rrtc.rb +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/fa2phy.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/format_leaf_name.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/gap_stats.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/get_SCG_tree.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/get_arCOG_seq.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/global_functions.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/gnm_leaves.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/iTOL.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/iTOL_gene_tree.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/keep_highest_rrtc.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/koTree.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/label_tree.R +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/label_tree.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/mad.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/mcmc2tree.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/mcmcTC copy.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/mcmcTC.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/merge_pdf.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/pRTC.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/phy2fa.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/plot_distruibution_th.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/prep_mcmctree_ctl.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/print_leaves.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/pruneMSA.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/recode.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/remove_bias.R +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/rename_leaves.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/replace_clade.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/root_with_out_group.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/run_TaxaCountStats_R_s1.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/subsample_drep_gnms.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/subset.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/subset_tree_stupid_old_way.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/supertree.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/tmp_1.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/tmp_2.py +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK/weighted_rand.rb +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK.egg-info/SOURCES.txt +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK.egg-info/dependency_links.txt +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK.egg-info/requires.txt +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/TreeSAK.egg-info/top_level.txt +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/setup.cfg +0 -0
- {TreeSAK-1.48.0 → TreeSAK-1.48.1}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: TreeSAK
|
|
3
|
-
Version: 1.48.
|
|
3
|
+
Version: 1.48.1
|
|
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.48.
|
|
27
|
+
TreeSAK v1.48.1
|
|
@@ -71,7 +71,7 @@ def parse_reltime(args):
|
|
|
71
71
|
op_txt = args['o']
|
|
72
72
|
|
|
73
73
|
f_name, f_path, f_base, f_ext = sep_path_basename_ext(op_txt)
|
|
74
|
-
|
|
74
|
+
op_txt_all_info = '%s/%s_all_info.%s' % (f_path,f_base, f_ext)
|
|
75
75
|
|
|
76
76
|
lca_to_leaves_dict = dict()
|
|
77
77
|
interested_node_desc_dict = dict()
|
|
@@ -87,13 +87,13 @@ def parse_reltime(args):
|
|
|
87
87
|
lca_id = get_lca(reltime_txt, leaf_1, leaf_2)
|
|
88
88
|
lca_to_leaves_dict[lca_id] = paired_leaves.strip()
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
op_txt_all_info_handle = open(op_txt_all_info, 'w')
|
|
91
91
|
line_num_index = 0
|
|
92
92
|
for each_line in open(reltime_txt):
|
|
93
93
|
each_line_split = each_line.strip().split('\t')
|
|
94
94
|
each_line_split = [i.strip() for i in each_line_split]
|
|
95
95
|
if line_num_index == 0:
|
|
96
|
-
|
|
96
|
+
op_txt_all_info_handle.write('Leaves\tDescription\t%s\n' % ('\t'.join(each_line_split)))
|
|
97
97
|
else:
|
|
98
98
|
if len(each_line_split) > 1:
|
|
99
99
|
node_id = each_line_split[1]
|
|
@@ -101,23 +101,23 @@ def parse_reltime(args):
|
|
|
101
101
|
node_id = each_line_split[1]
|
|
102
102
|
corresponding_leaves = lca_to_leaves_dict[node_id]
|
|
103
103
|
interested_node_desc = interested_node_desc_dict[corresponding_leaves]
|
|
104
|
-
|
|
104
|
+
op_txt_all_info_handle.write('%s\t%s\t%s\n' % (corresponding_leaves, interested_node_desc, '\t'.join(each_line_split)))
|
|
105
105
|
line_num_index += 1
|
|
106
|
-
|
|
106
|
+
op_txt_all_info_handle.close()
|
|
107
107
|
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
op_txt_handle = open(op_txt, 'w')
|
|
109
|
+
op_txt_handle.write('Node\tDivTime\tCI_Lower\tCI_Upper\n')
|
|
110
110
|
line_num_index = 0
|
|
111
|
-
for each_line in open(
|
|
111
|
+
for each_line in open(op_txt_all_info):
|
|
112
112
|
if line_num_index > 0:
|
|
113
113
|
each_line_split = each_line.strip().split('\t')
|
|
114
114
|
desc = each_line_split[1]
|
|
115
115
|
div_time = each_line_split[9]
|
|
116
116
|
ci_lower = each_line_split[10]
|
|
117
117
|
ci_upper = each_line_split[11]
|
|
118
|
-
|
|
118
|
+
op_txt_handle.write('%s\t%s\t%s\t%s\n' % (desc, div_time, ci_lower, ci_upper))
|
|
119
119
|
line_num_index += 1
|
|
120
|
-
|
|
120
|
+
op_txt_handle.close()
|
|
121
121
|
|
|
122
122
|
|
|
123
123
|
if __name__ == '__main__':
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: TreeSAK
|
|
3
|
-
Version: 1.48.
|
|
3
|
+
Version: 1.48.1
|
|
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.48.
|
|
27
|
+
TreeSAK v1.48.1
|
|
@@ -891,6 +891,15 @@ if __name__ == '__main__':
|
|
|
891
891
|
args = vars(parser.parse_args())
|
|
892
892
|
GeneTree.GeneTree(args)
|
|
893
893
|
|
|
894
|
+
elif sys.argv[1] == 'parse_reltime':
|
|
895
|
+
from TreeSAK import parse_reltime
|
|
896
|
+
parse_reltime_parser = subparsers.add_parser('parse_reltime', usage=parse_reltime.parse_reltime_usage)
|
|
897
|
+
parse_reltime_parser.add_argument('-i', required=True, help='reltime output file')
|
|
898
|
+
parse_reltime_parser.add_argument('-n', required=True, help='interested node txt')
|
|
899
|
+
parse_reltime_parser.add_argument('-o', required=True, help='output txt file')
|
|
900
|
+
args = vars(parser.parse_args())
|
|
901
|
+
parse_reltime.parse_reltime(args)
|
|
902
|
+
|
|
894
903
|
else:
|
|
895
904
|
print('Unrecognized module: %s, program exited!' % sys.argv[1])
|
|
896
905
|
exit()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|