JS client

Getting started:

Retrieve most relevant terms from g:Profiler and render these as a string cloud.

Install the module with: npm install biojs-vis-gprofiler. Copy the minified module build/biojsvisgprofiler.min.js to your scripts directory.

Usage without a module loader:

<script src="/path/to/biojsvisgprofiler.min.js"></script>
<script type="text/javascript">
  document.addEventListener("DOMContentLoaded", function(e) {
    gp = new biojsVisGprofiler({
      container: "#myContainer",
      width: 500,
      height: 300,
    });

    gp.on("onrender", function() {
      console.log("caught render event");
    });

    gp.render({
      query: ["swi4", "swi6", "mbp1", "mcm1", "fkh1", "fkh2"],
      organism: "scerevisiae",
    });
});
</script>

If using a module loader such as require.js require the module from within your application or directly, such as:

<script src="require.js"></script>
<script>
  require(['/path/to/biojsvisgprofiler.min.js'], function(biojsVisGprofiler) {
    ...
  });
</script>

You can try it here: