INNER CODE UNIT · JavaScript

start

oncologylab/fp-tools · src/fp_tools/resources/static_browser/app.js:91

    start = Math.ceil(min / step) * step,
    end = Math.floor(max / step) * step,
    out = [];
  for (let value = start; value <= end + step * 0.25; value += step)
    out.push(Math.abs(value) < step / 1e6 ? 0 : value);
  return out.length ? out : [min, max];
}
function colorFor(motif) {
  if (!motif.significant) return state.colors.neutral;
  return motif.effect >= 0 ? state.colors.first : state.colors.second;
}
function groupFor(motif) {
  if (!motif.significant) return "n.s.";
  return motif.effect >= 0 ? `${state.first}_up` : `${state.second}_up`;
}
function downloadBlob(blob, name) {
  const url = URL.createObjectURL(blob),
    anchor = document.createElement("a");

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…