def fasta_ids(fasta_files, verbose=False):
 all_ids = set([])
 for fasta_in in fasta_files:
  for (label, seq) in parse_fasta(fasta_in):
   rid = label.split()[0]
   if (rid in all_ids):
    raise ValueError(('Duplicate ID found in FASTA/qual file: %s' % label))
   all_ids.add(rid)
 return all_ids

def fasta_ids ( fasta_files , verbose = False ) : all_ids = set ( [ ] ) for fasta_in in fasta_files : for ( label , seq ) in parse_fasta ( fasta_in ) : rid = label . split ( ) [ 0 ] if ( rid in all_ids ) : raise ValueError ( ( 'Duplicate ID found in FASTA/qual file: %s' % label ) ) all_ids . add ( rid ) return all_ids
returns list of ids in fasta files .