TreeSAK 1.55.2__tar.gz → 1.56.0__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.55.2/treesak.egg-info → treesak-1.56.0}/PKG-INFO +2 -2
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/VERSION +3 -0
- treesak-1.56.0/TreeSAK/mcmctree_out.py +123 -0
- {treesak-1.55.2 → treesak-1.56.0}/bin/TreeSAK +14 -4
- {treesak-1.55.2 → treesak-1.56.0/treesak.egg-info}/PKG-INFO +2 -2
- {treesak-1.55.2 → treesak-1.56.0}/treesak.egg-info/SOURCES.txt +1 -0
- {treesak-1.55.2 → treesak-1.56.0}/LICENSE +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/MANIFEST.in +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/README.md +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/ALE.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/ALE1.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/ALE2.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/ALE2RTC.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/ALE3.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/ALE4.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/ALE5.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/ALE6.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/ALE7.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/ALE_backup.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/AssessCVG.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/AssessMarker.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/AssessMarkerDeltaLL.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/AssessMarkerPA.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/BMGE.jar +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/BMGE.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/C60SR4.nex +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/CompareMCMC.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/ConcateMSA.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/ConvertMSA.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/Dir.rb +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/ExtractMarkerSeq.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/FastRoot.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/FastRoot_backup.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/FigTree.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/GTDB_tree.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/GeneTree.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/KEGG_Luo17.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/LcaToLeaves.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/MarkerRef2Tree.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/MarkerRef2Tree_backup.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/MarkerSeq2Tree.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/MarkerSeq2Tree_backup.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/ModifyTopo.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/Newick_tree_plotter.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/OMA.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/OMA2.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/OneLineAln.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/PB.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/PMSF.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/PhyloBiAssoc.R +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/PhyloBiAssoc.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/PlotMCMC.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/PlotMcmcNode.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/PlotMcmcNode_old.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/RootTree.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/RootTreeGTDB.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/RootTreeGTDB214.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/RootTreeGTDB220.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/SequentialDating.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/SingleAleHGT.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/SingleLinePhy.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/SliceMSA.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/SplitScore.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/SplitScore1.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/SplitScore1OMA.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/SplitScore2.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/TaxaCountStats.R +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/TaxonTree.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/TreeSAK_config.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/VisHPD95.R +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/VisHPD95.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/__init__.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/ale_parser.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/ale_splitter.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/alignment_pruner.pl +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/assessOG.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/assessPB.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/batch_itol.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/catfasta2phy.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/cogTree.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/compare_trees.R +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/compare_trees.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/dating.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/dating_ss.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/deltall.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/do_rrtc.rb +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/fa2phy.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/filter_rename_ar53.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/format_leaf_name.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/gap_stats.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/get_SCG_tree.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/get_arCOG_seq.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/get_lca_id.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/global_functions.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/gnm_leaves.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/guide_tree.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/iTOL.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/iTOL_gene_tree.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/itol_msa_stats.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/keep_highest_rrtc.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/koTree.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/label_gene_tree_by_gnm.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/label_tree.R +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/label_tree.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/mad.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/mcmc2tree.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/mcmcTC copy.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/mcmcTC.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/mcmctree_vs_reltime.R +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/mcmctree_vs_reltime.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/merge_pdf.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/pRTC.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/parse_mcmctree.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/parse_reltime.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/phy2fa.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/plot_distruibution_th.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/prep_mcmctree_ctl.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/print_leaves.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/pruneMSA.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/recode.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/remove_bias.R +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/rename_leaves.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/replace_clade.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/root_with_out_group.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/run_TaxaCountStats_R_s1.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/subsample_drep_gnms.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/subset.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/subset_tree_stupid_old_way.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/supertree.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/tmp_1.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/tmp_2.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/tmp_3.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/tmp_4.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/TreeSAK/weighted_rand.rb +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/setup.cfg +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/setup.py +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/treesak.egg-info/dependency_links.txt +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/treesak.egg-info/requires.txt +0 -0
- {treesak-1.55.2 → treesak-1.56.0}/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.
|
|
3
|
+
Version: 1.56.0
|
|
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.
|
|
27
|
+
TreeSAK v1.56.0
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import glob
|
|
3
|
+
import argparse
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
mcmctree_out_usage = '''
|
|
7
|
+
=================== mcmctree_out example commands ===================
|
|
8
|
+
|
|
9
|
+
TreeSAK mcmctree_out -i -n -o
|
|
10
|
+
TreeSAK mcmctree_out -i -n -o
|
|
11
|
+
|
|
12
|
+
===================================================================
|
|
13
|
+
'''
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def sep_path_basename_ext(file_in):
|
|
17
|
+
|
|
18
|
+
f_path, f_name = os.path.split(file_in)
|
|
19
|
+
if f_path == '':
|
|
20
|
+
f_path = '.'
|
|
21
|
+
f_base, f_ext = os.path.splitext(f_name)
|
|
22
|
+
f_ext = f_ext[1:]
|
|
23
|
+
|
|
24
|
+
return f_name, f_path, f_base, f_ext
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def get_node_age_dict(out_txt):
|
|
28
|
+
node_age_dict = dict()
|
|
29
|
+
keep_the_next_value_line = False
|
|
30
|
+
for each_line in open(out_txt):
|
|
31
|
+
if 'Posterior mean (95% Equal-tail CI) (95% HPD CI) HPD-CI-width' in each_line:
|
|
32
|
+
keep_the_next_value_line = True
|
|
33
|
+
else:
|
|
34
|
+
if keep_the_next_value_line is True:
|
|
35
|
+
each_line_split = each_line.strip().replace('(', '').replace(')', '').split()
|
|
36
|
+
if len(each_line_split) > 0:
|
|
37
|
+
node_id = each_line_split[0]
|
|
38
|
+
node_mean = each_line_split[1].replace(',', '')
|
|
39
|
+
hpd_ci_95_l = each_line_split[4].replace(',', '')
|
|
40
|
+
hpd_ci_95_r = each_line_split[5].replace(',', '')
|
|
41
|
+
value_str = '%s(%s %s)' % (node_mean, hpd_ci_95_l, hpd_ci_95_r)
|
|
42
|
+
node_age_dict[node_id] = value_str
|
|
43
|
+
return node_age_dict
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def mcmctree_out(args):
|
|
47
|
+
|
|
48
|
+
mcmc_out_dir = args['i']
|
|
49
|
+
interested_nodes_txt = args['n']
|
|
50
|
+
op_txt = args['o']
|
|
51
|
+
|
|
52
|
+
_, op_f_path, op_f_base, op_f_ext = sep_path_basename_ext(op_txt)
|
|
53
|
+
op_txt_with_hpd_ci_95 = '%s/%s_HPD_CI_95.%s' % (op_f_path, op_f_base, op_f_ext)
|
|
54
|
+
|
|
55
|
+
# read in interested_nodes_txt
|
|
56
|
+
interested_node_dict = dict()
|
|
57
|
+
for each_line in open(interested_nodes_txt):
|
|
58
|
+
each_line_split = each_line.strip().split('\t')
|
|
59
|
+
node_id = each_line_split[0]
|
|
60
|
+
node_desc = each_line_split[1]
|
|
61
|
+
interested_node_dict[node_id] = node_desc
|
|
62
|
+
|
|
63
|
+
node_age_dod = dict()
|
|
64
|
+
if os.path.isfile(mcmc_out_dir) is True:
|
|
65
|
+
_, _, f_base, _ = sep_path_basename_ext(mcmc_out_dir)
|
|
66
|
+
node_age_dict = get_node_age_dict(mcmc_out_dir)
|
|
67
|
+
node_age_dod[f_base] = node_age_dict
|
|
68
|
+
elif os.path.isdir(mcmc_out_dir) is True:
|
|
69
|
+
mcmcout_file_re = '%s/*_out.txt' % mcmc_out_dir
|
|
70
|
+
mcmcout_file_list = glob.glob(mcmcout_file_re)
|
|
71
|
+
|
|
72
|
+
if len(mcmcout_file_list) == 0:
|
|
73
|
+
print('No file found in %s, program exited!' % mcmc_out_dir)
|
|
74
|
+
exit()
|
|
75
|
+
|
|
76
|
+
for each_mcmcout_file in mcmcout_file_list:
|
|
77
|
+
_, _, f_base, _ = sep_path_basename_ext(each_mcmcout_file)
|
|
78
|
+
current_node_age_dict = get_node_age_dict(each_mcmcout_file)
|
|
79
|
+
node_age_dod[f_base] = current_node_age_dict
|
|
80
|
+
else:
|
|
81
|
+
print('No input file found, program exited!')
|
|
82
|
+
exit()
|
|
83
|
+
|
|
84
|
+
node_list_sorted = sorted(list(interested_node_dict.keys()))
|
|
85
|
+
node_list_sorted_with_desc = [('%s__%s' % (i, interested_node_dict[i])) for i in node_list_sorted]
|
|
86
|
+
|
|
87
|
+
op_txt_handle = open(op_txt_with_hpd_ci_95, 'w')
|
|
88
|
+
op_txt_mean_handle = open(op_txt, 'w')
|
|
89
|
+
if len(node_age_dod) ==1:
|
|
90
|
+
for each_setting in node_age_dod:
|
|
91
|
+
current_value_dict = node_age_dod[each_setting]
|
|
92
|
+
for each_node_id in node_list_sorted:
|
|
93
|
+
current_node_value = current_value_dict[each_node_id]
|
|
94
|
+
current_node_mean = current_node_value.split('(')[0]
|
|
95
|
+
op_txt_handle.write('%s\t%s\t%s\n' % (each_node_id, current_node_value, interested_node_dict.get(each_node_id, '')))
|
|
96
|
+
op_txt_mean_handle.write('%s\t%s\t%s\n' % (each_node_id, current_node_mean, interested_node_dict.get(each_node_id, '')))
|
|
97
|
+
|
|
98
|
+
elif len(node_age_dod) >=2:
|
|
99
|
+
op_txt_handle.write('\t' + '\t'.join(node_list_sorted_with_desc) + '\n')
|
|
100
|
+
op_txt_mean_handle.write('\t' + '\t'.join(node_list_sorted_with_desc) + '\n')
|
|
101
|
+
for each_setting in node_age_dod:
|
|
102
|
+
current_value_dict = node_age_dod[each_setting]
|
|
103
|
+
current_value_list = [each_setting]
|
|
104
|
+
current_mean_list = [each_setting]
|
|
105
|
+
for each_node_id in node_list_sorted:
|
|
106
|
+
current_node_value = current_value_dict[each_node_id]
|
|
107
|
+
current_node_mean = current_node_value.split('(')[0]
|
|
108
|
+
current_value_list.append(current_node_value)
|
|
109
|
+
current_mean_list.append(current_node_mean)
|
|
110
|
+
op_txt_handle.write('\t'.join(current_value_list) + '\n')
|
|
111
|
+
op_txt_mean_handle.write('\t'.join(current_mean_list) + '\n')
|
|
112
|
+
op_txt_handle.close()
|
|
113
|
+
op_txt_mean_handle.close()
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
if __name__ == '__main__':
|
|
117
|
+
|
|
118
|
+
mcmctree_out_parser = argparse.ArgumentParser()
|
|
119
|
+
mcmctree_out_parser.add_argument('-i', required=True, help='MCMCTree out file/dir')
|
|
120
|
+
mcmctree_out_parser.add_argument('-n', required=True, help='interested nodes')
|
|
121
|
+
mcmctree_out_parser.add_argument('-o', required=True, help='output table')
|
|
122
|
+
args = vars(mcmctree_out_parser.parse_args())
|
|
123
|
+
mcmctree_out(args)
|
|
@@ -94,12 +94,13 @@ def print_main_help():
|
|
|
94
94
|
Dating-related
|
|
95
95
|
dating -> Perform molecular dating
|
|
96
96
|
CompareMCMC -> Compare MCMCTree outputs
|
|
97
|
-
PlotMcmcNode ->
|
|
97
|
+
PlotMcmcNode -> Distribution of node's age estimation
|
|
98
98
|
VisHPD95 -> HPD95 of estimated node age
|
|
99
99
|
pRTC -> Perform probabilistic RTC dating
|
|
100
|
-
mcmcTC ->
|
|
101
|
-
mcmc2tree ->
|
|
102
|
-
|
|
100
|
+
mcmcTC -> Adding time constraints to mcmctree tree
|
|
101
|
+
mcmc2tree -> Get the tree with internal node from mcmctree output
|
|
102
|
+
mcmctree_out -> Parse MCMCTree produced .out file
|
|
103
|
+
|
|
103
104
|
Phylo-related stats
|
|
104
105
|
PhyloBiAssoc -> A wrapper for binaryPGLMM test
|
|
105
106
|
|
|
@@ -972,6 +973,15 @@ if __name__ == '__main__':
|
|
|
972
973
|
args = vars(parser.parse_args())
|
|
973
974
|
get_lca_id.get_lca_id(args)
|
|
974
975
|
|
|
976
|
+
elif sys.argv[1] == 'mcmctree_out':
|
|
977
|
+
from TreeSAK import mcmctree_out
|
|
978
|
+
mcmctree_out_parser = subparsers.add_parser('mcmctree_out', usage=mcmctree_out.mcmctree_out_usage)
|
|
979
|
+
mcmctree_out_parser.add_argument('-i', required=True, help='MCMCTree out file/dir')
|
|
980
|
+
mcmctree_out_parser.add_argument('-n', required=True, help='interested nodes')
|
|
981
|
+
mcmctree_out_parser.add_argument('-o', required=True, help='output table')
|
|
982
|
+
args = vars(parser.parse_args())
|
|
983
|
+
mcmctree_out.mcmctree_out(args)
|
|
984
|
+
|
|
975
985
|
else:
|
|
976
986
|
print('Unrecognized module: %s, program exited!' % sys.argv[1])
|
|
977
987
|
exit()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: treesak
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.56.0
|
|
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.
|
|
27
|
+
TreeSAK v1.56.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|