def _log_rescale(baseline, mode='mean'):
 if (baseline is not None):
  valid_modes = ('logratio', 'ratio', 'zscore', 'mean', 'percent', 'zlogratio')
  if (mode not in valid_modes):
   raise Exception(('mode should be any of : %s' % (valid_modes,)))
  msg = ('Applying baseline correction (mode: %s)' % mode)
 else:
  msg = 'No baseline correction applied'
 return msg

def _log_rescale ( baseline , mode = 'mean' ) : if ( baseline is not None ) : valid_modes = ( 'logratio' , 'ratio' , 'zscore' , 'mean' , 'percent' , 'zlogratio' ) if ( mode not in valid_modes ) : raise Exception ( ( 'mode should be any of : %s' % ( valid_modes , ) ) ) msg = ( 'Applying baseline correction (mode: %s)' % mode ) else : msg = 'No baseline correction applied' return msg
log the rescaling method .