Skip to content
This repository has been archived by the owner on Jun 16, 2018. It is now read-only.

Commit

Permalink
pyfasta split can handle > 52 splits
Browse files Browse the repository at this point in the history
  • Loading branch information
brentp committed Feb 21, 2012
1 parent 4fa34b8 commit 2464237
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Changes
=======
0.4.5
-----
pyfasta split can handle > 52 files. (thanks Devtulya)

0.4.4
-----
fix pyfasta extract
Expand Down
3 changes: 2 additions & 1 deletion pyfasta/split_fasta.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages


version = '0.4.4'
version = '0.4.5'

setup(name='pyfasta',
version=version,
Expand Down

0 comments on commit 2464237

Please sign in to comment.