In <31568428.553.1320375329695.JavaMail.geo-discussion-forums@prgt40> Matt 
<macma...@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
gor...@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to