How to use the oncoprintjs/src/js/haselementsininterval function in oncoprintjs

To help you get started, we’ve selected a few oncoprintjs 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 plotly / react-oncoprint / src / PrecomputedComparator.js View on Github external
return -1;
    }

    let shouldNegateResult = false;

    if (i1 === i2) {
      return 0;
    } else if (i1 > i2) {
      const tmp = i1;
      i1 = i2;
      i2 = tmp;
      shouldNegateResult = true;
    }

    let res = 0;
    if (hasElementsInInterval(this.changePoints, (x) => x, i1, i2)) {
      res = -1;
    }

    if (shouldNegateResult) {
      res *= -1;
    }

    return res;
  }
}

oncoprintjs

A data visualization for cancer genomic data.

LGPL-3.0
Latest version published 6 months ago

Package Health Score

42 / 100
Full package analysis

Popular oncoprintjs functions