def parallel_beta_diversity_process_run_results_f(f):
 for line in f:
  fields = line.strip().split(' DCTB ')
  dm_components = fields[:(-1)]
  output_fp = fields[(-1)]
  dm = assemble_distance_matrix(map(open, dm_components))
  output_f = open(output_fp, 'w')
  output_f.write(dm)
  output_f.close()
 return True

def parallel_beta_diversity_process_run_results_f ( f ) : for line in f : fields = line . strip ( ) . split ( ' DCTB ' ) dm_components = fields [ : ( - 1 ) ] output_fp = fields [ ( - 1 ) ] dm = assemble_distance_matrix ( map ( open , dm_components ) ) output_f = open ( output_fp , 'w' ) output_f . write ( dm ) output_f . close ( ) return True
handles re-assembling of a distance matrix from component vectors .