BEGIN{ server=0; our=0; other=0; } { if (other==1) { SERVERS[$1]="found"; } if (our==1) { GDTSCORE[$1]=$2; REALSCORE[$1]=$3; OURSCORE[$1]=$4; BBONLY[$1]=$5; } if (server==1) { name=$1; scoreGDT=GDTSCORE[name]; scoreREAL=REALSCORE[name]; ourscore=OURSCORE[name]; bbonly=BBONLY[name]; if (score=="") { # NOT FOUND, trying other name gsub(".pdb", "", name); scoreGDT=GDTSCORE[name]; scoreREAL=REALSCORE[name]; ourscore=OURSCORE[name]; bbonly=BBONLY[name]; if (scoreGDT=="") { print "NOT FOUND! ", $1, name; exit; } } if (bbonly==0) # if (ourscore!=0) print $1, $2, ourscore, scoreGDT, scoreREAL; } if ($1=="OURSTART") { our=1; server=0; other=0; } if ($1 == "SERVERSTART") { server=1; our=0; other=0; } if ($1 == "OTHER") { server=0; our=0; other=1; } }