def make_qual(sff_fp, output_fp, use_sfftools=False, no_trim=False):
 if use_sfftools:
  _fail_on_gzipped_sff(sff_fp)
  check_sffinfo()
  if no_trim:
   _check_call(['sffinfo', '-notrim', '-q', sff_fp], stdout=open(output_fp, 'w'))
  else:
   _check_call(['sffinfo', '-q', sff_fp], stdout=open(output_fp, 'w'))
 else:
  try:
   format_binary_sff_as_fna(qiime_open(sff_fp, 'rb'), open(output_fp, 'w'), qual=True)
  except:
   raise IOError(('Could not parse SFF %s' % sff_fp))

def make_qual ( sff_fp , output_fp , use_sfftools = False , no_trim = False ) : if use_sfftools : _fail_on_gzipped_sff ( sff_fp ) check_sffinfo ( ) if no_trim : _check_call ( [ 'sffinfo' , '-notrim' , '-q' , sff_fp ] , stdout = open ( output_fp , 'w' ) ) else : _check_call ( [ 'sffinfo' , '-q' , sff_fp ] , stdout = open ( output_fp , 'w' ) ) else : try : format_binary_sff_as_fna ( qiime_open ( sff_fp , 'rb' ) , open ( output_fp , 'w' ) , qual = True ) except : raise IOError ( ( 'Could not parse SFF %s' % sff_fp ) )
makes qual file from sff file .