Commit 01903e30 authored by Christian Meesters's avatar Christian Meesters

zero padding for better sorting

parent 150a061e
......@@ -22,7 +22,7 @@ batch = list()
for pos, entry in enumerate(record_iter):
if pos == 0:
group += 1
filename = 'group_%s.fasta' % group
filename = 'group_%4d.fasta' % group
handle = open(os.path.join('scratch', filename), 'w')
if (pos % nlines == 0 and pos != 0):
count = SeqIO.write(batch, handle, 'fasta')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment