TreeSAK 1.36.0__tar.gz → 1.37.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.
- {TreeSAK-1.36.0/TreeSAK.egg-info → TreeSAK-1.37.0}/PKG-INFO +2 -2
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/MarkerSeq2Tree.py +23 -18
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/VERSION +3 -0
- TreeSAK-1.37.0/TreeSAK/recodeAA.py +73 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0/TreeSAK.egg-info}/PKG-INFO +2 -2
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK.egg-info/SOURCES.txt +1 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/bin/TreeSAK +10 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/LICENSE +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/MANIFEST.in +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/README.md +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/ALE.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/ALE1.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/ALE2.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/ALE2RTC.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/ALE3.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/ALE4.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/ALE5.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/ALE6.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/ALE_backup.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/AlignmentPruner.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/AssessCVG.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/AssessMarker.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/AssessMarkerDeltaLL.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/AssessMarkerPA.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/AssessPB.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/BMGE.jar +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/BMGE.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/CompareMCMC.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/ConcateMSA.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/ConvertMSA.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/Dir.rb +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/ExtractMarkerSeq.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/FastRoot.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/FastRoot_backup.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/GTDB_tree.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/KEGG_Luo17.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/LcaToLeaves.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/MCMCtreeR.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/MarkerRef2Tree.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/MarkerRef2Tree_backup.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/ModifyTopo.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/OMA.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/OMA2.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/OneLineAln.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/PB.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/PMSF.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/PhyloBiAssoc.R +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/PhyloBiAssoc.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/PlotMcmcNode.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/RootTree.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/RootTreeGTDB214.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/RootTreeGTDB220.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/SequentialDating.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/SingleAleHGT.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/SingleLinePhy.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/SliceMSA.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/SplitScore.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/SplitScore1.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/SplitScore1OMA.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/SplitScore2.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/TaxaCountStats.R +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/TreeSAK_config.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/VisHPD95.R +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/VisHPD95.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/__init__.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/ale_parser.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/ale_splitter.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/compare_trees.R +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/compare_trees.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/dating.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/dating_ss.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/do_rrtc.rb +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/fa2phy.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/format_leaf_name.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/gap_stats.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/get_arCOG_seq.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/global_functions.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/merge_pdf.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/pRTC.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/parse_deltall_stdout.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/plot_distruibution_th.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/prep_mcmctree_ctl.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/print_leaves.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/rename_leaves.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/replace_clade.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/root_with_out_group.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/run_TaxaCountStats_R_s1.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/subsample_drep_gnms.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/subset.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/subset_tree_stupid_old_way.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/test_1.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/test_2.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/tmp_2.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/tmp_3.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/tmp_4.py +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK/weighted_rand.rb +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK.egg-info/dependency_links.txt +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK.egg-info/requires.txt +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/TreeSAK.egg-info/top_level.txt +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/setup.cfg +0 -0
- {TreeSAK-1.36.0 → TreeSAK-1.37.0}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: TreeSAK
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.37.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.
|
|
27
|
+
TreeSAK v1.37.0
|
|
@@ -135,14 +135,16 @@ def MarkerSeq2Tree(args):
|
|
|
135
135
|
marker_seq_list = sorted(glob.glob(marker_seq_re))
|
|
136
136
|
|
|
137
137
|
# define output dir
|
|
138
|
-
renamed_marker_seq_dir = '%s/renamed_markers'
|
|
139
|
-
renamed_marker_aln_dir = '%s/renamed_markers_aln'
|
|
140
|
-
renamed_marker_aln_dir_trimmed = '%s/renamed_markers_aln_trimmed'
|
|
141
|
-
concatenated_phy = '%s/concatenated.phy'
|
|
142
|
-
concatenated_phy_partition = '%s/concatenated_partition.txt'
|
|
143
|
-
iqtree_dir = '%s/iqtree_wd'
|
|
144
|
-
|
|
145
|
-
|
|
138
|
+
renamed_marker_seq_dir = '%s/renamed_markers' % op_dir
|
|
139
|
+
renamed_marker_aln_dir = '%s/renamed_markers_aln' % op_dir
|
|
140
|
+
renamed_marker_aln_dir_trimmed = '%s/renamed_markers_aln_trimmed' % op_dir
|
|
141
|
+
concatenated_phy = '%s/concatenated.phy' % op_dir
|
|
142
|
+
concatenated_phy_partition = '%s/concatenated_partition.txt' % op_dir
|
|
143
|
+
iqtree_dir = '%s/iqtree_wd' % op_dir
|
|
144
|
+
cmds_1_mafft_txt = '%s/cmds_1_mafft.txt' % op_dir
|
|
145
|
+
cmds_2_trimal_txt = '%s/cmds_2_trimal.txt' % op_dir
|
|
146
|
+
cmds_3_iqtree_txt = '%s/cmds_3_iqtree2.txt' % op_dir
|
|
147
|
+
pwd_guide_tree = '%s/iqtree_wd/guide_tree.treefile' % op_dir
|
|
146
148
|
|
|
147
149
|
# create output folder
|
|
148
150
|
if os.path.isdir(op_dir) is True:
|
|
@@ -174,13 +176,16 @@ def MarkerSeq2Tree(args):
|
|
|
174
176
|
marker_hits_seq_renamed_handle.close()
|
|
175
177
|
|
|
176
178
|
# align and trim
|
|
177
|
-
mafft_cmd = 'mafft-einsi --thread %s --quiet %s
|
|
178
|
-
trimal_cmd = 'trimal -in %s -out %s -automated1'
|
|
179
|
+
mafft_cmd = 'mafft-einsi --thread %s --quiet %s > %s' % (num_of_threads, pwd_renamed_marker_seq, pwd_renamed_marker_aln)
|
|
180
|
+
trimal_cmd = 'trimal -in %s -out %s -automated1' % (pwd_renamed_marker_aln, pwd_renamed_marker_aln_trimmed)
|
|
179
181
|
|
|
180
|
-
# write out cmds
|
|
181
|
-
with open(
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
# write out mafft cmds
|
|
183
|
+
with open(cmds_1_mafft_txt, 'a') as cmds_1_mafft_txt_handle:
|
|
184
|
+
cmds_1_mafft_txt_handle.write(mafft_cmd + '\n')
|
|
185
|
+
|
|
186
|
+
# write out trimal cmds
|
|
187
|
+
with open(cmds_2_trimal_txt, 'a') as cmds_2_trimal_txt_handle:
|
|
188
|
+
cmds_2_trimal_txt_handle.write(trimal_cmd + '\n')
|
|
184
189
|
|
|
185
190
|
# run cmds
|
|
186
191
|
os.system(mafft_cmd)
|
|
@@ -194,10 +199,10 @@ def MarkerSeq2Tree(args):
|
|
|
194
199
|
get_guide_tree_cmd = 'iqtree2 --seqtype AA -T %s -B 1000 --alrt 1000 --quiet -s %s --prefix %s/guide_tree -m LG ' % (num_of_threads, concatenated_phy, iqtree_dir, )
|
|
195
200
|
get_c60_tree_cmd = 'iqtree2 --seqtype AA -T %s -B 1000 --alrt 1000 --quiet -s %s --prefix %s/concatenated -m LG+C60+G+F -ft %s' % (num_of_threads, concatenated_phy, iqtree_dir, pwd_guide_tree)
|
|
196
201
|
|
|
197
|
-
# write out cmds
|
|
198
|
-
with open(
|
|
199
|
-
|
|
200
|
-
|
|
202
|
+
# write out iqtree2 cmds
|
|
203
|
+
with open(cmds_3_iqtree_txt, 'a') as cmds_3_iqtree_txt_handle:
|
|
204
|
+
cmds_3_iqtree_txt_handle.write(get_guide_tree_cmd + '\n')
|
|
205
|
+
cmds_3_iqtree_txt_handle.write(get_c60_tree_cmd + '\n')
|
|
201
206
|
|
|
202
207
|
# run cmds
|
|
203
208
|
os.system(get_guide_tree_cmd)
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
from Bio import SeqIO
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
recodeAA_usage = '''
|
|
6
|
+
=========================== recodeAA example commands ===========================
|
|
7
|
+
|
|
8
|
+
TreeSAK recodeAA -i msa.fa -o recoded_msa_D4.fa -c d4
|
|
9
|
+
TreeSAK recodeAA -i msa.fa -o recoded_msa_D6.fa -c d6
|
|
10
|
+
TreeSAK recodeAA -i msa.fa -o recoded_msa_S4.fa -c s4
|
|
11
|
+
|
|
12
|
+
Note:
|
|
13
|
+
This script is modified based on the Recode_aa.py from Anja Spang.
|
|
14
|
+
It was prepared to recode amino acids to Dayoff 4, Dayoff 6 or SR4 categories.
|
|
15
|
+
Please refer to https://doi.org/10.1038/s41467-020-17408-w for details.
|
|
16
|
+
|
|
17
|
+
Recoding schemes
|
|
18
|
+
1. Selenocysteine will be recoded to a gap.
|
|
19
|
+
2. Dayhoff6 (d6): A,G,P,S,T = A; D,E,N,Q = D; H,K,R = H; F,Y,W = F; I,L,M,V = I; C = C
|
|
20
|
+
3. Dayhoff4 (d4): A,G,P,S,T = A; D,E,N,Q = D; H,K,R = H; F,Y,W,I,L,M,V = F; C = ?
|
|
21
|
+
4. Sr4 (s4): A,G,N,P,S,T = A; C,H,W,Y = C; D,E,K,Q,R = G; F,I,L,M,V = T
|
|
22
|
+
|
|
23
|
+
=================================================================================
|
|
24
|
+
'''
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def recodeAA(args):
|
|
28
|
+
|
|
29
|
+
msa_in = args['i']
|
|
30
|
+
msa_out = args['o']
|
|
31
|
+
category = args['c']
|
|
32
|
+
|
|
33
|
+
DH6 = {'A': 'A', 'G': 'A', 'P': 'A', 'S': 'A', 'T': 'A', 'D': 'D', 'E': 'D', 'N': 'D', 'Q': 'D', 'H': 'H', 'K': 'H', 'R': 'H', 'F': 'F', 'Y': 'F', 'W': 'F', 'I': 'I', 'L': 'I', 'M': 'I', 'V': 'I', 'C': 'C'}
|
|
34
|
+
DH4 = {'A': 'A', 'G': 'A', 'P': 'A', 'S': 'A', 'T': 'A', 'D': 'D', 'E': 'D', 'N': 'D', 'Q': 'D', 'H': 'H', 'K': 'H', 'R': 'H', 'F': 'F', 'Y': 'F', 'W': 'F', 'I': 'F', 'L': 'F', 'M': 'F', 'V': 'F', 'C': '-'}
|
|
35
|
+
SR4 = {'A': 'A', 'G': 'A', 'N': 'A', 'P': 'A', 'S': 'A', 'T': 'A', 'C': 'C', 'H': 'C', 'W': 'C', 'Y': 'C', 'D': 'G', 'E': 'G', 'K': 'G', 'Q': 'G', 'R': 'G', 'F': 'T', 'I': 'T', 'L': 'T', 'M': 'T', 'V': 'T'}
|
|
36
|
+
|
|
37
|
+
msa_out_handle = open(msa_out, 'w')
|
|
38
|
+
for seq_record in SeqIO.parse(msa_in, "fasta"):
|
|
39
|
+
header = str(seq_record.description).strip()
|
|
40
|
+
seq = str(seq_record.seq).strip()
|
|
41
|
+
new_seq = ''
|
|
42
|
+
for item in seq:
|
|
43
|
+
if category in ['D6', 'd6']:
|
|
44
|
+
if item in DH6:
|
|
45
|
+
new_seq = new_seq + str(DH6.get(item))
|
|
46
|
+
else:
|
|
47
|
+
new_seq = new_seq + str('-')
|
|
48
|
+
elif category in ['D4', 'd4']:
|
|
49
|
+
if item in DH4:
|
|
50
|
+
new_seq = new_seq + str(DH4.get(item))
|
|
51
|
+
else:
|
|
52
|
+
new_seq = new_seq + str('-')
|
|
53
|
+
elif category in ['S4', 's4']:
|
|
54
|
+
if item in SR4:
|
|
55
|
+
new_seq = new_seq + str(SR4.get(item))
|
|
56
|
+
else:
|
|
57
|
+
new_seq = new_seq + str('-')
|
|
58
|
+
else:
|
|
59
|
+
print('Please choose recoding scheme from d4, d6 and s4, program exited!')
|
|
60
|
+
exit()
|
|
61
|
+
|
|
62
|
+
msa_out_handle.write(">%s\n%s\n" % (header, new_seq))
|
|
63
|
+
msa_out_handle.close()
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
if __name__ == '__main__':
|
|
67
|
+
|
|
68
|
+
recodeAA_parser = argparse.ArgumentParser(description='Recode amino acids to Dayoff 4, Dayoff 6 or SR4 categories')
|
|
69
|
+
recodeAA_parser.add_argument('-i', required=True, help='input file')
|
|
70
|
+
recodeAA_parser.add_argument('-c', required=True, help='recoding scheme, choose from d4, d6 and s4')
|
|
71
|
+
recodeAA_parser.add_argument('-o', required=True, help='output file')
|
|
72
|
+
args = vars(recodeAA_parser.parse_args())
|
|
73
|
+
recodeAA(args)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: TreeSAK
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.37.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.
|
|
27
|
+
TreeSAK v1.37.0
|
|
@@ -53,6 +53,7 @@ def print_main_help():
|
|
|
53
53
|
AlignmentPruner -> Remove heterogenous sites from MSA
|
|
54
54
|
CS_trim -> (to be added) perform chi-squared trimming to reduce compositional heterogeneity
|
|
55
55
|
gap_stats -> The percentage of gap in each sequence of a MSA
|
|
56
|
+
recodeAA -> Recode amino acids to Dayoff 4, Dayoff 6 or SR4 categories
|
|
56
57
|
|
|
57
58
|
Tree-related
|
|
58
59
|
PB -> Infer tree with PhyloBayes-MPI
|
|
@@ -714,6 +715,15 @@ if __name__ == '__main__':
|
|
|
714
715
|
args = vars(parser.parse_args())
|
|
715
716
|
gap_stats.gap_stats(args)
|
|
716
717
|
|
|
718
|
+
elif sys.argv[1] == 'recodeAA':
|
|
719
|
+
from TreeSAK import recodeAA
|
|
720
|
+
recodeAA_parser = subparsers.add_parser('recodeAA', usage=recodeAA.recodeAA_usage)
|
|
721
|
+
recodeAA_parser.add_argument('-i', required=True, help='input file')
|
|
722
|
+
recodeAA_parser.add_argument('-c', required=True, help='recoding scheme, choose from d4, d6 and s4')
|
|
723
|
+
recodeAA_parser.add_argument('-o', required=True, help='output file')
|
|
724
|
+
args = vars(parser.parse_args())
|
|
725
|
+
recodeAA.recodeAA(args)
|
|
726
|
+
|
|
717
727
|
else:
|
|
718
728
|
print('Unrecognized command: %s, program exited' % sys.argv[1])
|
|
719
729
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|