def convert_Ti_to_FLX(sff_fp, output_fp, use_sfftools=False):
 if use_sfftools:
  _fail_on_gzipped_sff(sff_fp)
  check_sfffile()
  _check_call(['sfffile', '-flx', '-o', output_fp, sff_fp], stdout=open(devnull, 'w'))
 else:
  (header, reads) = adjust_sff_cycles(parse_binary_sff(qiime_open(sff_fp, 'rb'), True), 100)
  write_binary_sff(open(output_fp, 'w'), header, reads)

def convert_Ti_to_FLX ( sff_fp , output_fp , use_sfftools = False ) : if use_sfftools : _fail_on_gzipped_sff ( sff_fp ) check_sfffile ( ) _check_call ( [ 'sfffile' , '-flx' , '-o' , output_fp , sff_fp ] , stdout = open ( devnull , 'w' ) ) else : ( header , reads ) = adjust_sff_cycles ( parse_binary_sff ( qiime_open ( sff_fp , 'rb' ) , True ) , 100 ) write_binary_sff ( open ( output_fp , 'w' ) , header , reads )
converts titanium sff to flx length reads .