TreeSAK 1.46.0__tar.gz → 1.46.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.46.0/TreeSAK.egg-info → TreeSAK-1.46.1}/PKG-INFO +2 -2
- TreeSAK-1.46.1/TreeSAK/PlotMcmcNode.py +171 -0
- TreeSAK-1.46.0/TreeSAK/PlotMcmcNode.py → TreeSAK-1.46.1/TreeSAK/PlotMcmcNode_old.py +7 -5
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/VERSION +3 -3
- {TreeSAK-1.46.0 → TreeSAK-1.46.1/TreeSAK.egg-info}/PKG-INFO +2 -2
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK.egg-info/SOURCES.txt +1 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/bin/TreeSAK +4 -6
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/LICENSE +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/MANIFEST.in +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/README.md +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/ALE.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/ALE1.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/ALE2.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/ALE2RTC.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/ALE3.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/ALE4.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/ALE5.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/ALE6.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/ALE7.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/ALE_backup.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/AssessCVG.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/AssessMarker.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/AssessMarkerDeltaLL.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/AssessMarkerPA.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/AssessPB.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/BMGE.jar +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/BMGE.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/CompareMCMC.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/ConcateMSA.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/ConvertMSA.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/Dir.rb +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/ExtractMarkerSeq.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/FastRoot.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/FastRoot_backup.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/FigTree.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/GTDB_tree.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/KEGG_Luo17.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/LcaToLeaves.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/MarkerRef2Tree.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/MarkerRef2Tree_backup.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/MarkerSeq2Tree.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/ModifyTopo.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/Newick_tree_plotter.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/OMA.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/OMA2.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/OneLineAln.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/PB.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/PMSF.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/PhyloBiAssoc.R +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/PhyloBiAssoc.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/PlotMCMC.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/RootTree.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/RootTreeGTDB214.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/RootTreeGTDB220.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/SequentialDating.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/SingleAleHGT.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/SingleLinePhy.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/SliceMSA.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/SplitScore.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/SplitScore1.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/SplitScore1OMA.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/SplitScore2.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/TaxaCountStats.R +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/TaxonTree.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/TreeSAK_config.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/VisHPD95.R +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/VisHPD95.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/__init__.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/ale_parser.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/ale_splitter.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/alignment_pruner.pl +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/catfasta2phy.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/cogTree.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/compare_trees.R +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/compare_trees.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/dating.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/dating_ss.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/deltall.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/do_rrtc.rb +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/fa2phy.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/format_leaf_name.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/gap_stats.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/get_SCG_tree.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/get_arCOG_seq.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/global_functions.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/gnm_leaves.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/iTOL.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/iTOL_gene_tree.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/keep_highest_rrtc.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/koTree.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/label_tree.R +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/label_tree.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/mad.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/mcmc2tree.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/mcmcTC.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/merge_pdf.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/pRTC.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/plot_distruibution_th.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/prep_mcmctree_ctl.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/print_leaves.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/pruneMSA.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/recode.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/rename_leaves.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/replace_clade.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/root_with_out_group.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/run_TaxaCountStats_R_s1.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/subsample_drep_gnms.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/subset.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/subset_tree_stupid_old_way.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/supertree.py +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK/weighted_rand.rb +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK.egg-info/dependency_links.txt +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK.egg-info/requires.txt +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/TreeSAK.egg-info/top_level.txt +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/setup.cfg +0 -0
- {TreeSAK-1.46.0 → TreeSAK-1.46.1}/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.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.46.
|
|
27
|
+
TreeSAK v1.46.1
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import glob
|
|
3
|
+
import argparse
|
|
4
|
+
import pandas as pd
|
|
5
|
+
import plotly.express as px
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
PlotMcmcNode_usage = '''
|
|
9
|
+
========================== PlotMcmcNode example commands ==========================
|
|
10
|
+
|
|
11
|
+
TreeSAK PlotMcmcNode -i McmcTree_op_files -n topo123_nodes.txt -o topo123_age.pdf
|
|
12
|
+
|
|
13
|
+
# file format (-n, tab separated, no header)
|
|
14
|
+
# column 1: file name, no extension
|
|
15
|
+
# column 2: node id
|
|
16
|
+
# column 3: file name on the figure
|
|
17
|
+
# column 4: node name on the figure
|
|
18
|
+
topo1_clock3_mcmc t_n171 Topo1 Symbiosis_event_1
|
|
19
|
+
topo1_clock3_mcmc t_n151 Topo1 Symbiosis_event_2
|
|
20
|
+
topo1_clock3_mcmc t_n131 Topo1 Symbiosis_event_3
|
|
21
|
+
topo2_clock3_mcmc t_n171 Topo2 Symbiosis_event_1
|
|
22
|
+
topo2_clock3_mcmc t_n171 Topo3 Symbiosis_event_1
|
|
23
|
+
|
|
24
|
+
===================================================================================
|
|
25
|
+
'''
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def sep_path_basename_ext(file_in):
|
|
29
|
+
|
|
30
|
+
# separate path and file name
|
|
31
|
+
f_path, file_name = os.path.split(file_in)
|
|
32
|
+
if f_path == '':
|
|
33
|
+
f_path = '.'
|
|
34
|
+
|
|
35
|
+
# separate file basename and extension
|
|
36
|
+
f_base, f_ext = os.path.splitext(file_name)
|
|
37
|
+
|
|
38
|
+
return f_path, f_base, f_ext
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def plot_distribution(df_txt, output_plot):
|
|
42
|
+
|
|
43
|
+
df = pd.read_table(df_txt, sep=',')
|
|
44
|
+
run_id_list = df['Setting'].unique()
|
|
45
|
+
node_id_list = df['Node'].unique()
|
|
46
|
+
|
|
47
|
+
# sort dataframe by run id
|
|
48
|
+
df = df.sort_values(by='Setting', ascending=False)
|
|
49
|
+
|
|
50
|
+
plot_width = 900
|
|
51
|
+
plot_height = len(run_id_list)*100
|
|
52
|
+
if plot_height < 360:
|
|
53
|
+
plot_height = 360
|
|
54
|
+
|
|
55
|
+
fig = px.violin(df, x="Value", y="Setting", color="Node", points=False, orientation="h", width=plot_width, height=plot_height)
|
|
56
|
+
if len(node_id_list) == 1:
|
|
57
|
+
fig.update_traces(side="positive", fillcolor='lightblue', width=1.6, opacity=0.75)
|
|
58
|
+
else:
|
|
59
|
+
fig.update_traces(side="positive", fillcolor='rgba(0,0,0,0)', width=1.6)
|
|
60
|
+
|
|
61
|
+
fig.update_traces(showlegend=True)
|
|
62
|
+
fig.layout.template = "simple_white"
|
|
63
|
+
# fig.layout.width = 700
|
|
64
|
+
# fig.layout.height = 750
|
|
65
|
+
# fig.update_xaxes(range=[40, 0])
|
|
66
|
+
# fig.update_layout(margin_t=10, title_text='Demo', title_x=0.5)
|
|
67
|
+
fig.write_image(output_plot)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def PlotMcmcNode(args):
|
|
71
|
+
|
|
72
|
+
mcmc_in = args['i']
|
|
73
|
+
mcmc_file_ext = args['x']
|
|
74
|
+
node_txt = args['n']
|
|
75
|
+
output_plot = args['o']
|
|
76
|
+
|
|
77
|
+
# check MCMCTree output file/dir
|
|
78
|
+
if os.path.isfile(mcmc_in) is True:
|
|
79
|
+
mcmc_file_list = [mcmc_in]
|
|
80
|
+
else:
|
|
81
|
+
mcmc_file_re = '%s/*.%s' % (mcmc_in, mcmc_file_ext)
|
|
82
|
+
mcmc_file_list = glob.glob(mcmc_file_re)
|
|
83
|
+
|
|
84
|
+
if len(mcmc_file_list) == 0:
|
|
85
|
+
print('*mcmc.txt file not found, program exited!')
|
|
86
|
+
exit()
|
|
87
|
+
|
|
88
|
+
if output_plot[-4:] not in ['.PDF', '.pdf']:
|
|
89
|
+
output_plot = output_plot + '.pdf'
|
|
90
|
+
op_df_tmp = output_plot + '.txt'
|
|
91
|
+
|
|
92
|
+
mcmc_file_full_path_dict = dict()
|
|
93
|
+
for each_mcmc_file in mcmc_file_list:
|
|
94
|
+
mcmc_path, mcmc_base, mcmc_ext = sep_path_basename_ext(each_mcmc_file)
|
|
95
|
+
mcmc_file_full_path_dict[mcmc_base] = each_mcmc_file
|
|
96
|
+
|
|
97
|
+
# read in nodes to plot
|
|
98
|
+
file_to_node_dict = dict()
|
|
99
|
+
file_rename_dict = dict()
|
|
100
|
+
node_rename_dict = dict()
|
|
101
|
+
not_found_file_set = set()
|
|
102
|
+
for each_node in open(node_txt):
|
|
103
|
+
each_node_split = each_node.strip().split()
|
|
104
|
+
print(each_node_split)
|
|
105
|
+
file_name = each_node_split[0]
|
|
106
|
+
if '/' in file_name:
|
|
107
|
+
file_name = file_name.split('/')[-1]
|
|
108
|
+
|
|
109
|
+
if file_name not in mcmc_file_full_path_dict:
|
|
110
|
+
not_found_file_set.add(file_name)
|
|
111
|
+
|
|
112
|
+
node_id = each_node_split[1]
|
|
113
|
+
node_id_with_file_name = '%s_____%s' % (file_name, node_id)
|
|
114
|
+
|
|
115
|
+
if file_name not in file_to_node_dict:
|
|
116
|
+
file_to_node_dict[file_name] = set()
|
|
117
|
+
file_to_node_dict[file_name].add(node_id)
|
|
118
|
+
|
|
119
|
+
if len(each_node_split) >= 3:
|
|
120
|
+
file_short_name = each_node_split[2]
|
|
121
|
+
file_rename_dict[file_name] = file_short_name
|
|
122
|
+
|
|
123
|
+
if len(each_node_split) == 4:
|
|
124
|
+
node_desc = each_node_split[3]
|
|
125
|
+
node_rename_dict[node_id_with_file_name] = node_desc
|
|
126
|
+
|
|
127
|
+
# report not found files and exit
|
|
128
|
+
if len(not_found_file_set) > 0:
|
|
129
|
+
print('MCMC file not found, program exited!')
|
|
130
|
+
exit()
|
|
131
|
+
|
|
132
|
+
found_matched_node = False
|
|
133
|
+
op_df_tmp_handle = open(op_df_tmp, 'w')
|
|
134
|
+
op_df_tmp_handle.write('Value,Node,Setting\n')
|
|
135
|
+
for mcmc_file in file_to_node_dict:
|
|
136
|
+
pwd_mcmc_file = mcmc_file_full_path_dict[mcmc_file]
|
|
137
|
+
current_node_set = file_to_node_dict.get(mcmc_file, set())
|
|
138
|
+
file_name_to_plot = file_rename_dict.get(mcmc_file, mcmc_file)
|
|
139
|
+
mcmc_df = pd.read_table(pwd_mcmc_file, index_col=0)
|
|
140
|
+
for each_col in mcmc_df:
|
|
141
|
+
if each_col in current_node_set:
|
|
142
|
+
node_desc_to_plot = node_rename_dict.get(('%s_____%s' % (mcmc_file, each_col)), each_col)
|
|
143
|
+
found_matched_node = True
|
|
144
|
+
value_list = mcmc_df[each_col].values
|
|
145
|
+
for each_value in value_list:
|
|
146
|
+
op_df_tmp_handle.write('%s,%s,%s\n' % (each_value, node_desc_to_plot, file_name_to_plot))
|
|
147
|
+
op_df_tmp_handle.close()
|
|
148
|
+
|
|
149
|
+
if found_matched_node is False:
|
|
150
|
+
print('Provided node(s) not found, program exited!')
|
|
151
|
+
exit()
|
|
152
|
+
|
|
153
|
+
# plot distribution
|
|
154
|
+
plot_distribution(op_df_tmp, output_plot)
|
|
155
|
+
|
|
156
|
+
# remove tmp files
|
|
157
|
+
os.system('rm %s' % op_df_tmp)
|
|
158
|
+
|
|
159
|
+
# final report
|
|
160
|
+
print('Plot exported to %s, done!' % output_plot)
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
if __name__ == '__main__':
|
|
164
|
+
|
|
165
|
+
PlotMcmcNode_parser = argparse.ArgumentParser()
|
|
166
|
+
PlotMcmcNode_parser.add_argument('-i', required=True, help='folder holds the *mcmc.txt files')
|
|
167
|
+
PlotMcmcNode_parser.add_argument('-x', required=False, default='txt', help='file extension, default txt')
|
|
168
|
+
PlotMcmcNode_parser.add_argument('-n', required=True, help='nodes to plot')
|
|
169
|
+
PlotMcmcNode_parser.add_argument('-o', required=True, help='output plot')
|
|
170
|
+
args = vars(PlotMcmcNode_parser.parse_args())
|
|
171
|
+
PlotMcmcNode(args)
|
|
@@ -15,14 +15,16 @@ TreeSAK PlotMcmcNode -i McmcTree_op_files -n nodes.txt -o multi_runs_multi_nodes
|
|
|
15
15
|
|
|
16
16
|
# File name of the mcmc.txt and the corresponding mcmc out file need to follow
|
|
17
17
|
# the rule as specified below:
|
|
18
|
-
[
|
|
19
|
-
[
|
|
18
|
+
[setting_1]_mcmc.txt
|
|
19
|
+
[setting_1]_out.txt
|
|
20
|
+
[setting_2]_mcmc.txt
|
|
21
|
+
[setting_2]_out.txt
|
|
20
22
|
|
|
21
23
|
# file format (-n, tab separated)
|
|
22
24
|
# leave the 2nd column blank for nodes without renaming
|
|
23
|
-
node1 Bacteria
|
|
24
|
-
node2
|
|
25
|
-
node3,node9 Archaea
|
|
25
|
+
setting_1 node1 Bacteria
|
|
26
|
+
setting_2 node2
|
|
27
|
+
setting_3 node3,node9 Archaea
|
|
26
28
|
|
|
27
29
|
# Y-axis label file format (-l, tab separated)
|
|
28
30
|
PA_75_DeltaLL_50_clock3_mcmc.txt DeltaLL_50
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: TreeSAK
|
|
3
|
-
Version: 1.46.
|
|
3
|
+
Version: 1.46.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.46.
|
|
27
|
+
TreeSAK v1.46.1
|
|
@@ -350,12 +350,10 @@ if __name__ == '__main__':
|
|
|
350
350
|
elif sys.argv[1] == 'PlotMcmcNode':
|
|
351
351
|
from TreeSAK import PlotMcmcNode
|
|
352
352
|
PlotMcmcNode_parser = subparsers.add_parser('PlotMcmcNode', usage=PlotMcmcNode.PlotMcmcNode_usage)
|
|
353
|
-
PlotMcmcNode_parser.add_argument('-i',
|
|
354
|
-
PlotMcmcNode_parser.add_argument('-
|
|
355
|
-
PlotMcmcNode_parser.add_argument('-n',
|
|
356
|
-
PlotMcmcNode_parser.add_argument('-
|
|
357
|
-
PlotMcmcNode_parser.add_argument('-o', required=True, help='Output plot')
|
|
358
|
-
PlotMcmcNode_parser.add_argument('-tmp', required=False, action="store_true", help='keep tmp files')
|
|
353
|
+
PlotMcmcNode_parser.add_argument('-i', required=True, help='folder holds the *mcmc.txt files')
|
|
354
|
+
PlotMcmcNode_parser.add_argument('-x', required=False, default='txt', help='file extension, default txt')
|
|
355
|
+
PlotMcmcNode_parser.add_argument('-n', required=True, help='nodes to plot')
|
|
356
|
+
PlotMcmcNode_parser.add_argument('-o', required=True, help='output plot')
|
|
359
357
|
args = vars(parser.parse_args())
|
|
360
358
|
PlotMcmcNode.PlotMcmcNode(args)
|
|
361
359
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|