TreeSAK 1.58.1__tar.gz → 1.58.2__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 (145) hide show
  1. {treesak-1.58.1/treesak.egg-info → treesak-1.58.2}/PKG-INFO +2 -2
  2. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/VERSION +1 -1
  3. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/iTOL.py +43 -48
  4. {treesak-1.58.1 → treesak-1.58.2/treesak.egg-info}/PKG-INFO +2 -2
  5. {treesak-1.58.1 → treesak-1.58.2}/LICENSE +0 -0
  6. {treesak-1.58.1 → treesak-1.58.2}/MANIFEST.in +0 -0
  7. {treesak-1.58.1 → treesak-1.58.2}/README.md +0 -0
  8. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/ALE.py +0 -0
  9. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/ALE1.py +0 -0
  10. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/ALE2.py +0 -0
  11. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/ALE2RTC.py +0 -0
  12. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/ALE3.py +0 -0
  13. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/ALE4.py +0 -0
  14. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/ALE5.py +0 -0
  15. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/ALE6.py +0 -0
  16. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/ALE7.py +0 -0
  17. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/ALE_backup.py +0 -0
  18. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/AssessCVG.py +0 -0
  19. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/AssessMarker.py +0 -0
  20. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/AssessMarkerDeltaLL.py +0 -0
  21. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/AssessMarkerPA.py +0 -0
  22. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/BMGE.jar +0 -0
  23. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/BMGE.py +0 -0
  24. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/C60SR4.nex +0 -0
  25. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/CompareMCMC.py +0 -0
  26. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/ConcateMSA.py +0 -0
  27. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/ConvertMSA.py +0 -0
  28. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/Dir.rb +0 -0
  29. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/ExtractMarkerSeq.py +0 -0
  30. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/FastRoot.py +0 -0
  31. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/FastRoot_backup.py +0 -0
  32. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/FigTree.py +0 -0
  33. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/GTDB_tree.py +0 -0
  34. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/GeneTree.py +0 -0
  35. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/KEGG_Luo17.py +0 -0
  36. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/LcaToLeaves.py +0 -0
  37. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/MarkerRef2Tree.py +0 -0
  38. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/MarkerRef2Tree_backup.py +0 -0
  39. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/MarkerSeq2Tree.py +0 -0
  40. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/MarkerSeq2Tree_backup.py +0 -0
  41. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/ModifyTopo.py +0 -0
  42. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/Newick_tree_plotter.py +0 -0
  43. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/OMA.py +0 -0
  44. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/OMA2.py +0 -0
  45. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/OneLineAln.py +0 -0
  46. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/PB.py +0 -0
  47. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/PMSF.py +0 -0
  48. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/PhyloBiAssoc.R +0 -0
  49. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/PhyloBiAssoc.py +0 -0
  50. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/PlotMCMC.py +0 -0
  51. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/PlotMcmcNode.py +0 -0
  52. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/PlotMcmcNode_old.py +0 -0
  53. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/RootTree.py +0 -0
  54. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/RootTreeGTDB.py +0 -0
  55. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/RootTreeGTDB214.py +0 -0
  56. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/RootTreeGTDB220.py +0 -0
  57. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/SequentialDating.py +0 -0
  58. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/SingleAleHGT.py +0 -0
  59. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/SingleLinePhy.py +0 -0
  60. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/SliceMSA.py +0 -0
  61. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/SplitScore.py +0 -0
  62. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/SplitScore1.py +0 -0
  63. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/SplitScore1OMA.py +0 -0
  64. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/SplitScore2.py +0 -0
  65. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/TaxaCountStats.R +0 -0
  66. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/TaxonTree.py +0 -0
  67. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/TimeScale.py +0 -0
  68. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/TreeSAK_config.py +0 -0
  69. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/VisHPD95.R +0 -0
  70. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/VisHPD95.py +0 -0
  71. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/__init__.py +0 -0
  72. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/ale_parser.py +0 -0
  73. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/ale_splitter.py +0 -0
  74. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/alignment_pruner.pl +0 -0
  75. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/assessOG.py +0 -0
  76. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/assessPB.py +0 -0
  77. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/batch_itol.py +0 -0
  78. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/catfasta2phy.py +0 -0
  79. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/cogTree.py +0 -0
  80. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/compare_trees.R +0 -0
  81. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/compare_trees.py +0 -0
  82. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/cophyloplot.R +0 -0
  83. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/cophyloplot.py +0 -0
  84. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/dating.py +0 -0
  85. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/dating_ss.py +0 -0
  86. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/deltall.py +0 -0
  87. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/do_rrtc.rb +0 -0
  88. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/fa2phy.py +0 -0
  89. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/filter_rename_ar53.py +0 -0
  90. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/format_leaf_name.py +0 -0
  91. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/gap_stats.py +0 -0
  92. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/get_SCG_tree.py +0 -0
  93. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/get_arCOG_seq.py +0 -0
  94. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/get_lca_id.py +0 -0
  95. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/global_functions.py +0 -0
  96. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/gnm_leaves.py +0 -0
  97. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/guide_tree.py +0 -0
  98. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/iTOL_Tanglegram.py +0 -0
  99. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/iTOL_gene_tree.py +0 -0
  100. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/itol_msa_stats.py +0 -0
  101. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/keep_highest_rrtc.py +0 -0
  102. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/koTree.py +0 -0
  103. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/label_gene_tree_by_gnm.py +0 -0
  104. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/label_tree.R +0 -0
  105. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/label_tree.py +0 -0
  106. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/mad.py +0 -0
  107. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/mcmc2tree.py +0 -0
  108. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/mcmcTC copy.py +0 -0
  109. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/mcmcTC.py +0 -0
  110. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/mcmctree_out.py +0 -0
  111. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/mcmctree_vs_reltime.R +0 -0
  112. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/mcmctree_vs_reltime.py +0 -0
  113. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/merge_pdf.py +0 -0
  114. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/pRTC.py +0 -0
  115. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/parse_mcmctree.py +0 -0
  116. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/parse_reltime.py +0 -0
  117. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/phy2fa.py +0 -0
  118. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/plot_distruibution_th.py +0 -0
  119. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/prep_mcmctree_ctl.py +0 -0
  120. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/print_leaves.py +0 -0
  121. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/pruneMSA.py +0 -0
  122. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/recode.py +0 -0
  123. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/remove_bias.R +0 -0
  124. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/rename_leaves.py +0 -0
  125. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/replace_clade.py +0 -0
  126. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/rm_leaf.py +0 -0
  127. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/root_with_out_group.py +0 -0
  128. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/run_TaxaCountStats_R_s1.py +0 -0
  129. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/subsample_drep_gnms.py +0 -0
  130. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/subset.py +0 -0
  131. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/subset_tree_stupid_old_way.py +0 -0
  132. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/supertree.py +0 -0
  133. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/tmp_1.py +0 -0
  134. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/tmp_2.py +0 -0
  135. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/tmp_3.py +0 -0
  136. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/tmp_4.py +0 -0
  137. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/tree_fmt.py +0 -0
  138. {treesak-1.58.1 → treesak-1.58.2}/TreeSAK/weighted_rand.rb +0 -0
  139. {treesak-1.58.1 → treesak-1.58.2}/bin/TreeSAK +0 -0
  140. {treesak-1.58.1 → treesak-1.58.2}/setup.cfg +0 -0
  141. {treesak-1.58.1 → treesak-1.58.2}/setup.py +0 -0
  142. {treesak-1.58.1 → treesak-1.58.2}/treesak.egg-info/SOURCES.txt +0 -0
  143. {treesak-1.58.1 → treesak-1.58.2}/treesak.egg-info/dependency_links.txt +0 -0
  144. {treesak-1.58.1 → treesak-1.58.2}/treesak.egg-info/requires.txt +0 -0
  145. {treesak-1.58.1 → treesak-1.58.2}/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.58.1
3
+ Version: 1.58.2
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.58.1
27
+ TreeSAK v1.58.2
@@ -1,4 +1,4 @@
1
- 1.58.1
1
+ 1.58.2
2
2
  - fixed bugs
3
3
 
4
4
  1.58.0
@@ -92,57 +92,43 @@ def get_timescale_file(chart_ttl, time_range, time_unit, interested_rank):
92
92
  interested_rank_list = interested_rank.split(',')
93
93
  for each_rank in dod:
94
94
  if each_rank in interested_rank_list:
95
+ current_rank_dict = dod[each_rank]
96
+ items = current_rank_dict.items()
97
+ sorted_items = sorted(items, key=lambda item: item[1][0])
98
+ sorted_keys = [item[0] for item in sorted_items]
99
+
100
+ vertical_shift_index = interested_rank_list.index(each_rank)
101
+ if vertical_shift_index == 0:
102
+ vertical_shift_value_grey = (2 * vertical_shift_index) * 50
103
+ vertical_shift_value_non_grey = (2 * vertical_shift_index + 1) * 50
104
+ else:
105
+
106
+ vertical_shift_value_grey = 50 + (vertical_shift_index * 50)
107
+ vertical_shift_value_non_grey = vertical_shift_value_grey
108
+
95
109
  itol_file = './iTOL_TimeScale_%s.txt' % each_rank
96
110
  itol_file_handle = open(itol_file, 'w')
97
- itol_file_handle.write('DATASET_TIMESCALE\nSEPARATOR TAB\n')
98
- itol_file_handle.write('\n')
99
-
100
- itol_file_handle.write('# position related\n')
101
- itol_file_handle.write('POSITION_ABOVE\t0\n')
102
- vertical_shift_index = interested_rank_list.index(each_rank) + 1
103
- vertical_shift_value = vertical_shift_index * 50
104
- itol_file_handle.write('VERTICAL_SHIFT\t%s\n' % vertical_shift_value)
105
- itol_file_handle.write('AUTO_SCALE\t0\n')
106
- itol_file_handle.write('SCALING_FACTOR\t1\n')
107
- itol_file_handle.write('COVER_TREE\t0\n')
108
- itol_file_handle.write('\n')
109
-
110
- itol_file_handle.write('# dataset label related\n')
111
- itol_file_handle.write('DATASET_LABEL\t%s\n' % each_rank)
112
- itol_file_handle.write('SHOW_LABELS\t1\n')
113
- itol_file_handle.write('LABEL_POSITION\tend\n')
114
- itol_file_handle.write('LABEL_SHIFT_X\t30\n')
115
- itol_file_handle.write('LABEL_SHIFT_Y\t0\n')
116
- itol_file_handle.write('SIZE_FACTOR\t2\n')
117
- itol_file_handle.write('LABEL_ROTATION\t0\n')
118
- itol_file_handle.write('\n')
119
-
120
- itol_file_handle.write('# range label related\n')
121
- itol_file_handle.write('SHOW_RANGE_LABELS\t1\n')
122
- itol_file_handle.write('RANGE_LABEL_SIZE\t10\n')
123
- itol_file_handle.write('RANGE_LABEL_ROTATION\t0\n')
124
- itol_file_handle.write('RANGE_LABEL_POSITION\tcenter\n')
125
- itol_file_handle.write('RANGE_LABEL_SHIFT_X\t0\n')
126
- itol_file_handle.write('RANGE_LABEL_SHIFT_Y\t0\n')
127
- itol_file_handle.write('RANGE_LABEL_COLOR\t#000000\n')
128
- itol_file_handle.write('# RANGE_LABEL_AUTO_COLOR\t1\n')
129
- itol_file_handle.write('\n')
130
-
131
- itol_file_handle.write('# border related\n')
132
- itol_file_handle.write('BORDER_WIDTH\t0\n')
133
- itol_file_handle.write('BORDER_COLOR\t#000000\n')
134
- itol_file_handle.write('BORDER_DASHED\t0\n')
135
- itol_file_handle.write('\n')
136
-
137
- itol_file_handle.write('# value label related\n')
138
- itol_file_handle.write('SHOW_VALUE_LABELS\t0\n')
139
- itol_file_handle.write('VALUE_LABEL_SIZE_FACTOR\t0.5\n')
140
- itol_file_handle.write('VALUE_LABEL_ROTATION\t0\n')
141
- itol_file_handle.write('VALUE_LABEL_SHIFT\t0\n')
142
- itol_file_handle.write('\n')
111
+ itol_file_handle.write('DATASET_TIMESCALE\nSEPARATOR TAB\n\n')
143
112
 
113
+ itol_file_handle.write('# position related\nPOSITION_ABOVE\t0\nVERTICAL_SHIFT\t%s\nAUTO_SCALE\t0\nSCALING_FACTOR\t1\nCOVER_TREE\t0\n\n' % (vertical_shift_value_non_grey))
114
+ itol_file_handle.write('# dataset label related\nDATASET_LABEL\t%s\nSHOW_LABELS\t1\nLABEL_POSITION\tend\nLABEL_SHIFT_X\t30\nLABEL_SHIFT_Y\t0\nSIZE_FACTOR\t2\nLABEL_ROTATION\t0\n\n' % each_rank)
115
+ itol_file_handle.write('# range label related\nSHOW_RANGE_LABELS\t1\nRANGE_LABEL_SIZE\t10\nRANGE_LABEL_ROTATION\t0\nRANGE_LABEL_POSITION\tcenter\nRANGE_LABEL_SHIFT_X\t0\nRANGE_LABEL_SHIFT_Y\t0\nRANGE_LABEL_COLOR\t#000000\n# RANGE_LABEL_AUTO_COLOR\t1\n\n')
116
+ itol_file_handle.write('# border related\nBORDER_WIDTH\t0\nBORDER_COLOR\t#000000\nBORDER_DASHED\t0\n\n')
117
+ itol_file_handle.write('# value label related\nSHOW_VALUE_LABELS\t0\nVALUE_LABEL_SIZE_FACTOR\t0.5\nVALUE_LABEL_ROTATION\t0\nVALUE_LABEL_SHIFT\t0\n\n')
144
118
  itol_file_handle.write('\nDATA\n')
145
- for each_range in dod[each_rank]:
119
+
120
+ itol_file_grey = './iTOL_TimeScale_%s_grey.txt' % each_rank
121
+ itol_file_grey_handle = open(itol_file_grey, 'w')
122
+ itol_file_grey_handle.write('DATASET_TIMESCALE\nSEPARATOR TAB\n\n')
123
+ itol_file_grey_handle.write('# position related\nPOSITION_ABOVE\t0\nVERTICAL_SHIFT\t%s\nAUTO_SCALE\t0\nSCALING_FACTOR\t1\nCOVER_TREE\t1\n\n' % vertical_shift_value_grey)
124
+ itol_file_grey_handle.write('# dataset label related\nDATASET_LABEL\t%s_grey\nSHOW_LABELS\t0\nLABEL_POSITION\tend\nLABEL_SHIFT_X\t30\nLABEL_SHIFT_Y\t0\nSIZE_FACTOR\t2\nLABEL_ROTATION\t0\n\n' % each_rank)
125
+ itol_file_grey_handle.write('# range label related\nSHOW_RANGE_LABELS\t0\nRANGE_LABEL_SIZE\t10\nRANGE_LABEL_ROTATION\t0\nRANGE_LABEL_POSITION\tcenter\nRANGE_LABEL_SHIFT_X\t0\nRANGE_LABEL_SHIFT_Y\t0\nRANGE_LABEL_COLOR\t#000000\n# RANGE_LABEL_AUTO_COLOR\t1\n\n')
126
+ itol_file_grey_handle.write('# border related\nBORDER_WIDTH\t0\nBORDER_COLOR\t#000000\nBORDER_DASHED\t0\n\n')
127
+ itol_file_grey_handle.write('# value label related\nSHOW_VALUE_LABELS\t0\nVALUE_LABEL_SIZE_FACTOR\t0.5\nVALUE_LABEL_ROTATION\t0\nVALUE_LABEL_SHIFT\t0\n\n')
128
+ itol_file_grey_handle.write('\nDATA\n')
129
+
130
+ current_grey = '#D6D3D1' # darker:#D6D3D1 lighter: #F3F2F1
131
+ for each_range in sorted_keys:
146
132
  current_range_color = dod[each_rank][each_range][2]
147
133
  current_range_l = float(dod[each_rank][each_range][0])
148
134
  current_range_r = float(dod[each_rank][each_range][1])
@@ -174,10 +160,19 @@ def get_timescale_file(chart_ttl, time_range, time_unit, interested_rank):
174
160
  range_r_to_write = specified_time_range_r
175
161
 
176
162
  if (range_l_to_write != '') and (range_r_to_write != ''):
163
+
177
164
  itol_data_str = '%s\t%s\t\t\t%s\t%s\t%s\tnormal' % (range_l_to_write, range_r_to_write, current_range_color, current_range_color, each_range)
178
165
  itol_file_handle.write(itol_data_str + '\n')
179
- itol_file_handle.close()
180
166
 
167
+ itol_data_str_grey = '%s\t%s\t\t\t%s\t%s\t%s\tnormal' % (range_l_to_write, range_r_to_write, current_grey, current_grey, each_range)
168
+ itol_file_grey_handle.write(itol_data_str_grey + '\n')
169
+ if current_grey == '#D6D3D1':
170
+ current_grey = '#F3F2F1'
171
+ elif current_grey == '#F3F2F1':
172
+ current_grey = '#D6D3D1'
173
+
174
+ itol_file_handle.close()
175
+ itol_file_grey_handle.close()
181
176
 
182
177
  def get_color_list(color_num):
183
178
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: treesak
3
- Version: 1.58.1
3
+ Version: 1.58.2
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.58.1
27
+ TreeSAK v1.58.2
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes