match, concatenate based on filename
John Gordon
gordon at panix.com
Thu Nov 3 23:17:34 EDT 2011
In <31568428.553.1320375329695.JavaMail.geo-discussion-forums at prgt40> Matt <macmanes at gmail.com> writes:
> But I can't figure out how to iterate this process over Q-numbers 1-1223
for i in xrange(1, 1224):
Q = "Q%d" % i
file1 = "%s.HOMOblast.fasta" % Q
file2 = "%s.mus.blast.fasta" % Q
file3 = "%s.query.fasta" % Q
target = "%s.concat.fasta" % Q
concatenate(file1, file2, file3, target)
Assuming that there are exactly three files to be concatenated for each
value of i.
--
John Gordon A is for Amy, who fell down the stairs
gordon at panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
More information about the Python-list
mailing list