def _check(seq, method):
 seq = ''.join(seq.split()).upper()
 seq = str(Seq.Seq(seq).back_transcribe())
 if (method == 'Tm_Wallace'):
  return seq
 if (method == 'Tm_GC'):
  baseset = ('A', 'B', 'C', 'D', 'G', 'H', 'I', 'K', 'M', 'N', 'R', 'S', 'T', 'V', 'W', 'X', 'Y')
 if (method == 'Tm_NN'):
  baseset = ('A', 'C', 'G', 'T', 'I')
 seq = ''.join([base for base in seq if (base in baseset)])
 return seq

def _check ( seq , method ) : seq = '' . join ( seq . split ( ) ) . upper ( ) seq = str ( Seq . Seq ( seq ) . back_transcribe ( ) ) if ( method == 'Tm_Wallace' ) : return seq if ( method == 'Tm_GC' ) : baseset = ( 'A' , 'B' , 'C' , 'D' , 'G' , 'H' , 'I' , 'K' , 'M' , 'N' , 'R' , 'S' , 'T' , 'V' , 'W' , 'X' , 'Y' ) if ( method == 'Tm_NN' ) : baseset = ( 'A' , 'C' , 'G' , 'T' , 'I' ) seq = '' . join ( [ base for base in seq if ( base in baseset ) ] ) return seq
return a sequence which fullfils the requirements of the given method .