TreeSAK 1.4.2__tar.gz → 1.4.4__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 (31) hide show
  1. {TreeSAK-1.4.2/TreeSAK.egg-info → TreeSAK-1.4.4}/PKG-INFO +2 -2
  2. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/TreeSAK/ConvertMSA.py +23 -3
  3. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/TreeSAK/VERSION +1 -1
  4. {TreeSAK-1.4.2 → TreeSAK-1.4.4/TreeSAK.egg-info}/PKG-INFO +2 -2
  5. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/.gitignore +0 -0
  6. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/LICENSE +0 -0
  7. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/MANIFEST.in +0 -0
  8. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/README.md +0 -0
  9. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/TreeSAK/AssessCVG.py +0 -0
  10. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/TreeSAK/TreeSAK_config copy.py +0 -0
  11. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/TreeSAK/TreeSAK_config.py +0 -0
  12. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/TreeSAK/__init__.py +0 -0
  13. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/TreeSAK/compare_trees.R +0 -0
  14. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/TreeSAK/compare_trees.py +0 -0
  15. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/TreeSAK/format_leaf_name.py +0 -0
  16. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/TreeSAK/get_arCOG_seq.py +0 -0
  17. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/TreeSAK/iTOL.py +0 -0
  18. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/TreeSAK/parse_deltall_stdout.py +0 -0
  19. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/TreeSAK/rename_leaves.py +0 -0
  20. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/TreeSAK/subset_tree.py +0 -0
  21. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/TreeSAK.egg-info/SOURCES.txt +0 -0
  22. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/TreeSAK.egg-info/dependency_links.txt +0 -0
  23. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/TreeSAK.egg-info/requires.txt +0 -0
  24. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/TreeSAK.egg-info/top_level.txt +0 -0
  25. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/bin/TreeSAK +0 -0
  26. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/bin/__init__.py +0 -0
  27. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/images/Bioinformatics.jpg +0 -0
  28. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/images/windows_cmds.docx +0 -0
  29. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/images/windows_cmds.pdf +0 -0
  30. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/setup.cfg +0 -0
  31. {TreeSAK-1.4.2 → TreeSAK-1.4.4}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TreeSAK
3
- Version: 1.4.2
3
+ Version: 1.4.4
4
4
  Summary: BioSAK
5
5
  Home-page: https://github.com/songweizhi/TreeSAK
6
6
  Author: Weizhi Song
@@ -10,5 +10,5 @@ Keywords: Bioinformatics
10
10
  Platform: UNKNOWN
11
11
  License-File: LICENSE
12
12
 
13
- TreeSAK v1.4.2
13
+ TreeSAK v1.4.4
14
14
 
@@ -49,7 +49,26 @@ def ConvertMSA(args):
49
49
  exit()
50
50
 
51
51
  if os.path.isfile(aln_in) is True:
52
- AlignIO.convert(aln_in, aln_in_format, aln_out, aln_out_format)
52
+ if (one_line is False) and (no_gap is False):
53
+ AlignIO.convert(aln_in, aln_in_format, aln_out, aln_out_format)
54
+ else:
55
+ aln_out_tmp = aln_out + '.tmp'
56
+ AlignIO.convert(aln_in, aln_in_format, aln_out_tmp, aln_out_format)
57
+ pwd_aln_out_handle = open(aln_out, 'w')
58
+ for each_seq in SeqIO.parse(aln_out_tmp, 'fasta'):
59
+ seq_id = each_seq.id
60
+ seq_sequence = str(each_seq.seq)
61
+ if no_gap is False:
62
+ pwd_aln_out_handle.write('>%s\n' % seq_id)
63
+ pwd_aln_out_handle.write('%s\n' % seq_sequence)
64
+ else:
65
+ pwd_aln_out_handle.write('>%s\n' % seq_id)
66
+ pwd_aln_out_handle.write('%s\n' % seq_sequence.replace('-', ''))
67
+ pwd_aln_out_handle.close()
68
+ os.system('rm %s' % aln_out_tmp)
69
+
70
+ print('Done!')
71
+
53
72
  elif os.path.isdir(aln_in) is True:
54
73
  aln_in_re = '%s/*.%s' % (aln_in, aln_in_ext)
55
74
  aln_in_list = [os.path.basename(file_name) for file_name in glob.glob(aln_in_re)]
@@ -92,8 +111,9 @@ def ConvertMSA(args):
92
111
  pwd_aln_out_handle.write('%s\n' % seq_sequence.replace('-', ''))
93
112
  pwd_aln_out_handle.close()
94
113
  os.system('rm %s' % pwd_aln_out_tmp)
95
-
96
- print('Done!')
114
+ print('Done!')
115
+ else:
116
+ print('Input file not found, program exited!')
97
117
 
98
118
 
99
119
  if __name__ == '__main__':
@@ -1,4 +1,4 @@
1
- 1.4.2
1
+ 1.4.4
2
2
  - fixed bugs
3
3
 
4
4
  1.4.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TreeSAK
3
- Version: 1.4.2
3
+ Version: 1.4.4
4
4
  Summary: BioSAK
5
5
  Home-page: https://github.com/songweizhi/TreeSAK
6
6
  Author: Weizhi Song
@@ -10,5 +10,5 @@ Keywords: Bioinformatics
10
10
  Platform: UNKNOWN
11
11
  License-File: LICENSE
12
12
 
13
- TreeSAK v1.4.2
13
+ TreeSAK v1.4.4
14
14
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes