def verify_equivalency(fasta_seqs, qual_scores):
 if (len(fasta_seqs) != len(qual_scores)):
  raise ValueError(('Number of sequences not equal in input fasta ' + 'and qual file.'))
 qual_scores_labels = set(qual_scores.keys())
 for label in fasta_seqs.keys():
  if (label not in qual_scores_labels):
   raise ValueError((('Fasta label %s not found in quality score ' % label) + 'file.'))
  if (len(fasta_seqs[label]) != len(qual_scores[label])):
   raise ValueError((('Sequence %s does not have equivalent ' % label) + 'base positions between fasta and quality score file.'))

def verify_equivalency ( fasta_seqs , qual_scores ) : if ( len ( fasta_seqs ) != len ( qual_scores ) ) : raise ValueError ( ( 'Number of sequences not equal in input fasta ' + 'and qual file.' ) ) qual_scores_labels = set ( qual_scores . keys ( ) ) for label in fasta_seqs . keys ( ) : if ( label not in qual_scores_labels ) : raise ValueError ( ( ( 'Fasta label %s not found in quality score ' % label ) + 'file.' ) ) if ( len ( fasta_seqs [ label ] ) != len ( qual_scores [ label ] ) ) : raise ValueError ( ( ( 'Sequence %s does not have equivalent ' % label ) + 'base positions between fasta and quality score file.' ) )
tests for equivalent labels .