data = {
const r = [
{tool: "FGS", type: "short", reads: 23373, theads: 1, time: 11.2361},
{tool: "FGS+", type: "short", reads: 23373, theads: 1, time: 1.1971},
{tool: "FGSrs", type: "short", reads: 23373, theads: 1, time: 0.9974},
{tool: "FGS", type: "long", reads: 19349, theads: 1, time: 31.7019},
{tool: "FGS+", type: "long", reads: 19349, theads: 1, time: 10.5704},
{tool: "FGSrs", type: "long", reads: 19349, theads: 1, time: 8.643},
];
r.forEach(d => {
if (d.type === "short") d.type = "Short reads (80bp)";
if (d.type === "long") d.type = "Long reads (1328bp)";
d.rps = d.reads / d.time;
});
return r;
}