Hi Akash try to read http://www.bioperl.org/wiki/HOWTO:SeqIO After reading the sequence, skip it if it's longer than a certain size? Avoid hard coding Carnë