def phred_quality_from_solexa(solexa_quality):
 if (solexa_quality is None):
  return None
 if (solexa_quality < (-5)):
  warnings.warn(('Solexa quality less than -5 passed, %r' % solexa_quality), BiopythonWarning)
 return (10 * log(((10 ** (solexa_quality / 10.0)) + 1), 10))

def phred_quality_from_solexa ( solexa_quality ) : if ( solexa_quality is None ) : return None if ( solexa_quality < ( - 5 ) ) : warnings . warn ( ( 'Solexa quality less than -5 passed, %r' % solexa_quality ) , BiopythonWarning ) return ( 10 * log ( ( ( 10 ** ( solexa_quality / 10.0 ) ) + 1 ) , 10 ) )
convert a solexa quality to a phred quality .