TreeSAK 1.52.18__tar.gz → 1.53.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.
Files changed (136) hide show
  1. {treesak-1.52.18/treesak.egg-info → treesak-1.53.0}/PKG-INFO +2 -2
  2. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/VERSION +3 -0
  3. treesak-1.53.0/TreeSAK/batch_itol.py +149 -0
  4. {treesak-1.52.18 → treesak-1.53.0}/bin/TreeSAK +14 -0
  5. {treesak-1.52.18 → treesak-1.53.0/treesak.egg-info}/PKG-INFO +2 -2
  6. {treesak-1.52.18 → treesak-1.53.0}/treesak.egg-info/SOURCES.txt +1 -0
  7. {treesak-1.52.18 → treesak-1.53.0}/LICENSE +0 -0
  8. {treesak-1.52.18 → treesak-1.53.0}/MANIFEST.in +0 -0
  9. {treesak-1.52.18 → treesak-1.53.0}/README.md +0 -0
  10. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/ALE.py +0 -0
  11. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/ALE1.py +0 -0
  12. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/ALE2.py +0 -0
  13. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/ALE2RTC.py +0 -0
  14. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/ALE3.py +0 -0
  15. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/ALE4.py +0 -0
  16. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/ALE5.py +0 -0
  17. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/ALE6.py +0 -0
  18. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/ALE7.py +0 -0
  19. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/ALE_backup.py +0 -0
  20. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/AssessCVG.py +0 -0
  21. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/AssessMarker.py +0 -0
  22. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/AssessMarkerDeltaLL.py +0 -0
  23. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/AssessMarkerPA.py +0 -0
  24. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/AssessPB.py +0 -0
  25. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/BMGE.jar +0 -0
  26. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/BMGE.py +0 -0
  27. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/C60SR4.nex +0 -0
  28. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/CompareMCMC.py +0 -0
  29. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/ConcateMSA.py +0 -0
  30. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/ConvertMSA.py +0 -0
  31. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/Dir.rb +0 -0
  32. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/ExtractMarkerSeq.py +0 -0
  33. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/FastRoot.py +0 -0
  34. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/FastRoot_backup.py +0 -0
  35. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/FigTree.py +0 -0
  36. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/GTDB_tree.py +0 -0
  37. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/GeneTree.py +0 -0
  38. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/KEGG_Luo17.py +0 -0
  39. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/LcaToLeaves.py +0 -0
  40. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/MarkerRef2Tree.py +0 -0
  41. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/MarkerRef2Tree_backup.py +0 -0
  42. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/MarkerSeq2Tree.py +0 -0
  43. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/MarkerSeq2Tree_backup.py +0 -0
  44. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/ModifyTopo.py +0 -0
  45. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/Newick_tree_plotter.py +0 -0
  46. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/OMA.py +0 -0
  47. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/OMA2.py +0 -0
  48. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/OneLineAln.py +0 -0
  49. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/PB.py +0 -0
  50. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/PMSF.py +0 -0
  51. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/PhyloBiAssoc.R +0 -0
  52. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/PhyloBiAssoc.py +0 -0
  53. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/PlotMCMC.py +0 -0
  54. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/PlotMcmcNode.py +0 -0
  55. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/PlotMcmcNode_old.py +0 -0
  56. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/RootTree.py +0 -0
  57. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/RootTreeGTDB.py +0 -0
  58. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/RootTreeGTDB214.py +0 -0
  59. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/RootTreeGTDB220.py +0 -0
  60. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/SequentialDating.py +0 -0
  61. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/SingleAleHGT.py +0 -0
  62. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/SingleLinePhy.py +0 -0
  63. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/SliceMSA.py +0 -0
  64. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/SplitScore.py +0 -0
  65. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/SplitScore1.py +0 -0
  66. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/SplitScore1OMA.py +0 -0
  67. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/SplitScore2.py +0 -0
  68. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/TaxaCountStats.R +0 -0
  69. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/TaxonTree.py +0 -0
  70. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/TreeSAK_config.py +0 -0
  71. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/VisHPD95.R +0 -0
  72. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/VisHPD95.py +0 -0
  73. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/__init__.py +0 -0
  74. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/ale_parser.py +0 -0
  75. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/ale_splitter.py +0 -0
  76. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/alignment_pruner.pl +0 -0
  77. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/assessOG.py +0 -0
  78. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/catfasta2phy.py +0 -0
  79. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/cogTree.py +0 -0
  80. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/compare_trees.R +0 -0
  81. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/compare_trees.py +0 -0
  82. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/dating.py +0 -0
  83. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/dating_ss.py +0 -0
  84. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/deltall.py +0 -0
  85. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/do_rrtc.rb +0 -0
  86. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/fa2phy.py +0 -0
  87. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/filter_rename_ar53.py +0 -0
  88. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/format_leaf_name.py +0 -0
  89. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/gap_stats.py +0 -0
  90. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/get_SCG_tree.py +0 -0
  91. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/get_arCOG_seq.py +0 -0
  92. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/global_functions.py +0 -0
  93. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/gnm_leaves.py +0 -0
  94. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/iTOL.py +0 -0
  95. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/iTOL_gene_tree.py +0 -0
  96. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/itol_msa_stats.py +0 -0
  97. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/keep_highest_rrtc.py +0 -0
  98. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/koTree.py +0 -0
  99. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/label_gene_tree_by_gnm.py +0 -0
  100. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/label_tree.R +0 -0
  101. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/label_tree.py +0 -0
  102. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/mad.py +0 -0
  103. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/mcmc2tree.py +0 -0
  104. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/mcmcTC copy.py +0 -0
  105. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/mcmcTC.py +0 -0
  106. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/mcmctree_vs_reltime.R +0 -0
  107. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/mcmctree_vs_reltime.py +0 -0
  108. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/merge_pdf.py +0 -0
  109. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/pRTC.py +0 -0
  110. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/parse_mcmctree.py +0 -0
  111. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/parse_reltime.py +0 -0
  112. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/phy2fa.py +0 -0
  113. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/plot_distruibution_th.py +0 -0
  114. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/prep_mcmctree_ctl.py +0 -0
  115. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/print_leaves.py +0 -0
  116. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/pruneMSA.py +0 -0
  117. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/recode.py +0 -0
  118. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/remove_bias.R +0 -0
  119. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/rename_leaves.py +0 -0
  120. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/replace_clade.py +0 -0
  121. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/root_with_out_group.py +0 -0
  122. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/run_TaxaCountStats_R_s1.py +0 -0
  123. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/subsample_drep_gnms.py +0 -0
  124. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/subset.py +0 -0
  125. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/subset_tree_stupid_old_way.py +0 -0
  126. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/supertree.py +0 -0
  127. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/tmp_1.py +0 -0
  128. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/tmp_2.py +0 -0
  129. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/tmp_3.py +0 -0
  130. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/tmp_4.py +0 -0
  131. {treesak-1.52.18 → treesak-1.53.0}/TreeSAK/weighted_rand.rb +0 -0
  132. {treesak-1.52.18 → treesak-1.53.0}/setup.cfg +0 -0
  133. {treesak-1.52.18 → treesak-1.53.0}/setup.py +0 -0
  134. {treesak-1.52.18 → treesak-1.53.0}/treesak.egg-info/dependency_links.txt +0 -0
  135. {treesak-1.52.18 → treesak-1.53.0}/treesak.egg-info/requires.txt +0 -0
  136. {treesak-1.52.18 → treesak-1.53.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.52.18
3
+ Version: 1.53.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.52.18
27
+ TreeSAK v1.53.0
@@ -1,3 +1,6 @@
1
+ 1.53.0
2
+ - new module added: batch_itol
3
+
1
4
  1.52.18
2
5
  - fixed bugs
3
6
 
@@ -0,0 +1,149 @@
1
+ import os
2
+ import glob
3
+ import argparse
4
+ from itolapi import Itol
5
+
6
+
7
+ batch_itol_usage = '''
8
+ ======================================= batch_itol example commands =======================================
9
+
10
+ BioSAK batch_itol -a annotation_dir -api API_key -project batch_access_tmp -i input.tree -o out.pdf
11
+ BioSAK batch_itol -a annotation_dir -api API_key -project batch_access_tmp -i tree_dir -x tree -o out_pdf
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 itol_single_tree(tree_file, annotation_files_txt, project_name, APIkey, op_plot):
28
+
29
+ annotation_file_list = []
30
+ for each_file in open(annotation_files_txt):
31
+ annotation_file_list.append(each_file.strip())
32
+
33
+ # https://github.com/albertyw/itolapi
34
+ # http://itol.embl.de/help.cgi#batch
35
+
36
+ op_plot_ext = op_plot.split('.')[-1]
37
+
38
+ # upload tree to iTOL
39
+ itol_uploader = Itol()
40
+ itol_uploader.params['projectName'] = project_name # better to create a project with a unique name.
41
+ itol_uploader.params['APIkey'] = APIkey # sine we are the same account, we can use the same APIkey
42
+ itol_uploader.params['treeName'] = tree_file
43
+ itol_uploader.add_file(tree_file)
44
+
45
+ # upload annotation files to iTOL
46
+ for annotation_file in annotation_file_list:
47
+ itol_uploader.add_file(annotation_file)
48
+
49
+ status = itol_uploader.upload()
50
+ # import pdb;pdb.set_trace()
51
+ assert status != False
52
+
53
+ # the following parameters are optional, refer to https://itol.embl.de/help.cgi#batchExp
54
+ if len(annotation_file_list) == 1:
55
+ datasets_visible_str = '0'
56
+ elif len(annotation_file_list) == 2:
57
+ datasets_visible_str = '0,1'
58
+ elif len(annotation_file_list) == 3:
59
+ datasets_visible_str = '0,1,2'
60
+ else:
61
+ datasets_visible_str = ','.join([str(i) for i in list(range(0, len(annotation_file_list)))])
62
+
63
+ # for a full list of options, go to https://itol.embl.de/help.cgi#batchExp
64
+ itol_exporter = itol_uploader.get_itol_export()
65
+ itol_exporter.set_export_param_value('internal_scale', '0')
66
+ itol_exporter.set_export_param_value('datasets_visible', datasets_visible_str)
67
+ itol_exporter.set_export_param_value('display_mode', '1')
68
+ itol_exporter.set_export_param_value('range_mode', '2')
69
+ itol_exporter.set_export_param_value('vertical_shift_factor', '1')
70
+ itol_exporter.set_export_param_value('horizontal_scale_factor', '0.9')
71
+
72
+ # range
73
+ itol_exporter.set_export_param_value('range_mode', '2') # Possible values: 0,1 or 2 (0=off, 1=cover labels only, 2=cover full clades)
74
+ itol_exporter.set_export_param_value('include_ranges_legend', '0')
75
+ itol_exporter.set_export_param_value('ranges_legend_title', 'to be added')
76
+
77
+ # label
78
+ # itol_exporter.set_export_param_value('current_font_size', '12') # the default looks good
79
+ itol_exporter.set_export_param_value('current_font_name', 'Courier')
80
+ itol_exporter.set_export_param_value('default_label_color', '#000000')
81
+
82
+ # branch
83
+ itol_exporter.set_export_param_value('line_width', '2')
84
+ itol_exporter.set_export_param_value('dashed_lines', '1')
85
+ itol_exporter.set_export_param_value('default_branch_color', '#000000')
86
+
87
+ # bootstrap
88
+ itol_exporter.set_export_param_value('metadata_source', 'bootstrap') # Which metadata source to use for bootstrap display options
89
+ itol_exporter.set_export_param_value('bootstrap_display', '1') # possible values: 0 or 1
90
+ itol_exporter.set_export_param_value('bootstrap_type', '2') # Possible values: 1, 2, 3 or 4 (1=Symbol, 2=Text label, 3=Branch color and 4=Branch width)
91
+ itol_exporter.set_export_param_value('bootstrap_label_size', '15') # in pixels, integer >= 9
92
+ itol_exporter.set_export_param_value('bootstrap_label_percent_factor', '10') # in pixels, integer >= 9
93
+
94
+ # write out
95
+ itol_exporter.set_export_param_value('format', op_plot_ext)
96
+ itol_exporter.export(op_plot)
97
+
98
+
99
+ def batch_itol(args):
100
+
101
+ tree_file_dir = args['i']
102
+ tree_file_ext = args['x']
103
+ annotation_files_txt = args['a']
104
+ op_file_dir = args['o']
105
+ force_overwrite = args['f']
106
+ API_key = args['api']
107
+ project_name = args['project']
108
+
109
+ if os.path.isfile(tree_file_dir) is True:
110
+ itol_single_tree(tree_file_dir, annotation_files_txt, project_name, API_key, op_file_dir)
111
+ elif os.path.isdir(tree_file_dir) is True:
112
+ file_re = '%s/*.%s' % (tree_file_dir, tree_file_ext)
113
+ file_list = glob.glob(file_re)
114
+
115
+ if len(file_list) == 0:
116
+ print('no file found in %s, please check file extension, program exited!' % tree_file_dir)
117
+ exit()
118
+
119
+ # create output folder
120
+ if os.path.isdir(op_file_dir) is True:
121
+ if force_overwrite is True:
122
+ os.system('rm -r %s' % op_file_dir)
123
+ else:
124
+ print('Output folder detected, program exited!')
125
+ exit()
126
+ os.system('mkdir %s' % op_file_dir)
127
+
128
+ for each_file in file_list:
129
+ f_name, f_path, f_base, f_ext = sep_path_basename_ext(each_file)
130
+ op_pdf = '%s/%s.pdf' % (op_file_dir, f_base)
131
+
132
+ itol_single_tree(each_file, annotation_files_txt, project_name, API_key, op_pdf)
133
+ else:
134
+ print('please provide input file with -i, program exited!')
135
+ exit()
136
+
137
+
138
+ if __name__ == '__main__':
139
+
140
+ batch_itol_parser = argparse.ArgumentParser(usage=batch_itol_usage)
141
+ batch_itol_parser.add_argument('-i', required=True, help='input tree file or folder')
142
+ batch_itol_parser.add_argument('-x', required=False, default=None, help='file extension')
143
+ batch_itol_parser.add_argument('-a', required=False, default=None, help='a txt file contain absolute to all annotation files')
144
+ batch_itol_parser.add_argument('-o', required=True, help='output file or folder')
145
+ batch_itol_parser.add_argument('-api', required=True, help='iTOL API key')
146
+ batch_itol_parser.add_argument('-project', required=False, default='batch_access_tmp', help='iTOL project name, default: batch_access_tmp')
147
+ batch_itol_parser.add_argument('-f', required=False, action="store_true", help='force overwrite')
148
+ args = vars(batch_itol_parser.parse_args())
149
+ batch_itol(args)
@@ -59,6 +59,7 @@ def print_main_help():
59
59
 
60
60
  Tree-related
61
61
  iTOL -> Prepare iTOL files
62
+ batch_itol -> Batch access iTOL
62
63
  iTOL_gene_tree -> Genome metadata to gene metadata
63
64
  iTOL_msa_stats -> iTOL_msa_stats
64
65
  PB -> Infer tree with PhyloBayes-MPI
@@ -921,6 +922,19 @@ if __name__ == '__main__':
921
922
  args = vars(parser.parse_args())
922
923
  filter_rename_ar53.filter_rename_ar53(args)
923
924
 
925
+ elif sys.argv[1] == 'batch_itol':
926
+ from TreeSAK import batch_itol
927
+ batch_itol_parser = subparsers.add_parser('batch_itol', usage=batch_itol.batch_itol_usage)
928
+ batch_itol_parser.add_argument('-i', required=True, help='input tree file or folder')
929
+ batch_itol_parser.add_argument('-x', required=False, default=None, help='file extension')
930
+ batch_itol_parser.add_argument('-a', required=False, default=None, help='a txt file contain absolute to all annotation files')
931
+ batch_itol_parser.add_argument('-o', required=True, help='output file or folder')
932
+ batch_itol_parser.add_argument('-api', required=True, help='iTOL API key')
933
+ batch_itol_parser.add_argument('-project', required=False, default='batch_access_tmp', help='iTOL project name, default: batch_access_tmp')
934
+ batch_itol_parser.add_argument('-f', required=False, action="store_true", help='force overwrite')
935
+ args = vars(parser.parse_args())
936
+ batch_itol.batch_itol(args)
937
+
924
938
  else:
925
939
  print('Unrecognized module: %s, program exited!' % sys.argv[1])
926
940
  exit()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: treesak
3
- Version: 1.52.18
3
+ Version: 1.53.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.52.18
27
+ TreeSAK v1.53.0
@@ -71,6 +71,7 @@ TreeSAK/ale_parser.py
71
71
  TreeSAK/ale_splitter.py
72
72
  TreeSAK/alignment_pruner.pl
73
73
  TreeSAK/assessOG.py
74
+ TreeSAK/batch_itol.py
74
75
  TreeSAK/catfasta2phy.py
75
76
  TreeSAK/cogTree.py
76
77
  TreeSAK/compare_trees.R
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes