TreeSAK 1.53.7__tar.gz → 1.53.9__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.53.7/treesak.egg-info → treesak-1.53.9}/PKG-INFO +2 -2
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/PB.py +7 -7
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/VERSION +1 -1
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/iTOL.py +34 -28
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/print_leaves.py +4 -1
- {treesak-1.53.7 → treesak-1.53.9}/bin/TreeSAK +4 -2
- {treesak-1.53.7 → treesak-1.53.9/treesak.egg-info}/PKG-INFO +2 -2
- {treesak-1.53.7 → treesak-1.53.9}/LICENSE +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/MANIFEST.in +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/README.md +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/ALE.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/ALE1.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/ALE2.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/ALE2RTC.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/ALE3.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/ALE4.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/ALE5.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/ALE6.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/ALE7.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/ALE_backup.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/AssessCVG.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/AssessMarker.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/AssessMarkerDeltaLL.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/AssessMarkerPA.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/AssessPB.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/BMGE.jar +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/BMGE.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/C60SR4.nex +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/CompareMCMC.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/ConcateMSA.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/ConvertMSA.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/Dir.rb +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/ExtractMarkerSeq.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/FastRoot.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/FastRoot_backup.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/FigTree.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/GTDB_tree.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/GeneTree.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/KEGG_Luo17.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/LcaToLeaves.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/MarkerRef2Tree.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/MarkerRef2Tree_backup.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/MarkerSeq2Tree.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/MarkerSeq2Tree_backup.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/ModifyTopo.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/Newick_tree_plotter.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/OMA.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/OMA2.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/OneLineAln.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/PMSF.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/PhyloBiAssoc.R +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/PhyloBiAssoc.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/PlotMCMC.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/PlotMcmcNode.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/PlotMcmcNode_old.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/RootTree.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/RootTreeGTDB.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/RootTreeGTDB214.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/RootTreeGTDB220.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/SequentialDating.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/SingleAleHGT.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/SingleLinePhy.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/SliceMSA.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/SplitScore.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/SplitScore1.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/SplitScore1OMA.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/SplitScore2.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/TaxaCountStats.R +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/TaxonTree.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/TreeSAK_config.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/VisHPD95.R +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/VisHPD95.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/__init__.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/ale_parser.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/ale_splitter.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/alignment_pruner.pl +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/assessOG.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/batch_itol.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/catfasta2phy.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/cogTree.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/compare_trees.R +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/compare_trees.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/dating.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/dating_ss.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/deltall.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/do_rrtc.rb +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/fa2phy.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/filter_rename_ar53.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/format_leaf_name.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/gap_stats.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/get_SCG_tree.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/get_arCOG_seq.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/global_functions.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/gnm_leaves.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/iTOL_gene_tree.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/itol_msa_stats.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/keep_highest_rrtc.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/koTree.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/label_gene_tree_by_gnm.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/label_tree.R +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/label_tree.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/mad.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/mcmc2tree.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/mcmcTC copy.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/mcmcTC.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/mcmctree_vs_reltime.R +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/mcmctree_vs_reltime.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/merge_pdf.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/pRTC.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/parse_mcmctree.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/parse_reltime.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/phy2fa.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/plot_distruibution_th.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/prep_mcmctree_ctl.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/pruneMSA.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/recode.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/remove_bias.R +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/rename_leaves.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/replace_clade.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/root_with_out_group.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/run_TaxaCountStats_R_s1.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/subsample_drep_gnms.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/subset.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/subset_tree_stupid_old_way.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/supertree.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/tmp_1.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/tmp_2.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/tmp_3.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/tmp_4.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/tmp_5.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/TreeSAK/weighted_rand.rb +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/setup.cfg +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/setup.py +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/treesak.egg-info/SOURCES.txt +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/treesak.egg-info/dependency_links.txt +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/treesak.egg-info/requires.txt +0 -0
- {treesak-1.53.7 → treesak-1.53.9}/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.53.
|
|
3
|
+
Version: 1.53.9
|
|
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.53.
|
|
27
|
+
TreeSAK v1.53.9
|
|
@@ -83,7 +83,7 @@ def PB(args):
|
|
|
83
83
|
settings_dombrowski = '-cat -gtr -x 10 -1 -dgam 4'
|
|
84
84
|
setting_to_use = settings_dombrowski
|
|
85
85
|
msa_in_plp = '%s/%s.phylip' % (op_dir, msa_in_base)
|
|
86
|
-
cmd_txt = '%s
|
|
86
|
+
cmd_txt = '%s/pb_cmds.txt' % op_dir
|
|
87
87
|
|
|
88
88
|
####################################################################################################################
|
|
89
89
|
|
|
@@ -102,18 +102,18 @@ def PB(args):
|
|
|
102
102
|
fa2phy(msa_in, msa_in_plp)
|
|
103
103
|
msa_to_use = msa_in_plp
|
|
104
104
|
|
|
105
|
+
msa_to_use_filename, _, _, _ = sep_path_basename_ext(msa_to_use)
|
|
106
|
+
|
|
105
107
|
chain_name_list = []
|
|
106
108
|
pb_mpi_cmd_list = []
|
|
107
109
|
if num_of_chains == 1:
|
|
108
|
-
pb_mpi_cmd = 'export OMPI_MCA_btl=^openib; mpirun -np %s pb_mpi -d %s %s -s %s
|
|
109
|
-
chain_name_list.append('%s
|
|
110
|
+
pb_mpi_cmd = 'export OMPI_MCA_btl=^openib; mpirun -np %s pb_mpi -d %s %s -s %s' % (num_of_threads, msa_to_use_filename, setting_to_use, op_prefix)
|
|
111
|
+
chain_name_list.append('%s' % op_prefix)
|
|
110
112
|
pb_mpi_cmd_list.append(pb_mpi_cmd)
|
|
111
113
|
else:
|
|
112
114
|
for chain_index in range(1, (num_of_chains + 1)):
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
pb_mpi_cmd = 'export OMPI_MCA_btl=^openib; mpirun -np %s pb_mpi -d %s %s -s %s/%s_chain%s' % (num_of_threads, msa_to_use, setting_to_use, current_wd, op_prefix, chain_index)
|
|
116
|
-
chain_name_list.append('%s/%s_chain%s' % (current_wd, op_prefix, chain_index))
|
|
115
|
+
pb_mpi_cmd = 'export OMPI_MCA_btl=^openib; mpirun -np %s pb_mpi -d %s %s -s %s_chain%s' % (num_of_threads, msa_to_use_filename, setting_to_use, op_prefix, chain_index)
|
|
116
|
+
chain_name_list.append('%s_chain%s' % (op_prefix, chain_index))
|
|
117
117
|
pb_mpi_cmd_list.append(pb_mpi_cmd)
|
|
118
118
|
|
|
119
119
|
# write out commands
|
|
@@ -144,15 +144,15 @@ def iTOL(args):
|
|
|
144
144
|
LeafMatrix = args['lm']
|
|
145
145
|
d2r = args['dr']
|
|
146
146
|
scale_str = args['scale']
|
|
147
|
-
|
|
147
|
+
hide_color_strip_legend = args['hide_legend']
|
|
148
|
+
show_strip_labels = args['show_label']
|
|
148
149
|
LegendTitle = args['lt']
|
|
149
|
-
show_strip_labels = args['show_strip_labels']
|
|
150
150
|
FileOut = args['o']
|
|
151
151
|
BinaryShape = args['BinaryShape']
|
|
152
152
|
BinaryColor = args['BinaryColor']
|
|
153
|
+
STRIP_WIDTH = args['strip_width']
|
|
153
154
|
|
|
154
155
|
# General
|
|
155
|
-
STRIP_WIDTH = 100
|
|
156
156
|
MARGIN = 20
|
|
157
157
|
branch_width = 2
|
|
158
158
|
|
|
@@ -288,36 +288,31 @@ def iTOL(args):
|
|
|
288
288
|
FileOut_handle.write('STRIP_WIDTH\t%s\n' % STRIP_WIDTH)
|
|
289
289
|
FileOut_handle.write('MARGIN\t%s\n' % MARGIN)
|
|
290
290
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
else:
|
|
296
|
-
FileOut_handle.write('SHOW_STRIP_LABELS\t0\n')
|
|
291
|
+
# STRIP_LABELS setting
|
|
292
|
+
if show_strip_labels is True:
|
|
293
|
+
FileOut_handle.write('\n# customize labels on the strip\n')
|
|
294
|
+
FileOut_handle.write('SHOW_STRIP_LABELS\t1\n')
|
|
297
295
|
FileOut_handle.write('STRIP_LABEL_POSITION\tcenter\n')
|
|
298
296
|
FileOut_handle.write('STRIP_LABEL_ROTATION\t90\n')
|
|
299
297
|
else:
|
|
300
298
|
FileOut_handle.write('\n# uncomment to show labels on the trip\n')
|
|
301
|
-
|
|
302
|
-
FileOut_handle.write('# SHOW_STRIP_LABELS\t1\n')
|
|
303
|
-
else:
|
|
304
|
-
FileOut_handle.write('# SHOW_STRIP_LABELS\t0\n')
|
|
299
|
+
FileOut_handle.write('# SHOW_STRIP_LABELS\t1\n')
|
|
305
300
|
FileOut_handle.write('# STRIP_LABEL_POSITION\tcenter\n')
|
|
306
301
|
FileOut_handle.write('# STRIP_LABEL_ROTATION\t90\n')
|
|
307
302
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
303
|
+
# write out legend info
|
|
304
|
+
if hide_color_strip_legend is False:
|
|
305
|
+
FileOut_handle.write('\n# customize legend\n')
|
|
306
|
+
FileOut_handle.write('LEGEND_TITLE\t%s\n' % LegendTitle)
|
|
307
|
+
FileOut_handle.write('LEGEND_SHAPES\t%s\n' % '\t'.join(['1' for i in Group_to_Color_dict]))
|
|
308
|
+
FileOut_handle.write('LEGEND_COLORS\t%s\n' % '\t'.join(color_list))
|
|
309
|
+
FileOut_handle.write('LEGEND_LABELS\t%s\n' % '\t'.join(group_list))
|
|
310
|
+
else:
|
|
311
|
+
FileOut_handle.write('\n# uncomment this section if you want to show the legend\n')
|
|
312
|
+
FileOut_handle.write('# LEGEND_TITLE\t%s\n' % LegendTitle)
|
|
313
|
+
FileOut_handle.write('# LEGEND_SHAPES\t%s\n' % '\t'.join(['1' for i in Group_to_Color_dict]))
|
|
314
|
+
FileOut_handle.write('# LEGEND_COLORS\t%s\n' % '\t'.join(color_list))
|
|
315
|
+
FileOut_handle.write('# LEGEND_LABELS\t%s\n' % '\t'.join(group_list))
|
|
321
316
|
|
|
322
317
|
FileOut_handle.write('\n# provide data here\nDATA\n')
|
|
323
318
|
for leaf in Leaf_to_Group_dict:
|
|
@@ -784,8 +779,19 @@ if __name__ == '__main__':
|
|
|
784
779
|
iTOL_parser.add_argument('-dr', required=False, default=None, help='Donor to Recipient')
|
|
785
780
|
iTOL_parser.add_argument('-scale', required=False, default=None, help='Scale Values, in format 0-3-6-9')
|
|
786
781
|
iTOL_parser.add_argument('-lt', required=False, default=None, help='Legend Title')
|
|
787
|
-
iTOL_parser.add_argument('-
|
|
788
|
-
iTOL_parser.add_argument('-
|
|
782
|
+
iTOL_parser.add_argument('-hide_legend', required=False, action='store_true', help='hide legend for ColorStrip')
|
|
783
|
+
iTOL_parser.add_argument('-show_label', required=False, action='store_true', help='show label on ColorStrip')
|
|
784
|
+
iTOL_parser.add_argument('-strip_width', required=False, default=100, help='width of ColorStrip, default is 100')
|
|
789
785
|
iTOL_parser.add_argument('-o', required=True, help='Output filename')
|
|
790
786
|
args = vars(iTOL_parser.parse_args())
|
|
791
787
|
iTOL(args)
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
'''
|
|
791
|
+
|
|
792
|
+
python3 /Users/songweizhi/PycharmProjects/TreeSAK/TreeSAK/iTOL.py -ColorStrip -strip_width 300 -hide_legend -show_label -lg /Users/songweizhi/Desktop/Sponge_r226/00_metadata/iTOL_2284/tmp/gnm_habitat_2.txt -gc /Users/songweizhi/Desktop/Sponge_r226/00_metadata/color_code_habitat.txt -lt habitat_2 -o /Users/songweizhi/Desktop/Sponge_r226/00_metadata/iTOL_2284/iTOL_habitat_2.txt
|
|
793
|
+
python3 /Users/songweizhi/PycharmProjects/TreeSAK/TreeSAK/iTOL.py -ColorStrip -strip_width 180 -hide_legend -show_label -lg /Users/songweizhi/Desktop/Sponge_r226/00_metadata/iTOL_2284/tmp/gnm_habitat_2.txt -gc /Users/songweizhi/Desktop/Sponge_r226/00_metadata/color_code_habitat.txt -lt habitat_2 -o /Users/songweizhi/Desktop/Sponge_r226/00_metadata/iTOL_2284/iTOL_habitat_2.txt
|
|
794
|
+
python3 /Users/songweizhi/PycharmProjects/TreeSAK/TreeSAK/iTOL.py -ColorStrip -strip_width 180 -hide_legend -show_label -lg /Users/songweizhi/Desktop/Sponge_r226/00_metadata/iTOL_2284/tmp/gnm_habitat_2.txt -gc /Users/songweizhi/Desktop/Sponge_r226/00_metadata/color_code_habitat.txt -lt habitat_2 -o /Users/songweizhi/Desktop/Sponge_r226/00_metadata/iTOL_2284/iTOL_habitat_2.txt
|
|
795
|
+
python3 /Users/songweizhi/PycharmProjects/TreeSAK/TreeSAK/iTOL.py -ColorStrip -strip_width 180 -hide_legend -show_label -lg /Users/songweizhi/Desktop/Sponge_r226/00_metadata/iTOL_2284/tmp/gnm_habitat_2.txt -gc /Users/songweizhi/Desktop/Sponge_r226/00_metadata/color_code_habitat.txt -lt habitat_2 -o /Users/songweizhi/Desktop/Sponge_r226/00_metadata/iTOL_2284/iTOL_habitat_2.txt
|
|
796
|
+
|
|
797
|
+
'''
|
|
@@ -14,13 +14,15 @@ TreeSAK print_leaves -i in.tree
|
|
|
14
14
|
def print_leaves(args):
|
|
15
15
|
|
|
16
16
|
tree_file_in = args['i']
|
|
17
|
+
op_txt = args['o']
|
|
17
18
|
|
|
18
19
|
leaf_list = []
|
|
19
20
|
for leaf in Tree(tree_file_in, format=1):
|
|
20
21
|
leaf_name = leaf.name
|
|
21
22
|
leaf_list.append(leaf_name)
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
with open(op_txt, 'w') as f:
|
|
25
|
+
f.write('\n'.join(sorted(leaf_list)))
|
|
24
26
|
|
|
25
27
|
|
|
26
28
|
if __name__ == '__main__':
|
|
@@ -28,5 +30,6 @@ if __name__ == '__main__':
|
|
|
28
30
|
# initialize the options parser
|
|
29
31
|
parser = argparse.ArgumentParser()
|
|
30
32
|
parser.add_argument('-i', required=True, help='input tree file')
|
|
33
|
+
parser.add_argument('-o', required=True, help='output text file')
|
|
31
34
|
args = vars(parser.parse_args())
|
|
32
35
|
print_leaves(args)
|
|
@@ -335,6 +335,7 @@ if __name__ == '__main__':
|
|
|
335
335
|
from TreeSAK import print_leaves
|
|
336
336
|
print_leaves_parser = subparsers.add_parser('print_leaves', usage=print_leaves.print_leaves_usage)
|
|
337
337
|
print_leaves_parser.add_argument('-i', required=True, help='input tree file')
|
|
338
|
+
print_leaves_parser.add_argument('-o', required=True, help='output text file')
|
|
338
339
|
args = vars(parser.parse_args())
|
|
339
340
|
print_leaves.print_leaves(args)
|
|
340
341
|
|
|
@@ -785,8 +786,9 @@ if __name__ == '__main__':
|
|
|
785
786
|
iTOL_parser.add_argument('-dr', required=False, default=None, help='Donor to Recipient')
|
|
786
787
|
iTOL_parser.add_argument('-scale', required=False, default=None, help='Scale Values, in format 0-3-6-9')
|
|
787
788
|
iTOL_parser.add_argument('-lt', required=False, default=None, help='Legend Title')
|
|
788
|
-
iTOL_parser.add_argument('-
|
|
789
|
-
iTOL_parser.add_argument('-
|
|
789
|
+
iTOL_parser.add_argument('-hide_legend', required=False, action='store_true', help='hide legend for ColorStrip')
|
|
790
|
+
iTOL_parser.add_argument('-show_label', required=False, action='store_true', help='show label on ColorStrip')
|
|
791
|
+
iTOL_parser.add_argument('-strip_width', required=False, default=100, help='width of ColorStrip, default is 100')
|
|
790
792
|
iTOL_parser.add_argument('-o', required=True, help='Output filename')
|
|
791
793
|
args = vars(parser.parse_args())
|
|
792
794
|
iTOL.iTOL(args)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: treesak
|
|
3
|
-
Version: 1.53.
|
|
3
|
+
Version: 1.53.9
|
|
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.53.
|
|
27
|
+
TreeSAK v1.53.9
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|