def merge_assemblies res

      l = @options[:left]
      r = @options[:right]

      transfuse = Transfuse::Transfuse.new(@options[:threads], false)
      assemblies = res.each_value.map { |assembler| assember[:final] }
      scores = transfuse.transrate(assemblies, l, r)
      filtered = transfuse.filter(assemblies, scores)
      cat = transfuse.concatenate filtered
      transfuse.load_fasta cat
      clusters = transfuse.cluster cat
      best = transfuse.select_contigs(clusters, scores)
      transfuse.output_contigs(best, cat, 'merged.fa')

    end
def merge_assemblies res

      l = @options[:left]
      r = @options[:right]

      transfuse = Transfuse::Transfuse.new(@options[:threads], false)
      assemblies = res.each_value.map { |assembler| assember[:final] }
      scores = transfuse.transrate(assemblies, l, r)
      filtered = transfuse.filter(assemblies, scores)
      cat = transfuse.concatenate filtered
      transfuse.load_fasta cat
      clusters = transfuse.cluster cat
      best = transfuse.select_contigs(clusters, scores)
      transfuse.output_contigs(best, cat, 'merged.fa')

    end
Merge the final assemblies