def psea2HEC(pseq):
 seq = []
 for ss in pseq:
  if (ss == 'a'):
   n = 'H'
  elif (ss == 'b'):
   n = 'E'
  elif (ss == 'c'):
   n = 'C'
  seq.append(n)
 return seq

def psea2HEC ( pseq ) : seq = [ ] for ss in pseq : if ( ss == 'a' ) : n = 'H' elif ( ss == 'b' ) : n = 'E' elif ( ss == 'c' ) : n = 'C' seq . append ( n ) return seq
translate psea secondary structure string into hec .