http://qs321.pair.com?node_id=1230426


in reply to Re^3: how to read input from a file, one section at a time?
in thread how to read input from a file, one section at a time?

Hi, Thank you. It works perfectly.

One last thing I would like my script to do is tho look at those "number of proteins" and tell me which entry in the original input file has the smallest number of proteins. So, it should look like following in the output:

A=11 D=5 E=12 F=1 G=5 I=6 K=3 L=7 M=2 N=4 P=2 Q=9 R=10 T=4 V=10

Number of proteins = 15

Entry ">sp|Q2M7X4|YICS_ECOLI Uncharacterized protein YicS OS=Escherichia coli (strain K12) OX=83333 GN=yicS PE=4 SV=1" has the least number of proteins