def _gpi11iterator(handle):
 for inline in handle:
  if (inline[0] == '!'):
   continue
  inrec = inline.rstrip('\n').split(' DCTB ')
  if (len(inrec) == 1):
   continue
  inrec[2] = inrec[2].split('|')
  inrec[3] = inrec[3].split('|')
  inrec[7] = inrec[7].split('|')
  inrec[8] = inrec[8].split('|')
  (yield dict(zip(GPI11FIELDS, inrec)))

def _gpi11iterator ( handle ) : for inline in handle : if ( inline [ 0 ] == '!' ) : continue inrec = inline . rstrip ( '\n' ) . split ( ' DCTB ' ) if ( len ( inrec ) == 1 ) : continue inrec [ 2 ] = inrec [ 2 ] . split ( '|' ) inrec [ 3 ] = inrec [ 3 ] . split ( '|' ) inrec [ 7 ] = inrec [ 7 ] . split ( '|' ) inrec [ 8 ] = inrec [ 8 ] . split ( '|' ) ( yield dict ( zip ( GPI11FIELDS , inrec ) ) )
read gpi 1 .