def get_per_lib_sff_fps(sff_dir):
 for (dirpath, dirnames, fnames) in walk(sff_dir):
  for fname in fnames:
   if fname.endswith('.sff'):
    (libname, _) = splitext(fname)
    (yield (libname, join(dirpath, fname)))

def get_per_lib_sff_fps ( sff_dir ) : for ( dirpath , dirnames , fnames ) in walk ( sff_dir ) : for fname in fnames : if fname . endswith ( '.sff' ) : ( libname , _ ) = splitext ( fname ) ( yield ( libname , join ( dirpath , fname ) ) )
return a dict mapping library ids to sff filepaths in a directory .