TreeSAK 1.44.0__tar.gz → 1.45.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.
Files changed (113) hide show
  1. {TreeSAK-1.44.0/TreeSAK.egg-info → TreeSAK-1.45.1}/PKG-INFO +2 -2
  2. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/FunTree.py +14 -8
  3. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/VERSION +6 -3
  4. TreeSAK-1.45.1/TreeSAK/gnm_leaves.py +43 -0
  5. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/iTOL.py +1 -0
  6. TreeSAK-1.45.1/TreeSAK/iTOL_gene_tree.py +74 -0
  7. {TreeSAK-1.44.0 → TreeSAK-1.45.1/TreeSAK.egg-info}/PKG-INFO +2 -2
  8. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK.egg-info/SOURCES.txt +2 -0
  9. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/bin/TreeSAK +11 -0
  10. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/LICENSE +0 -0
  11. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/MANIFEST.in +0 -0
  12. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/README.md +0 -0
  13. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/ALE.py +0 -0
  14. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/ALE1.py +0 -0
  15. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/ALE2.py +0 -0
  16. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/ALE2RTC.py +0 -0
  17. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/ALE3.py +0 -0
  18. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/ALE4.py +0 -0
  19. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/ALE5.py +0 -0
  20. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/ALE6.py +0 -0
  21. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/ALE7.py +0 -0
  22. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/ALE_backup.py +0 -0
  23. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/AssessCVG.py +0 -0
  24. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/AssessMarker.py +0 -0
  25. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/AssessMarkerDeltaLL.py +0 -0
  26. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/AssessMarkerPA.py +0 -0
  27. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/AssessPB.py +0 -0
  28. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/BMGE.jar +0 -0
  29. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/BMGE.py +0 -0
  30. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/CompareMCMC.py +0 -0
  31. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/ConcateMSA.py +0 -0
  32. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/ConvertMSA.py +0 -0
  33. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/Dir.rb +0 -0
  34. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/ExtractMarkerSeq.py +0 -0
  35. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/FastRoot.py +0 -0
  36. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/FastRoot_backup.py +0 -0
  37. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/GTDB_tree.py +0 -0
  38. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/KEGG_Luo17.py +0 -0
  39. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/LcaToLeaves.py +0 -0
  40. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/MarkerRef2Tree.py +0 -0
  41. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/MarkerRef2Tree_backup.py +0 -0
  42. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/MarkerSeq2Tree.py +0 -0
  43. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/ModifyTopo.py +0 -0
  44. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/Newick_tree_plotter.py +0 -0
  45. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/OMA.py +0 -0
  46. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/OMA2.py +0 -0
  47. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/OneLineAln.py +0 -0
  48. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/PB.py +0 -0
  49. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/PMSF.py +0 -0
  50. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/PhyloBiAssoc.R +0 -0
  51. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/PhyloBiAssoc.py +0 -0
  52. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/PlotMCMC.py +0 -0
  53. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/PlotMcmcNode.py +0 -0
  54. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/RootTree.py +0 -0
  55. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/RootTreeGTDB214.py +0 -0
  56. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/RootTreeGTDB220.py +0 -0
  57. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/SequentialDating.py +0 -0
  58. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/SingleAleHGT.py +0 -0
  59. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/SingleLinePhy.py +0 -0
  60. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/SliceMSA.py +0 -0
  61. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/SplitScore.py +0 -0
  62. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/SplitScore1.py +0 -0
  63. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/SplitScore1OMA.py +0 -0
  64. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/SplitScore2.py +0 -0
  65. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/TaxaCountStats.R +0 -0
  66. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/TaxonTree.py +0 -0
  67. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/TreeSAK_config.py +0 -0
  68. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/VisHPD95.R +0 -0
  69. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/VisHPD95.py +0 -0
  70. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/__init__.py +0 -0
  71. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/ale_parser.py +0 -0
  72. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/ale_splitter.py +0 -0
  73. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/alignment_pruner.pl +0 -0
  74. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/catfasta2phy.py +0 -0
  75. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/compare_trees.R +0 -0
  76. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/compare_trees.py +0 -0
  77. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/dating.py +0 -0
  78. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/dating_ss.py +0 -0
  79. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/deltall.py +0 -0
  80. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/do_rrtc.rb +0 -0
  81. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/fa2phy.py +0 -0
  82. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/format_leaf_name.py +0 -0
  83. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/gap_stats.py +0 -0
  84. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/get_SCG_tree.py +0 -0
  85. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/get_arCOG_seq.py +0 -0
  86. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/global_functions.py +0 -0
  87. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/keep_highest_rrtc.py +0 -0
  88. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/label_tree.R +0 -0
  89. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/label_tree.py +0 -0
  90. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/mad.py +0 -0
  91. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/mcmc2tree.py +0 -0
  92. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/mcmcTC.py +0 -0
  93. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/merge_pdf.py +0 -0
  94. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/pRTC.py +0 -0
  95. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/plot_distruibution_th.py +0 -0
  96. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/prep_mcmctree_ctl.py +0 -0
  97. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/print_leaves.py +0 -0
  98. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/pruneMSA.py +0 -0
  99. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/recode.py +0 -0
  100. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/rename_leaves.py +0 -0
  101. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/replace_clade.py +0 -0
  102. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/root_with_out_group.py +0 -0
  103. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/run_TaxaCountStats_R_s1.py +0 -0
  104. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/subsample_drep_gnms.py +0 -0
  105. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/subset.py +0 -0
  106. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/subset_tree_stupid_old_way.py +0 -0
  107. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/supertree.py +0 -0
  108. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK/weighted_rand.rb +0 -0
  109. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK.egg-info/dependency_links.txt +0 -0
  110. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK.egg-info/requires.txt +0 -0
  111. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/TreeSAK.egg-info/top_level.txt +0 -0
  112. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/setup.cfg +0 -0
  113. {TreeSAK-1.44.0 → TreeSAK-1.45.1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TreeSAK
3
- Version: 1.44.0
3
+ Version: 1.45.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.44.0
27
+ TreeSAK v1.45.1
@@ -6,16 +6,13 @@ import multiprocessing as mp
6
6
 
7
7
 
8
8
  FunTree_usage = '''
9
- ====================== FunTree example commands ======================
9
+ ================================ FunTree example commands ================================
10
10
 
11
- TreeSAK FunTree -i combined.faa -fun K01995,K01996,K01997,K01998,K01999 -kegg KEGG_wd -o interested_fun_seq_dir -bmge -t 12 -f
11
+ TreeSAK FunTree -i combined.faa -kegg KEGG_wd -o op_dir -bmge -t 12 -f -fun ko.txt
12
+ TreeSAK FunTree -i combined.faa -kegg KEGG_wd -o op_dir -bmge -t 12 -f -fun K01995
13
+ TreeSAK FunTree -i combined.faa -kegg KEGG_wd -o op_dir -bmge -t 12 -f -fun K01995,K01996
12
14
 
13
- cd /scratch/PI/ocessongwz/Sponge_r220/4_OMA_wd/OMA_wd/Output
14
- python3 FunTree.py -i /scratch/PI/ocessongwz/Sponge_r220/3_combined_genomes_50_5_dRep97_291.faa -fun K01995,K01996,K01997,K01998,K01999 -kegg /scratch/PI/ocessongwz/Sponge_r220/3_combined_genomes_50_5_dRep97_291_KEGG_wd -o interested_fun_tree_branched_chain_aa_transport_system -bmge -t 12 -f
15
-
16
- /scratch/PI/ocessongwz/Sponge_r220/3_combined_genomes_50_5_dRep97_291_arCOG_wd
17
-
18
- ======================================================================
15
+ ==========================================================================================
19
16
  '''
20
17
 
21
18
 
@@ -189,3 +186,12 @@ if __name__ == '__main__':
189
186
  FunTree_parser.add_argument('-t', required=False, type=int, default=1, help='num of threads, default: 1')
190
187
  args = vars(FunTree_parser.parse_args())
191
188
  FunTree(args)
189
+
190
+ '''
191
+
192
+ cd /scratch/PI/ocessongwz/Sponge_r220/4_OMA_wd/OMA_wd/Output
193
+ TreeSAK FunTree -i /scratch/PI/ocessongwz/Sponge_r220/3_combined_genomes_50_5_dRep97_291.faa -fun K01995,K01996,K01997,K01998,K01999 -kegg /scratch/PI/ocessongwz/Sponge_r220/3_combined_genomes_50_5_dRep97_291_KEGG_wd -o interested_fun_tree_branched_chain_aa_transport_system -bmge -t 12 -f
194
+
195
+ /scratch/PI/ocessongwz/Sponge_r220/3_combined_genomes_50_5_dRep97_291_arCOG_wd
196
+
197
+ '''
@@ -1,9 +1,12 @@
1
+ 1.45.1
2
+ - fixed bugs
3
+
4
+ 1.45.0
5
+ - new module added: iTOL_gene_tree
6
+
1
7
  1.44.0
2
8
  - new module added: FunTree
3
9
 
4
- 1.43.3
5
- - fixed bugs
6
-
7
10
  1.43.0
8
11
  - new module added: ALE7
9
12
 
@@ -0,0 +1,43 @@
1
+ import os
2
+ import argparse
3
+ from ete3 import Tree
4
+
5
+
6
+ gnm_leaves_usage = '''
7
+ ========== gnm_leaves example commands ==========
8
+
9
+ TreeSAK gnm_leaves -i input.tree -o output.tree
10
+
11
+ =================================================
12
+ '''
13
+
14
+
15
+ def gnm_leaves(args):
16
+
17
+ tree_file_in = args['i']
18
+ tree_file_out = args['o']
19
+ tree_format = args['fmt']
20
+
21
+ if os.path.isfile(tree_file_in) is False:
22
+ print('Tree file not found, program exited!')
23
+ exit()
24
+
25
+ t = Tree(tree_file_in, format=tree_format)
26
+
27
+ for leaf in t:
28
+ leaf_name = leaf.name
29
+ leaf_name_new = '_'.join(leaf_name.split('_')[:-1])
30
+ leaf.name = leaf_name_new
31
+ t.write(format=tree_format, outfile=tree_file_out)
32
+
33
+ print('Done!')
34
+
35
+
36
+ if __name__ == '__main__':
37
+
38
+ gnm_leaves_parser = argparse.ArgumentParser()
39
+ gnm_leaves_parser.add_argument('-i', required=True, help='input tree')
40
+ gnm_leaves_parser.add_argument('-o', required=True, help='output tree')
41
+ gnm_leaves_parser.add_argument('-fmt', required=False, default=1, type=int, help='tree format, default: 1')
42
+ args = vars(gnm_leaves_parser.parse_args())
43
+ gnm_leaves(args)
@@ -620,6 +620,7 @@ if __name__ == '__main__':
620
620
  iTOL_parser.add_argument('-dr', required=False, default=None, help='Donor to Recipient')
621
621
  iTOL_parser.add_argument('-scale', required=False, default=None, help='Scale Values, in format 0-3-6-9')
622
622
  iTOL_parser.add_argument('-lt', required=False, default=None, help='Legend Title')
623
+ iTOL_parser.add_argument('-gene', required=False, action='store_true', help='In case leaves are genes')
623
624
  iTOL_parser.add_argument('-o', required=True, help='Output filename')
624
625
  args = vars(iTOL_parser.parse_args())
625
626
  iTOL(args)
@@ -0,0 +1,74 @@
1
+ import os
2
+ import argparse
3
+ from ete3 import Tree
4
+
5
+
6
+ iTOL_gene_tree_usage = '''
7
+ ====================== iTOL_gene_tree example commands ======================
8
+
9
+ TreeSAK iTOL_gene_tree -tree genes.tree -i gnm_taxon.txt -o gene_taxon.txt
10
+ TreeSAK iTOL_gene_tree -txt gene_id.txt -i gnm_taxon.txt -o gene_taxon.txt
11
+
12
+ =============================================================================
13
+ '''
14
+
15
+
16
+ def iTOL_gene_tree(args):
17
+
18
+ input_tree_file = args['tree']
19
+ input_txt_file = args['txt']
20
+ meta_txt = args['i']
21
+ op_txt = args['o']
22
+
23
+ if (input_tree_file is None) and (input_txt_file is None):
24
+ print('Please provide gene id with at least one approach, program exited!')
25
+ exit()
26
+
27
+ if os.path.isfile(meta_txt) is False:
28
+ print('Metadata file not found, program exited!')
29
+ exit()
30
+
31
+ metadata_dict = dict()
32
+ for each_gnm in open(meta_txt):
33
+ each_gnm_split = each_gnm.strip().split('\t')
34
+ if len(each_gnm_split) == 2:
35
+ gnm_id = each_gnm_split[0]
36
+ meta_value = each_gnm_split[1]
37
+ metadata_dict[gnm_id] = meta_value
38
+
39
+ gene_id_set = set()
40
+ if input_tree_file is not None:
41
+ if os.path.isfile(input_tree_file) is False:
42
+ print('Tree file not found, program exited!')
43
+ exit()
44
+ else:
45
+ for leaf in Tree(input_tree_file, format=1):
46
+ gene_id_set.add(leaf.name)
47
+
48
+ if input_txt_file is not None:
49
+ if os.path.isfile(input_txt_file) is False:
50
+ print('Txt file not found, program exited!')
51
+ exit()
52
+ else:
53
+ for each_id in open(input_txt_file):
54
+ gene_id_set.add(each_id.strip())
55
+
56
+ op_txt_handle = open(op_txt, 'w')
57
+ for gene_id in gene_id_set:
58
+ gnm_id = '_'.join(gene_id.split('_')[:-1])
59
+ gnm_meta = metadata_dict.get(gnm_id, 'na')
60
+ op_txt_handle.write('%s\t%s\n' % (gene_id, gnm_meta))
61
+ op_txt_handle.close()
62
+
63
+ print('Done!')
64
+
65
+
66
+ if __name__ == '__main__':
67
+
68
+ iTOL_gene_tree_parser = argparse.ArgumentParser(usage=iTOL_gene_tree_usage)
69
+ iTOL_gene_tree_parser.add_argument('-i', required=True, help='input metadata')
70
+ iTOL_gene_tree_parser.add_argument('-tree', required=False, default=None, help='gene id, in tree file')
71
+ iTOL_gene_tree_parser.add_argument('-txt', required=False, default=None, help='gene id, in txt file')
72
+ iTOL_gene_tree_parser.add_argument('-o', required=True, help='output metadata')
73
+ args = vars(iTOL_gene_tree_parser.parse_args())
74
+ iTOL_gene_tree(args)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TreeSAK
3
- Version: 1.44.0
3
+ Version: 1.45.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.44.0
27
+ TreeSAK v1.45.1
@@ -78,7 +78,9 @@ TreeSAK/gap_stats.py
78
78
  TreeSAK/get_SCG_tree.py
79
79
  TreeSAK/get_arCOG_seq.py
80
80
  TreeSAK/global_functions.py
81
+ TreeSAK/gnm_leaves.py
81
82
  TreeSAK/iTOL.py
83
+ TreeSAK/iTOL_gene_tree.py
82
84
  TreeSAK/keep_highest_rrtc.py
83
85
  TreeSAK/label_tree.R
84
86
  TreeSAK/label_tree.py
@@ -57,6 +57,7 @@ def print_main_help():
57
57
 
58
58
  Tree-related
59
59
  iTOL -> Prepare iTOL files
60
+ iTOL_gene_tree -> Genome metadata to gene metadata
60
61
  PB -> Infer tree with PhyloBayes-MPI
61
62
  supertree -> Infer species tree from gene trees
62
63
  AssessPB -> Compare PhyloBayes chains
@@ -842,6 +843,16 @@ if __name__ == '__main__':
842
843
  args = vars(parser.parse_args())
843
844
  FunTree.FunTree(args)
844
845
 
846
+ elif sys.argv[1] == 'iTOL_gene_tree':
847
+ from TreeSAK import iTOL_gene_tree
848
+ iTOL_gene_tree_parser = subparsers.add_parser('iTOL_gene_tree', usage=iTOL_gene_tree.iTOL_gene_tree_usage)
849
+ iTOL_gene_tree_parser.add_argument('-i', required=True, help='input metadata')
850
+ iTOL_gene_tree_parser.add_argument('-tree', required=False, default=None, help='gene id, in tree file')
851
+ iTOL_gene_tree_parser.add_argument('-txt', required=False, default=None, help='gene id, in txt file')
852
+ iTOL_gene_tree_parser.add_argument('-o', required=True, help='output metadata')
853
+ args = vars(parser.parse_args())
854
+ iTOL_gene_tree.iTOL_gene_tree(args)
855
+
845
856
  else:
846
857
  print('Unrecognized module: %s, program exited' % sys.argv[1])
847
858
  exit()
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes