def ids_from_fasta_lines(lines):
 ids = []
 for line in lines:
  if (not line.startswith('>')):
   continue
  id = id_from_fasta_label_line(line)
  ids.append(id)
 return ids

def ids_from_fasta_lines ( lines ) : ids = [ ] for line in lines : if ( not line . startswith ( '>' ) ) : continue id = id_from_fasta_label_line ( line ) ids . append ( id ) return ids
extract ids from label lines .