def integrate_fasta_headers(data, fasta_mapper)
      data_dict = group_by_first_key(data)
      data = fasta_mapper.map do |header, key|
        result = data_dict[key]
        unless result.nil?
          result = result.map do |row|
            copy = { fasta_header: header }
            copy.merge(row)
          end
        end
        result
      end
      data.compact.flatten(1)
    end
def integrate_fasta_headers(data, fasta_mapper)
      data_dict = group_by_first_key(data)
      data = fasta_mapper.map do |header, key|
        result = data_dict[key]
        unless result.nil?
          result = result.map do |row|
            copy = { fasta_header: header }
            copy.merge(row)
          end
        end
        result
      end
      data.compact.flatten(1)
    end
Integrates the fasta headers into the data object