TreeSAK 1.46.3__tar.gz → 1.46.5__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.46.3/TreeSAK.egg-info → TreeSAK-1.46.5}/PKG-INFO +2 -2
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/ALE7.py +22 -6
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/VERSION +1 -1
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/cogTree.py +0 -2
- {TreeSAK-1.46.3 → TreeSAK-1.46.5/TreeSAK.egg-info}/PKG-INFO +2 -2
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/LICENSE +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/MANIFEST.in +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/README.md +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/ALE.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/ALE1.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/ALE2.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/ALE2RTC.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/ALE3.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/ALE4.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/ALE5.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/ALE6.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/ALE_backup.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/AssessCVG.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/AssessMarker.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/AssessMarkerDeltaLL.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/AssessMarkerPA.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/AssessPB.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/BMGE.jar +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/BMGE.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/CompareMCMC.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/ConcateMSA.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/ConvertMSA.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/Dir.rb +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/ExtractMarkerSeq.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/FastRoot.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/FastRoot_backup.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/FigTree.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/GTDB_tree.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/KEGG_Luo17.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/LcaToLeaves.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/MarkerRef2Tree.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/MarkerRef2Tree_backup.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/MarkerSeq2Tree.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/ModifyTopo.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/Newick_tree_plotter.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/OMA.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/OMA2.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/OneLineAln.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/PB.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/PMSF.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/PhyloBiAssoc.R +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/PhyloBiAssoc.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/PlotMCMC.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/PlotMcmcNode.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/PlotMcmcNode_old.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/RootTree.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/RootTreeGTDB214.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/RootTreeGTDB220.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/SequentialDating.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/SingleAleHGT.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/SingleLinePhy.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/SliceMSA.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/SplitScore.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/SplitScore1.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/SplitScore1OMA.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/SplitScore2.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/TaxaCountStats.R +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/TaxonTree.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/TreeSAK_config.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/VisHPD95.R +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/VisHPD95.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/__init__.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/ale_parser.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/ale_splitter.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/alignment_pruner.pl +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/catfasta2phy.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/compare_trees.R +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/compare_trees.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/dating.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/dating_ss.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/deltall.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/do_rrtc.rb +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/fa2phy.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/format_leaf_name.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/gap_stats.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/get_SCG_tree.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/get_arCOG_seq.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/global_functions.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/gnm_leaves.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/iTOL.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/iTOL_gene_tree.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/keep_highest_rrtc.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/koTree.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/label_tree.R +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/label_tree.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/mad.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/mcmc2tree.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/mcmcTC.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/merge_pdf.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/pRTC.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/plot_distruibution_th.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/prep_mcmctree_ctl.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/print_leaves.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/pruneMSA.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/recode.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/rename_leaves.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/replace_clade.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/root_with_out_group.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/run_TaxaCountStats_R_s1.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/subsample_drep_gnms.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/subset.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/subset_tree_stupid_old_way.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/supertree.py +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK/weighted_rand.rb +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK.egg-info/SOURCES.txt +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK.egg-info/dependency_links.txt +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK.egg-info/requires.txt +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/TreeSAK.egg-info/top_level.txt +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/bin/TreeSAK +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/setup.cfg +0 -0
- {TreeSAK-1.46.3 → TreeSAK-1.46.5}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: TreeSAK
|
|
3
|
-
Version: 1.46.
|
|
3
|
+
Version: 1.46.5
|
|
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.46.
|
|
27
|
+
TreeSAK v1.46.5
|
|
@@ -52,6 +52,7 @@ def ALE7(args):
|
|
|
52
52
|
for each_fun in open(interested_fun_txt):
|
|
53
53
|
interested_fun_set.add(each_fun.strip().split()[0])
|
|
54
54
|
|
|
55
|
+
node_desc_dict = dict()
|
|
55
56
|
interested_node_set = set()
|
|
56
57
|
if os.path.isfile(interested_gnm_txt) is False:
|
|
57
58
|
if ',' in interested_gnm_txt:
|
|
@@ -60,16 +61,27 @@ def ALE7(args):
|
|
|
60
61
|
interested_node_set.add(interested_gnm_txt)
|
|
61
62
|
else:
|
|
62
63
|
for each_node in open(interested_gnm_txt):
|
|
64
|
+
each_node_split = each_node.strip().split()
|
|
65
|
+
node_id = each_node_split[0]
|
|
63
66
|
interested_node_set.add(each_node.strip().split()[0])
|
|
67
|
+
if len(each_node_split) >= 2:
|
|
68
|
+
node_desc = each_node_split[1]
|
|
69
|
+
node_desc_dict[node_id] = node_desc
|
|
64
70
|
|
|
65
71
|
interested_fun_list_sorted = sorted(list(interested_fun_set))
|
|
66
72
|
interested_gnm_list_sorted = sorted(list(interested_node_set))
|
|
67
73
|
|
|
68
74
|
op_txt_handle = open(op_txt, 'w')
|
|
69
|
-
op_txt_handle.write('ID\t' + '\t'.join(interested_fun_list_sorted) + '\n')
|
|
70
75
|
op_txt_pct_handle = open(op_txt_pct, 'w')
|
|
71
|
-
|
|
76
|
+
if len(node_desc_dict) == 0:
|
|
77
|
+
op_txt_handle.write('ID\t' + '\t'.join(interested_fun_list_sorted) + '\n')
|
|
78
|
+
op_txt_pct_handle.write('ID\tPercentage\n')
|
|
79
|
+
else:
|
|
80
|
+
op_txt_handle.write('ID\tDescription\t' + '\t'.join(interested_fun_list_sorted) + '\n')
|
|
81
|
+
op_txt_pct_handle.write('ID\tDescription\tPercentage\n')
|
|
72
82
|
for each_node in interested_gnm_list_sorted:
|
|
83
|
+
|
|
84
|
+
node_desc = node_desc_dict.get(each_node, 'na')
|
|
73
85
|
node_annotation_cog = '%s/annotation_COG/%s_COG.txt' % (ale6_op_dir, each_node)
|
|
74
86
|
node_annotation_kegg = '%s/annotation_KEGG/%s_KEGG.txt' % (ale6_op_dir, each_node)
|
|
75
87
|
|
|
@@ -81,17 +93,21 @@ def ALE7(args):
|
|
|
81
93
|
for each_line in open(node_annotation_kegg):
|
|
82
94
|
node_fun_set.add(each_line.strip().split()[0])
|
|
83
95
|
|
|
84
|
-
fun_pa_list = [
|
|
96
|
+
fun_pa_list = []
|
|
85
97
|
for each_fun in interested_fun_list_sorted:
|
|
86
98
|
if each_fun in node_fun_set:
|
|
87
99
|
fun_pa_list.append('1')
|
|
88
100
|
else:
|
|
89
101
|
fun_pa_list.append('0')
|
|
90
102
|
|
|
91
|
-
|
|
92
|
-
fun_presence_pct = fun_pa_list.count('1')*100/(len(fun_pa_list) - 1)
|
|
103
|
+
fun_presence_pct = fun_pa_list.count('1')*100/len(fun_pa_list)
|
|
93
104
|
fun_presence_pct = float("{0:.2f}".format(fun_presence_pct))
|
|
94
|
-
|
|
105
|
+
if len(node_desc_dict) == 0:
|
|
106
|
+
op_txt_handle.write('%s\t%s\n' % (each_node, '\t'.join(fun_pa_list)))
|
|
107
|
+
op_txt_pct_handle.write('%s\t%s\n' % (each_node, fun_presence_pct))
|
|
108
|
+
else:
|
|
109
|
+
op_txt_handle.write('%s\t%s\t%s\n' % (each_node, node_desc, '\t'.join(fun_pa_list)))
|
|
110
|
+
op_txt_pct_handle.write('%s\t%s\t%s\n' % (each_node, node_desc, fun_presence_pct))
|
|
95
111
|
op_txt_handle.close()
|
|
96
112
|
op_txt_pct_handle.close()
|
|
97
113
|
|
|
@@ -86,7 +86,6 @@ def cogTree(args):
|
|
|
86
86
|
print('Reading in COG annotation results')
|
|
87
87
|
file_re = '%s/*COG_wd/*_query_to_cog.txt' % (cog_annotation_wd)
|
|
88
88
|
file_list = glob.glob(file_re)
|
|
89
|
-
print(file_list)
|
|
90
89
|
if len(file_list) == 0:
|
|
91
90
|
print('COG annotation file not detected, program exited!')
|
|
92
91
|
exit()
|
|
@@ -98,7 +97,6 @@ def cogTree(args):
|
|
|
98
97
|
each_line_split = each_line.strip().split('\t')
|
|
99
98
|
if len(each_line_split) == 4:
|
|
100
99
|
gene_id = each_line_split[0]
|
|
101
|
-
print(each_line_split)
|
|
102
100
|
cog_id = each_line_split[1]
|
|
103
101
|
if cog_id in interested_fun_set:
|
|
104
102
|
if cog_id not in fun_to_gene_dict:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: TreeSAK
|
|
3
|
-
Version: 1.46.
|
|
3
|
+
Version: 1.46.5
|
|
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.46.
|
|
27
|
+
TreeSAK v1.46.5
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|