How to use the protvista-feature-adapter.renameProperties function in protvista-feature-adapter

To help you get started, we’ve selected a few protvista-feature-adapter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ebi-webcomponents / nightingale / packages / protvista-proteomics-adapter / src / ProtvistaProteomicsAdapter.js View on Github external
export const transformData = data => {
  let adaptedData = [];
  if (data && data.length !== 0) {
    adaptedData = data.features.map(feature => {
      return Object.assign(feature, {
        category: "PROTEOMICS",
        type: feature.unique ? "unique" : "non_unique",
        tooltipContent: formatTooltip(feature)
      });
    });
    adaptedData = renameProperties(adaptedData);
  }
  return adaptedData;
};

protvista-feature-adapter

[![Published on NPM](https://img.shields.io/npm/v/protvista-feature-adapter.svg)](https://www.npmjs.com/package/protvista-feature-adapter)

MIT
Latest version published 10 days ago

Package Health Score

77 / 100
Full package analysis