Re: match, concatenate based on filename

2011-11-03 Thread John Gordon
In <31568428.553.1320375329695.JavaMail.geo-discussion-forums@prgt40> Matt 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

Re: match, concatenate based on filename

2011-11-03 Thread Patrick Maupin
On Nov 3, 9:55 pm, Matt wrote: > Hi All, > > I am trying to concatenate several hundred files based on their filename..   > Filenames are like this: > > Q1.HOMOblast.fasta > Q1.mus.blast.fasta > Q1.query.fasta > Q2.HOMOblast.fasta > Q2.mus.blast.fasta > Q2.query.fasta > ... > Q1223.HOMOblast.fasta

match, concatenate based on filename

2011-11-03 Thread Matt
Hi All, I am trying to concatenate several hundred files based on their filename.. Filenames are like this: Q1.HOMOblast.fasta Q1.mus.blast.fasta Q1.query.fasta Q2.HOMOblast.fasta Q2.mus.blast.fasta Q2.query.fasta ... Q1223.HOMOblast.fasta Q1223.mus.blast.fasta Q1223.query.fasta