TreeSAK 1.56.4__tar.gz → 1.56.6__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.56.4/treesak.egg-info → treesak-1.56.6}/PKG-INFO +2 -2
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/VERSION +1 -1
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/iTOL.py +1 -1
- treesak-1.56.6/TreeSAK/subset.py +82 -0
- treesak-1.56.4/TreeSAK/subset.py → treesak-1.56.6/TreeSAK/tree_fmt.py +7 -6
- {treesak-1.56.4 → treesak-1.56.6}/bin/TreeSAK +6 -5
- {treesak-1.56.4 → treesak-1.56.6/treesak.egg-info}/PKG-INFO +2 -2
- {treesak-1.56.4 → treesak-1.56.6}/treesak.egg-info/SOURCES.txt +1 -0
- {treesak-1.56.4 → treesak-1.56.6}/LICENSE +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/MANIFEST.in +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/README.md +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/ALE.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/ALE1.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/ALE2.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/ALE2RTC.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/ALE3.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/ALE4.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/ALE5.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/ALE6.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/ALE7.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/ALE_backup.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/AssessCVG.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/AssessMarker.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/AssessMarkerDeltaLL.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/AssessMarkerPA.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/BMGE.jar +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/BMGE.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/C60SR4.nex +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/CompareMCMC.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/ConcateMSA.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/ConvertMSA.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/Dir.rb +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/ExtractMarkerSeq.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/FastRoot.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/FastRoot_backup.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/FigTree.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/GTDB_tree.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/GeneTree.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/KEGG_Luo17.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/LcaToLeaves.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/MarkerRef2Tree.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/MarkerRef2Tree_backup.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/MarkerSeq2Tree.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/MarkerSeq2Tree_backup.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/ModifyTopo.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/Newick_tree_plotter.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/OMA.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/OMA2.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/OneLineAln.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/PB.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/PMSF.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/PhyloBiAssoc.R +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/PhyloBiAssoc.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/PlotMCMC.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/PlotMcmcNode.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/PlotMcmcNode_old.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/RootTree.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/RootTreeGTDB.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/RootTreeGTDB214.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/RootTreeGTDB220.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/SequentialDating.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/SingleAleHGT.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/SingleLinePhy.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/SliceMSA.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/SplitScore.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/SplitScore1.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/SplitScore1OMA.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/SplitScore2.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/TaxaCountStats.R +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/TaxonTree.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/TimeScale.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/TreeSAK_config.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/VisHPD95.R +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/VisHPD95.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/__init__.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/ale_parser.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/ale_splitter.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/alignment_pruner.pl +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/assessOG.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/assessPB.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/batch_itol.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/catfasta2phy.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/cogTree.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/compare_trees.R +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/compare_trees.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/dating.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/dating_ss.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/deltall.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/do_rrtc.rb +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/fa2phy.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/filter_rename_ar53.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/format_leaf_name.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/gap_stats.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/get_SCG_tree.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/get_arCOG_seq.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/get_lca_id.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/global_functions.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/gnm_leaves.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/guide_tree.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/iTOL_gene_tree.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/itol_msa_stats.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/keep_highest_rrtc.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/koTree.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/label_gene_tree_by_gnm.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/label_tree.R +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/label_tree.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/mad.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/mcmc2tree.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/mcmcTC copy.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/mcmcTC.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/mcmctree_out.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/mcmctree_vs_reltime.R +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/mcmctree_vs_reltime.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/merge_pdf.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/pRTC.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/parse_mcmctree.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/parse_reltime.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/phy2fa.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/plot_distruibution_th.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/prep_mcmctree_ctl.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/print_leaves.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/pruneMSA.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/recode.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/remove_bias.R +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/rename_leaves.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/replace_clade.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/root_with_out_group.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/run_TaxaCountStats_R_s1.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/subsample_drep_gnms.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/subset_tree_stupid_old_way.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/supertree.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/tmp_1.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/tmp_2.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/tmp_3.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/tmp_4.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/TreeSAK/weighted_rand.rb +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/setup.cfg +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/setup.py +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/treesak.egg-info/dependency_links.txt +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/treesak.egg-info/requires.txt +0 -0
- {treesak-1.56.4 → treesak-1.56.6}/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.56.
|
|
3
|
+
Version: 1.56.6
|
|
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.56.
|
|
27
|
+
TreeSAK v1.56.6
|
|
@@ -300,7 +300,7 @@ def iTOL(args):
|
|
|
300
300
|
|
|
301
301
|
# check the number of specified file type
|
|
302
302
|
True_num = 0
|
|
303
|
-
for file_type in [Labels, ColorStrip, ColorRange, SimpleBar, Heatmap, ExternalShape, Binary, BinaryID, PieChart, Collapse, ColorClade, ColorLabel, ColoredLabel]:
|
|
303
|
+
for file_type in [Labels, ColorStrip, ColorRange, SimpleBar, Heatmap, ExternalShape, Binary, BinaryID, PieChart, Collapse, ColorClade, ColorLabel, ColoredLabel, TimeScale]:
|
|
304
304
|
if file_type is True:
|
|
305
305
|
True_num += 1
|
|
306
306
|
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
from ete3 import Tree
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
subset_usage = '''
|
|
6
|
+
====================== subset example commands ======================
|
|
7
|
+
|
|
8
|
+
TreeSAK subset -i in.tree -fi 1 -k leaves.txt -o subset.tree -fo 1
|
|
9
|
+
TreeSAK subset -i in.tree -fi 1 -r leaves.txt -o subset.tree -fo 1
|
|
10
|
+
|
|
11
|
+
# Tree format: https://etetoolkit.org/docs/latest/tutorial/tutorial_trees.html
|
|
12
|
+
0 flexible with support values
|
|
13
|
+
1 flexible with internal node names
|
|
14
|
+
2 all branches + leaf names + internal supports
|
|
15
|
+
3 all branches + all names
|
|
16
|
+
4 leaf branches + leaf names
|
|
17
|
+
5 internal and leaf branches + leaf names
|
|
18
|
+
6 internal branches + leaf names
|
|
19
|
+
7 leaf branches + all names
|
|
20
|
+
8 all names
|
|
21
|
+
9 leaf names
|
|
22
|
+
100 topology only
|
|
23
|
+
|
|
24
|
+
=====================================================================
|
|
25
|
+
'''
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def subset(args):
|
|
29
|
+
|
|
30
|
+
tree_file_in = args['i']
|
|
31
|
+
input_tree_fmt = args['fi']
|
|
32
|
+
to_keep_txt = args['k']
|
|
33
|
+
to_remove_txt = args['r']
|
|
34
|
+
tree_file_out = args['o']
|
|
35
|
+
output_tree_fmt = args['fo']
|
|
36
|
+
|
|
37
|
+
genomes_to_keep = []
|
|
38
|
+
if (to_keep_txt is None) and (to_remove_txt is None):
|
|
39
|
+
print('Please specify either -k or -r, program exited!')
|
|
40
|
+
exit()
|
|
41
|
+
|
|
42
|
+
elif (to_keep_txt is not None) and (to_remove_txt is not None):
|
|
43
|
+
print('Please do NOT specify -k and -r at the same time, program exited!')
|
|
44
|
+
exit()
|
|
45
|
+
|
|
46
|
+
elif (to_keep_txt is not None) and (to_remove_txt is None):
|
|
47
|
+
genomes_to_keep = [i.strip() for i in open(to_keep_txt)]
|
|
48
|
+
|
|
49
|
+
elif (to_keep_txt is None) and (to_remove_txt is not None):
|
|
50
|
+
genomes_to_remove = [i.strip() for i in open(to_remove_txt)]
|
|
51
|
+
|
|
52
|
+
leaf_list = []
|
|
53
|
+
for leaf in Tree(tree_file_in, quoted_node_names=True, format=input_tree_fmt):
|
|
54
|
+
leaf_name = leaf.name
|
|
55
|
+
leaf_list.append(leaf_name)
|
|
56
|
+
|
|
57
|
+
for each_leaf in leaf_list:
|
|
58
|
+
if each_leaf not in genomes_to_remove:
|
|
59
|
+
genomes_to_keep.append(each_leaf)
|
|
60
|
+
|
|
61
|
+
if len(leaf_list) == len(genomes_to_keep):
|
|
62
|
+
print('No leaf to remove, program exited!')
|
|
63
|
+
exit()
|
|
64
|
+
|
|
65
|
+
input_tree = Tree(tree_file_in, quoted_node_names=True, format=input_tree_fmt)
|
|
66
|
+
subset_tree = input_tree.copy()
|
|
67
|
+
subset_tree.prune(genomes_to_keep, preserve_branch_length=True)
|
|
68
|
+
subset_tree.write(outfile=tree_file_out, format=output_tree_fmt)
|
|
69
|
+
|
|
70
|
+
print('Subset tree exported to: %s' % tree_file_out)
|
|
71
|
+
|
|
72
|
+
if __name__ == '__main__':
|
|
73
|
+
|
|
74
|
+
parser = argparse.ArgumentParser()
|
|
75
|
+
parser.add_argument('-i', required=True, help='input tree file')
|
|
76
|
+
parser.add_argument('-o', required=True, help='output tree file')
|
|
77
|
+
parser.add_argument('-k', required=False, default=None, help='leaves to keep')
|
|
78
|
+
parser.add_argument('-r', required=False, default=None, help='leaves to remove')
|
|
79
|
+
parser.add_argument('-fi', required=False, default=1, type=int, help='input tree format, default: 1')
|
|
80
|
+
parser.add_argument('-fo', required=False, default=1, type=int, help='output tree format, default: 1')
|
|
81
|
+
args = vars(parser.parse_args())
|
|
82
|
+
subset(args)
|
|
@@ -18,8 +18,8 @@ def subset(args):
|
|
|
18
18
|
tree_file_out = args['o']
|
|
19
19
|
to_keep_txt = args['k']
|
|
20
20
|
to_remove_txt = args['r']
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
input_tree_fmt = args['fi']
|
|
22
|
+
output_tree_fmt = args['fo']
|
|
23
23
|
|
|
24
24
|
genomes_to_keep = []
|
|
25
25
|
if (to_keep_txt is None) and (to_remove_txt is None):
|
|
@@ -38,7 +38,7 @@ def subset(args):
|
|
|
38
38
|
genomes_to_remove = [i.strip() for i in open(to_remove_txt)]
|
|
39
39
|
|
|
40
40
|
leaf_list = []
|
|
41
|
-
for leaf in Tree(tree_file_in, quoted_node_names=True, format=
|
|
41
|
+
for leaf in Tree(tree_file_in, quoted_node_names=True, format=input_tree_fmt):
|
|
42
42
|
leaf_name = leaf.name
|
|
43
43
|
leaf_list.append(leaf_name)
|
|
44
44
|
|
|
@@ -50,10 +50,10 @@ def subset(args):
|
|
|
50
50
|
print('No leaf to remove, program exited!')
|
|
51
51
|
exit()
|
|
52
52
|
|
|
53
|
-
input_tree = Tree(tree_file_in, quoted_node_names=True, format=
|
|
53
|
+
input_tree = Tree(tree_file_in, quoted_node_names=True, format=input_tree_fmt)
|
|
54
54
|
subset_tree = input_tree.copy()
|
|
55
55
|
subset_tree.prune(genomes_to_keep, preserve_branch_length=True)
|
|
56
|
-
subset_tree.write(outfile=tree_file_out)
|
|
56
|
+
subset_tree.write(outfile=tree_file_out, format=output_tree_fmt)
|
|
57
57
|
|
|
58
58
|
print('Subset tree exported to: %s' % tree_file_out)
|
|
59
59
|
|
|
@@ -64,6 +64,7 @@ if __name__ == '__main__':
|
|
|
64
64
|
parser.add_argument('-o', required=True, help='output tree file')
|
|
65
65
|
parser.add_argument('-k', required=False, default=None, help='leaves to keep')
|
|
66
66
|
parser.add_argument('-r', required=False, default=None, help='leaves to remove')
|
|
67
|
-
parser.add_argument('-
|
|
67
|
+
parser.add_argument('-fi', required=False, default=1, type=int, help='input tree format, default: 1')
|
|
68
|
+
parser.add_argument('-fo', required=False, default=1, type=int, help='output tree format, default: 1')
|
|
68
69
|
args = vars(parser.parse_args())
|
|
69
70
|
subset(args)
|
|
@@ -127,11 +127,12 @@ if __name__ == '__main__':
|
|
|
127
127
|
elif sys.argv[1] == 'subset':
|
|
128
128
|
from TreeSAK import subset
|
|
129
129
|
subset_parser = subparsers.add_parser('subset', description='Subset tree', usage=subset.subset_usage)
|
|
130
|
-
subset_parser.add_argument('-i', required=True,
|
|
131
|
-
subset_parser.add_argument('-
|
|
132
|
-
subset_parser.add_argument('-k', required=False, default=None,
|
|
133
|
-
subset_parser.add_argument('-r', required=False, default=None,
|
|
134
|
-
subset_parser.add_argument('-
|
|
130
|
+
subset_parser.add_argument('-i', required=True, help='input tree file')
|
|
131
|
+
subset_parser.add_argument('-fi', required=False, default=1, type=int, help='input tree format, default: 1')
|
|
132
|
+
subset_parser.add_argument('-k', required=False, default=None, help='leaves to keep')
|
|
133
|
+
subset_parser.add_argument('-r', required=False, default=None, help='leaves to remove')
|
|
134
|
+
subset_parser.add_argument('-o', required=True, help='output tree file')
|
|
135
|
+
subset_parser.add_argument('-fo', required=False, default=1, type=int, help='output tree format, default: 1')
|
|
135
136
|
args = vars(parser.parse_args())
|
|
136
137
|
subset.subset(args)
|
|
137
138
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: treesak
|
|
3
|
-
Version: 1.56.
|
|
3
|
+
Version: 1.56.6
|
|
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.56.
|
|
27
|
+
TreeSAK v1.56.6
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|