Sha256: ab03cb3b77c52688ea1de90f2d6ee58d6157f73daaffb1445b707f3ce9943cfb

Contents?: true

Size: 707 Bytes

Versions: 31

Compression:

Stored size: 707 Bytes

Contents

var drawCircos = function(error, GRCh37, data) {
  var circos = new circosJS({
    container: '#chart'
  });

  data = data.map(function(d){
    return [
      d.source_id,
      parseInt(d.source_breakpoint) - 2000000,
      parseInt(d.source_breakpoint) + 2000000,
      d.target_id,
      parseInt(d.target_breakpoint) - 2000000,
      parseInt(d.target_breakpoint) + 2000000,
      1
    ];
  });

  circos
    .layout(
      {
        ticks: {display: true},
      },
      GRCh37
    )
    .chord('gene-fusion', {usePalette: false, color: '#fd6a62'}, data)
    .render();
};

queue()
    .defer(d3.json, "/../data/GRCh37.json")
    .defer(d3.csv, "/../data/fusion-genes.csv")
    .await(drawCircos);

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
sequenceserver-3.1.3 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js
sequenceserver-3.1.2 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js
sequenceserver-3.1.1 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js
sequenceserver-3.1.0 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js
sequenceserver-3.0.1 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js
sequenceserver-3.0 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js
sequenceserver-2.2.0 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js
sequenceserver-2.1.0 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js
sequenceserver-2.0.0 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js
sequenceserver-2.0.0.rc8 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js
sequenceserver-2.0.0.rc7 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js
sequenceserver-2.0.0.rc6 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js
sequenceserver-2.0.0.rc5 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js
sequenceserver-2.0.0.rc4 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js
sequenceserver-2.0.0.rc3 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js
sequenceserver-2.0.0.rc2 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js
sequenceserver-2.0.0.rc1 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js
sequenceserver-2.0.0.beta4 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js
sequenceserver-2.0.0.beta3 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js
sequenceserver-2.0.0.beta1 public/vendor/github/nicgirault/circosJs@1.7.0/demo/demo-chords.js