Skip to content
Browse files

pyfasta split can handle > 52 splits

  • Loading branch information...
1 parent 4fa34b8 commit 24642374ebd614b5b55d34ed0174fc42bcafa338 @brentp committed Feb 21, 2012
Showing with 7 additions and 2 deletions.
  1. +4 −0 CHANGELOG.txt
  2. +2 −1 pyfasta/split_fasta.py
  3. +1 −1 setup.py
View
4 CHANGELOG.txt
@@ -1,5 +1,9 @@
Changes
=======
+0.4.5
+-----
+pyfasta split can handle > 52 files. (thanks Devtulya)
+
0.4.4
-----
fix pyfasta extract
View
3 pyfasta/split_fasta.py
@@ -45,7 +45,8 @@ def newnames(oldname, n, kmers=None, overlap=None, header=None):
if n == 1:
names = [pattern % "split"]
else:
- names = [pattern % string.letters[i] for i in range(n)]
+ width = len(str(n))
+ names = [pattern % str(i).rjust(width, '0') for i in range(n)]
print >>sys.stderr, "creating new files:"
print >>sys.stderr, "\n".join(names)
return names
View
2 setup.py
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
-version = '0.4.4'
+version = '0.4.5'
setup(name='pyfasta',
version=version,

0 comments on commit 2464237

Please sign in to comment.
Something went wrong with that request. Please try again.