def cat_sff_files(list_of_file_handles):
 if (list_of_file_handles == []):
  return ([], None)
 try:
  flowgrams_and_headers = map(lazy_parse_sff_handle, list_of_file_handles)
 except ValueError:
  raise FileFormatError(('Wrong flogram file format. Make sure you pass the sff.txt format ' + 'produced by sffinfo. The binary .sff will not work here.'))
 flowgram_iterators = [a for (a, b) in flowgrams_and_headers]
 return (chain(*flowgram_iterators), flowgrams_and_headers[0][1])

def cat_sff_files ( list_of_file_handles ) : if ( list_of_file_handles == [ ] ) : return ( [ ] , None ) try : flowgrams_and_headers = map ( lazy_parse_sff_handle , list_of_file_handles ) except ValueError : raise FileFormatError ( ( 'Wrong flogram file format. Make sure you pass the sff.txt format ' + 'produced by sffinfo. The binary .sff will not work here.' ) ) flowgram_iterators = [ a for ( a , b ) in flowgrams_and_headers ] return ( chain ( * flowgram_iterators ) , flowgrams_and_headers [ 0 ] [ 1 ] )
virtually concat several sff files list_of_file_handles: list of open filehandles to .