def check_all_ids(fasta_labels, sample_ids):
 raw_fasta_labels = set([label.split('_')[0] for label in fasta_labels])
 sample_ids_not_found = []
 for curr_id in sample_ids:
  if (curr_id not in raw_fasta_labels):
   sample_ids_not_found.append(curr_id)
 if (len(sample_ids_not_found) == 0):
  sample_ids_not_found = True
 return sample_ids_not_found

def check_all_ids ( fasta_labels , sample_ids ) : raw_fasta_labels = set ( [ label . split ( '_' ) [ 0 ] for label in fasta_labels ] ) sample_ids_not_found = [ ] for curr_id in sample_ids : if ( curr_id not in raw_fasta_labels ) : sample_ids_not_found . append ( curr_id ) if ( len ( sample_ids_not_found ) == 0 ) : sample_ids_not_found = True return sample_ids_not_found
tests that all sample ids from mapping file are found in seq labels fasta_labels: list of fasta labels sample_ids: set of sample ids from mapping file .