TreeSAK 1.34.0__tar.gz → 1.34.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.
- {TreeSAK-1.34.0/TreeSAK.egg-info → TreeSAK-1.34.2}/PKG-INFO +2 -2
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/MarkerRef2Tree.py +2 -2
- TreeSAK-1.34.0/TreeSAK/pb.py → TreeSAK-1.34.2/TreeSAK/PB.py +17 -27
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/VERSION +3 -3
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/tmp_3.py +3 -5
- {TreeSAK-1.34.0 → TreeSAK-1.34.2/TreeSAK.egg-info}/PKG-INFO +2 -2
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK.egg-info/SOURCES.txt +1 -1
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/bin/TreeSAK +17 -17
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/LICENSE +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/MANIFEST.in +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/README.md +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/ALE.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/ALE1.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/ALE2.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/ALE2RTC.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/ALE3.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/ALE4.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/ALE5.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/ALE6.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/ALE_backup.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/AlignmentPruner.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/AssessCVG.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/AssessMarker.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/AssessMarkerDeltaLL.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/AssessMarkerPA.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/BMGE.jar +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/BMGE.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/CompareMCMC.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/ConcateMSA.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/ConvertMSA.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/Dir.rb +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/ExtractMarkerSeq.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/FastRoot.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/FastRoot_backup.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/GTDB_tree.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/KEGG_Luo17.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/LcaToLeaves.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/MCMCtreeR.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/MarkerRef2Tree_backup.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/MarkerSeq2Tree.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/ModifyTopo.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/OMA.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/OMA2.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/OneLineAln.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/PMSF.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/PhyloBiAssoc.R +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/PhyloBiAssoc.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/PlotMcmcNode.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/RootTree.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/RootTreeGTDB214.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/RootTreeGTDB220.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/SequentialDating.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/SingleAleHGT.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/SingleLinePhy.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/SliceMSA.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/SplitScore.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/SplitScore1.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/SplitScore1OMA.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/SplitScore2.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/TaxaCountStats.R +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/TreeSAK_config.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/VisHPD95.R +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/VisHPD95.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/__init__.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/ale_parser.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/ale_splitter.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/compare_trees.R +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/compare_trees.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/dating.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/dating_ss.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/do_rrtc.rb +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/fa2phy.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/format_leaf_name.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/get_arCOG_seq.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/global_functions.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/merge_pdf.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/pRTC.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/parse_deltall_stdout.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/plot_distruibution_th.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/prep_mcmctree_ctl.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/print_leaves.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/rename_leaves.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/replace_clade.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/root_with_out_group.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/run_TaxaCountStats_R_s1.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/subsample_drep_gnms.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/subset.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/subset_tree_stupid_old_way.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/test_1.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/test_2.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/tmp_2.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/tmp_4.py +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK/weighted_rand.rb +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK.egg-info/dependency_links.txt +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK.egg-info/requires.txt +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/TreeSAK.egg-info/top_level.txt +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/setup.cfg +0 -0
- {TreeSAK-1.34.0 → TreeSAK-1.34.2}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: TreeSAK
|
|
3
|
-
Version: 1.34.
|
|
3
|
+
Version: 1.34.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.34.
|
|
27
|
+
TreeSAK v1.34.2
|
|
@@ -13,8 +13,8 @@ MarkerRef2Tree_usage = '''
|
|
|
13
13
|
Dependencies: blastp, mafft-einsi, trimal, iqtree2
|
|
14
14
|
|
|
15
15
|
# example commands
|
|
16
|
-
TreeSAK MarkerRef2Tree -i
|
|
17
|
-
TreeSAK MarkerRef2Tree -i
|
|
16
|
+
TreeSAK MarkerRef2Tree -i faa_files -x faa -m marker_seq -mx fa -o output_dir -e 10 -t 6 -c 85
|
|
17
|
+
TreeSAK MarkerRef2Tree -i faa_files -x faa -m marker_seq -mx fa -o output_dir -e 10 -t 6 -c 75,100
|
|
18
18
|
|
|
19
19
|
# file extension need to be faa
|
|
20
20
|
|
|
@@ -3,13 +3,13 @@ import argparse
|
|
|
3
3
|
from Bio import AlignIO
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
==========================================
|
|
6
|
+
PB_usage = '''
|
|
7
|
+
========================================== PB example commands ==========================================
|
|
8
8
|
|
|
9
9
|
# Dependency: mpirun, pb_mpi and readpb_mpi (from PhyloBayes-MPI)
|
|
10
10
|
|
|
11
11
|
export OMPI_MCA_btl=^openib
|
|
12
|
-
TreeSAK
|
|
12
|
+
TreeSAK PB -i in.phylip -p chain_name -t 12
|
|
13
13
|
|
|
14
14
|
# Notes:
|
|
15
15
|
1. This is a wrapper for: mpirun -np 12 pb_mpi -d in.phylip -cat -gtr -x 10 -1 -dgam 4 -s chain_name
|
|
@@ -50,15 +50,14 @@ def fa2phy(fasta_in, phy_out):
|
|
|
50
50
|
msa_out_handle.write('%s%s\n' % (seq_id_with_space, str(each_seq.seq)))
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
def
|
|
53
|
+
def PB(args):
|
|
54
54
|
|
|
55
|
-
msa_in
|
|
56
|
-
op_prefix
|
|
57
|
-
fa_to_plp
|
|
58
|
-
num_of_threads
|
|
55
|
+
msa_in = args['i']
|
|
56
|
+
op_prefix = args['p']
|
|
57
|
+
fa_to_plp = args['fa2plp']
|
|
58
|
+
num_of_threads = args['t']
|
|
59
59
|
|
|
60
60
|
settings_dombrowski = '-cat -gtr -x 10 -1 -dgam 4'
|
|
61
|
-
settings_fan = ''
|
|
62
61
|
|
|
63
62
|
msa_to_use = msa_in
|
|
64
63
|
if fa_to_plp is True:
|
|
@@ -66,15 +65,16 @@ def pb(args):
|
|
|
66
65
|
fa2phy(msa_in, msa_in_plp)
|
|
67
66
|
msa_to_use = msa_in_plp
|
|
68
67
|
|
|
69
|
-
pb_mpi_cmd
|
|
68
|
+
pb_mpi_cmd = 'mpirun -np %s pb_mpi -d %s %s -s %s' % (num_of_threads, msa_to_use, settings_dombrowski, op_prefix)
|
|
69
|
+
readpb_cmd = ''
|
|
70
|
+
bpcomp_cmd = ''
|
|
71
|
+
|
|
72
|
+
print('Running pb_mpi with %s threads' % (pb_mpi_cmd, num_of_threads))
|
|
70
73
|
print(pb_mpi_cmd)
|
|
71
74
|
os.system(pb_mpi_cmd)
|
|
72
75
|
|
|
73
|
-
readpb_cmd
|
|
74
|
-
print(
|
|
75
|
-
|
|
76
|
-
bpcomp_cmd = ''
|
|
77
|
-
print(bpcomp_cmd)
|
|
76
|
+
# print(readpb_cmd)
|
|
77
|
+
# print(bpcomp_cmd)
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
if __name__ == '__main__':
|
|
@@ -83,16 +83,6 @@ if __name__ == '__main__':
|
|
|
83
83
|
parser.add_argument('-i', required=True, help='input MSA file')
|
|
84
84
|
parser.add_argument('-p', required=True, help='output prefix')
|
|
85
85
|
parser.add_argument('-fa2plp', required=False, action="store_true", help='convert MSA format from fasta to phylip')
|
|
86
|
-
parser.add_argument('-t', required=False, type=int, default=
|
|
86
|
+
parser.add_argument('-t', required=False, type=int, default=1, help='num of threads, default: 1')
|
|
87
87
|
args = vars(parser.parse_args())
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
'''
|
|
92
|
-
|
|
93
|
-
export OMPI_MCA_btl=^openib
|
|
94
|
-
cd /scratch/PI/ocessongwz/Sponge_2023_12_01/MarkerRef2Tree_marker_set_4/s08_iqtree_wd/pb_test
|
|
95
|
-
mpirun -np 12 pb_mpi -d marker_pa85_pruner0.BMGE.phylip -cat -gtr -x 10 -1 -dgam 4 -s chain_test
|
|
96
|
-
|
|
97
|
-
'''
|
|
98
|
-
|
|
88
|
+
PB(args)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import operator
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
def keep_highest_rrtc(rrtc_in, rrtc_out):
|
|
4
5
|
|
|
5
6
|
rrtc_highest_prob_dict = dict()
|
|
@@ -29,11 +30,8 @@ rrtc_out = '/Users/songweizhi/Desktop/rrtc_out.txt'
|
|
|
29
30
|
keep_highest_rrtc(rrtc_in, rrtc_out)
|
|
30
31
|
|
|
31
32
|
|
|
32
|
-
|
|
33
33
|
demo_dict = { 'a': 6, 'b': 2, 'c': 2 }
|
|
34
|
-
|
|
35
|
-
print()
|
|
36
|
-
|
|
37
34
|
for each in sorted(demo_dict.items(), key=operator.itemgetter(1))[::-1]:
|
|
38
35
|
print(each[0])
|
|
39
|
-
print(each[1])
|
|
36
|
+
print(each[1])
|
|
37
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: TreeSAK
|
|
3
|
-
Version: 1.34.
|
|
3
|
+
Version: 1.34.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.34.
|
|
27
|
+
TreeSAK v1.34.2
|
|
@@ -36,6 +36,7 @@ TreeSAK/ModifyTopo.py
|
|
|
36
36
|
TreeSAK/OMA.py
|
|
37
37
|
TreeSAK/OMA2.py
|
|
38
38
|
TreeSAK/OneLineAln.py
|
|
39
|
+
TreeSAK/PB.py
|
|
39
40
|
TreeSAK/PMSF.py
|
|
40
41
|
TreeSAK/PhyloBiAssoc.R
|
|
41
42
|
TreeSAK/PhyloBiAssoc.py
|
|
@@ -71,7 +72,6 @@ TreeSAK/global_functions.py
|
|
|
71
72
|
TreeSAK/merge_pdf.py
|
|
72
73
|
TreeSAK/pRTC.py
|
|
73
74
|
TreeSAK/parse_deltall_stdout.py
|
|
74
|
-
TreeSAK/pb.py
|
|
75
75
|
TreeSAK/plot_distruibution_th.py
|
|
76
76
|
TreeSAK/prep_mcmctree_ctl.py
|
|
77
77
|
TreeSAK/print_leaves.py
|
|
@@ -54,7 +54,7 @@ def print_main_help():
|
|
|
54
54
|
CS_trim -> (to be added) perform chi-squared trimming to reduce compositional heterogeneity
|
|
55
55
|
|
|
56
56
|
Tree-related
|
|
57
|
-
|
|
57
|
+
PB -> Infer tree with PhyloBayes-MPI
|
|
58
58
|
MarkerSeq2Tree -> Marker sequence to tree
|
|
59
59
|
MarkerRef2Tree -> Marker (reference sequence) to Tree
|
|
60
60
|
GTDB_tree -> get GTDB tree
|
|
@@ -173,7 +173,7 @@ if __name__ == '__main__':
|
|
|
173
173
|
args = vars(parser.parse_args())
|
|
174
174
|
rename_leaves.rename_leaves(args)
|
|
175
175
|
|
|
176
|
-
elif sys.argv[1]
|
|
176
|
+
elif sys.argv[1] in ['FLN', 'fln']:
|
|
177
177
|
from TreeSAK import format_leaf_name
|
|
178
178
|
format_leaf_name_parser = subparsers.add_parser('FLN', usage=format_leaf_name.format_leaf_name_usage)
|
|
179
179
|
format_leaf_name_parser.add_argument('-i', required=True, help='input tree')
|
|
@@ -291,7 +291,7 @@ if __name__ == '__main__':
|
|
|
291
291
|
args = vars(parser.parse_args())
|
|
292
292
|
dating_ss.dating_ss(args)
|
|
293
293
|
|
|
294
|
-
elif sys.argv[1]
|
|
294
|
+
elif sys.argv[1] in ['Dating', 'dating']:
|
|
295
295
|
from TreeSAK import dating
|
|
296
296
|
dating_parser = subparsers.add_parser('Dating', usage=dating.dating_usage)
|
|
297
297
|
dating_parser.add_argument('-tree', required=True, help='outgroup leaves, one id per line')
|
|
@@ -355,7 +355,7 @@ if __name__ == '__main__':
|
|
|
355
355
|
args['plot_grouped_HPD95_R'] = config_dict['plot_grouped_HPD95_R']
|
|
356
356
|
VisHPD95.VisHPD95(args)
|
|
357
357
|
|
|
358
|
-
elif sys.argv[1]
|
|
358
|
+
elif sys.argv[1] in ['PMSF', 'pmsf']:
|
|
359
359
|
from TreeSAK import PMSF
|
|
360
360
|
PMSF_parser = subparsers.add_parser('PMSF', usage=PMSF.PMSF_usage)
|
|
361
361
|
PMSF_parser.add_argument('-i', required=True, help='input MSA file')
|
|
@@ -457,7 +457,7 @@ if __name__ == '__main__':
|
|
|
457
457
|
args = vars(parser.parse_args())
|
|
458
458
|
ExtractMarkerSeq.ExtractMarkerSeq(args)
|
|
459
459
|
|
|
460
|
-
elif sys.argv[1]
|
|
460
|
+
elif sys.argv[1] in ['OMA', 'oma', 'Oma']:
|
|
461
461
|
from TreeSAK import OMA
|
|
462
462
|
OMA_parser = subparsers.add_parser('OMA', usage=OMA.OMA_usage)
|
|
463
463
|
OMA_parser.add_argument('-i', required=True, help='genome folder')
|
|
@@ -470,7 +470,7 @@ if __name__ == '__main__':
|
|
|
470
470
|
args = vars(parser.parse_args())
|
|
471
471
|
OMA.OMA(args)
|
|
472
472
|
|
|
473
|
-
elif sys.argv[1]
|
|
473
|
+
elif sys.argv[1] in ['OMA2', 'oma2', 'Oma2']:
|
|
474
474
|
from TreeSAK import OMA2
|
|
475
475
|
OMA2_parser = subparsers.add_parser('OMA2', usage=OMA2.OMA2_usage)
|
|
476
476
|
OMA2_parser.add_argument('-i', required=True, help='OrthologousGroups.txt')
|
|
@@ -482,7 +482,7 @@ if __name__ == '__main__':
|
|
|
482
482
|
args = vars(parser.parse_args())
|
|
483
483
|
OMA2.OMA2(args)
|
|
484
484
|
|
|
485
|
-
elif sys.argv[1]
|
|
485
|
+
elif sys.argv[1] in ['ALE', 'ale', 'Ale']:
|
|
486
486
|
from TreeSAK import ALE
|
|
487
487
|
print(ALE.ALE_usage)
|
|
488
488
|
exit()
|
|
@@ -576,7 +576,7 @@ if __name__ == '__main__':
|
|
|
576
576
|
args = vars(parser.parse_args())
|
|
577
577
|
AlignmentPruner.AlignmentPruner(args)
|
|
578
578
|
|
|
579
|
-
elif sys.argv[1]
|
|
579
|
+
elif sys.argv[1] in ['BMGE', 'bmge']:
|
|
580
580
|
from TreeSAK import BMGE
|
|
581
581
|
BMGE_parser = subparsers.add_parser('BMGE', usage=BMGE.BMGE_usage)
|
|
582
582
|
BMGE_parser.add_argument('-p', required=True, help='output prefix')
|
|
@@ -586,7 +586,7 @@ if __name__ == '__main__':
|
|
|
586
586
|
args = vars(parser.parse_args())
|
|
587
587
|
BMGE.BMGE(args)
|
|
588
588
|
|
|
589
|
-
elif sys.argv[1]
|
|
589
|
+
elif sys.argv[1] in ['pRTC', 'prtc', 'PRTC']:
|
|
590
590
|
from TreeSAK import pRTC
|
|
591
591
|
pRTC_parser = subparsers.add_parser('pRTC', usage=pRTC.pRTC_usage)
|
|
592
592
|
pRTC_parser.add_argument('-i', required=True, help='the file "out" generated by MCMCTree')
|
|
@@ -679,15 +679,15 @@ if __name__ == '__main__':
|
|
|
679
679
|
args = vars(parser.parse_args())
|
|
680
680
|
RootTreeGTDB220.RootTreeGTDB220(args)
|
|
681
681
|
|
|
682
|
-
elif sys.argv[1]
|
|
683
|
-
from TreeSAK import
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
682
|
+
elif sys.argv[1] in ['PB', 'Pb', 'pb']:
|
|
683
|
+
from TreeSAK import PB
|
|
684
|
+
PB_parser = subparsers.add_parser('PB', usage=PB.PB_usage)
|
|
685
|
+
PB_parser.add_argument('-i', required=True, help='input MSA file')
|
|
686
|
+
PB_parser.add_argument('-p', required=True, help='output prefix')
|
|
687
|
+
PB_parser.add_argument('-fa2plp', required=False, action="store_true", help='convert MSA format from fasta to phylip')
|
|
688
|
+
PB_parser.add_argument('-t', required=False, type=int, default=1, help='num of threads, default: 1')
|
|
689
689
|
args = vars(parser.parse_args())
|
|
690
|
-
|
|
690
|
+
PB.PB(args)
|
|
691
691
|
|
|
692
692
|
else:
|
|
693
693
|
print('Unrecognized command: %s, program exited' % sys.argv[1])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|