GUIDE
- Left-click and drag the background to move the graph
- Left-click and drag the nodes to reorganize
- Left-click a node to view first level connections
- Double left-click a node to navigate to its page
- Double left-click the background to zoom in
- Right-click the background to zoom out
sigma.utils.pkg('sigma.canvas.nodes');
sigma.canvas.nodes.image = (function() {
var _cache = {},
_loading = {},
_callbacks = {};
// Return the renderer itself:
var renderer = function(node, context, settings) {
var args = arguments,
prefix = settings('prefix') || '',
size = node[prefix + 'size'],
color = node.color || settings('defaultNodeColor'),
url = node.url;
if (_cache[url]) {
context.save();
// Draw the clipping disc:
context.beginPath();
context.arc(
node[prefix + 'x'],
node[prefix + 'y'],
node[prefix + 'size'],
0,
Math.PI * 2,
true
);
context.closePath();
context.clip();
// Draw the image
context.drawImage(
_cache[url],
node[prefix + 'x'] - size,
node[prefix + 'y'] - size,
2 * size,
2 * size
);
// Quit the "clipping mode":
context.restore();
// Draw the border:
context.beginPath();
context.arc(
node[prefix + 'x'],
node[prefix + 'y'],
node[prefix + 'size'],
0,
Math.PI * 2,
true
);
context.lineWidth = 1;
context.strokeStyle = node.color || settings('defaultNodeColor');
context.stroke();
} else {
sigma.canvas.nodes.image.cache(url);
sigma.canvas.nodes.def.apply(
sigma.canvas.nodes,
args
);
}
};
// Let's add a public method to cache images, to make it possible to
// preload images before the initial rendering:
renderer.cache = function(url, callback) {
if (callback)
_callbacks[url] = callback;
if (_loading[url])
return;
var img = new Image();
img.onload = function() {
_loading[url] = false;
_cache[url] = img;
if (_callbacks[url]) {
_callbacks[url].call(this, img);
delete _callbacks[url];
}
};
_loading[url] = true;
img.src = url;
};
return renderer;
})();
var i,
s,
o,
offset_left = 0.5,
N = 1,
E = 40,
C = 5,
d = 0.5,
cs = [],
g = {
nodes: [],
edges: []
};
if (!sigma.classes.graph.hasMethod('neighbors')){
sigma.classes.graph.addMethod('neighbors', function(nodeId) {
var k,
neighbors = {},
index = this.allNeighborsIndex[nodeId] || {};
for (k in index)
neighbors[k] = this.nodesIndex[k];
return neighbors;
});
}
//adding the central node
g.nodes.push({
id: 25653,
label: 'Olaya Rendueles-Garcia',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/03/research_pasteur-photo_olaya2-150x150.jpg',
x: 0,
y: 0,
size: 30,
color: '#DDDDDD'
});
var biggest_node_size = 0;
N=32
// adding node
var x_node = Math.cos(2 * 0 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 0 * Math.PI / N) * 10;
g.nodes.push({
id: 199884,
label: 'NEWS: Highlighted paper: “Competition between lysogenic and sensitive bacteria is determined by the fitness costs of the different emerging phage-resistance strategies” ; Rendueles et al. ; eLife – March 2023',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/highlighted-paper-competition-between-lysogenic-and-sensitive-bacteria-is-determined-by-the-fitness-costs-of-the-different-emerging-phage-resistance-strategies-rendueles-et-al-elife-march/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653199884,
size: 0.5,
source: 25653,
target: 199884,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 19988425653,
size: 0.5,
source: 199884,
target: 25653 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 75259,
label: 'Jorge Moura de Sousa',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/08/research.pasteur.fr_citations-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/jorge-moura-de-sousa/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 19988475259,
size: 0.5,
source: 199884,
target: 75259 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4684,
label: 'Eduardo Rocha',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_eduardo_rocha-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/eduardo-rocha/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1998844684,
size: 0.5,
source: 199884,
target: 4684 });
// adding node
var x_node = Math.cos(2 * 1 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 1 * Math.PI / N) * 10;
g.nodes.push({
id: 196384,
label: 'PROJECT: ANR BETinCAP',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/project/anr-betincap/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653196384,
size: 0.5,
source: 25653,
target: 196384,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 19638425653,
size: 0.5,
source: 196384,
target: 25653 });
// adding node
var x_node = Math.cos(2 * 2 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 2 * Math.PI / N) * 10;
g.nodes.push({
id: 188027,
label: 'NEWS: Our project “BETinCAP” got funded by ANR!',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/our-project-betincap-got-funded-by-anr/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653188027,
size: 0.5,
source: 25653,
target: 188027,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 18802725653,
size: 0.5,
source: 188027,
target: 25653 });
// adding node
var x_node = Math.cos(2 * 3 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 3 * Math.PI / N) * 10;
g.nodes.push({
id: 156126,
label: 'NEWS: AWARDS: Olaya Rendueles-Garcia receives the 2021 CNRS Bronze Medal',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/olaya-rendueles-garcia/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653156126,
size: 0.5,
source: 25653,
target: 156126,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 15612625653,
size: 0.5,
source: 156126,
target: 25653 });
// adding node
var x_node = Math.cos(2 * 4 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 4 * Math.PI / N) * 10;
g.nodes.push({
id: 155073,
label: 'NEWS: Amandine Buffet’s first first author paper on maintenance of the capsule is out!!',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/amandine-buffets-first-first-author-paper-on-maintenance-of-the-capsule-is-now-out/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653155073,
size: 0.5,
source: 25653,
target: 155073,
});
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 99732,
label: 'Amandine Nucci',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/02/research_pasteur-screen-shot-2019-02-22-at-3.19.38-pm-150x150.png',
page_url: 'https://research.pasteur.fr/fr/member/amandine-nucci/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 15507399732,
size: 0.5,
source: 155073,
target: 99732 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1550734684,
size: 0.5,
source: 155073,
target: 4684 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 15507325653,
size: 0.5,
source: 155073,
target: 25653 });
// adding node
var x_node = Math.cos(2 * 5 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 5 * Math.PI / N) * 10;
g.nodes.push({
id: 146814,
label: 'NEWS: Special issue on “Extracellular capsules”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/news/special-issue-on-extracellular-capsules/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653146814,
size: 0.5,
source: 25653,
target: 146814,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 14681425653,
size: 0.5,
source: 146814,
target: 25653 });
// adding node
var x_node = Math.cos(2 * 6 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 6 * Math.PI / N) * 10;
g.nodes.push({
id: 145007,
label: 'NEWS: Our first experimental paper is out: Prophages in Klebsiella sp. And lots of them!',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/07/research_pasteur-figure1-150x150.png',
page_url: 'https://research.pasteur.fr/fr/news/our-first-experimental-paper-is-out-prophages-in-klebsiella-lots-of-them/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653145007,
size: 0.5,
source: 25653,
target: 145007,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 14500725653,
size: 0.5,
source: 145007,
target: 25653 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 103179,
label: 'Matthieu Haudiquet',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/matthieu-haudiquet/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 145007103179,
size: 0.5,
source: 145007,
target: 103179 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1450074684,
size: 0.5,
source: 145007,
target: 4684 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 99732) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 14500799732,
size: 0.5,
source: 145007,
target: 99732 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 75259) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 14500775259,
size: 0.5,
source: 145007,
target: 75259 });
// adding node
var x_node = Math.cos(2 * 7 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 7 * Math.PI / N) * 10;
g.nodes.push({
id: 126638,
label: 'EVENT: [C3BI Seminar & INCEPTION] Chris Adami- Evolution of information in HIV-1 protease',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/c3bi-seminar-inception-chris-adami-evolution-of-information-in-hiv-1-protease/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653126638,
size: 0.5,
source: 25653,
target: 126638,
});
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 104981,
label: 'Pascal Campagne',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/07/research_pasteur-img_0911-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/pascal-campagne/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 126638104981,
size: 0.5,
source: 126638,
target: 104981 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4717,
label: 'Maxime Rotival',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/06/research_pasteur-twitterphotorussia-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/maxime-rotival/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1266384717,
size: 0.5,
source: 126638,
target: 4717 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 63334,
label: 'Natalia Pietrosemoli',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/03/research.pasteur.fr_natphoto-1-150x150.png',
page_url: 'https://research.pasteur.fr/fr/member/natalia-pietrosemoli/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 12663863334,
size: 0.5,
source: 126638,
target: 63334 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 12663825653,
size: 0.5,
source: 126638,
target: 25653 });
// adding node
var x_node = Math.cos(2 * 8 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 8 * Math.PI / N) * 10;
g.nodes.push({
id: 126247,
label: 'TEAM: Groupe : Evolution & écologie moléculaire microbienne',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/05/research_pasteur-group-o-rendueles-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/group-olaya-rendueles-garcia/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653126247,
size: 0.5,
source: 25653,
target: 126247,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 99732) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 12624799732,
size: 0.5,
source: 126247,
target: 99732 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 103179) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 126247103179,
size: 0.5,
source: 126247,
target: 103179 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 12624725653,
size: 0.5,
source: 126247,
target: 25653 });
// adding node
var x_node = Math.cos(2 * 9 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 9 * Math.PI / N) * 10;
g.nodes.push({
id: 125892,
label: 'EVENT: [C3BI Seminar]- Eran Halperin: New computational tools for the analysis of microbiome dynamics',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/c3bi-seminar-eran-halperin-new-computational-tools-for-the-analysis-of-microbiome-dynamics/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653125892,
size: 0.5,
source: 25653,
target: 125892,
});
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 119690,
label: 'Rayan Chikhi',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/05/research_pasteur-photo_pasteur-150x150.png',
page_url: 'https://research.pasteur.fr/fr/member/rayan-chikhi/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 125892119690,
size: 0.5,
source: 125892,
target: 119690 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 12589225653,
size: 0.5,
source: 125892,
target: 25653 });
// adding node
var x_node = Math.cos(2 * 10 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 10 * Math.PI / N) * 10;
g.nodes.push({
id: 125583,
label: 'EVENT: A population genetic interpretation of complex trait architecture in humans',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/a-population-genetic-interpretation-of-complex-trait-architecture-in-humans/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653125583,
size: 0.5,
source: 25653,
target: 125583,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4717) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1255834717,
size: 0.5,
source: 125583,
target: 4717 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 104981) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 125583104981,
size: 0.5,
source: 125583,
target: 104981 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 12558325653,
size: 0.5,
source: 125583,
target: 25653 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 63334) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 12558363334,
size: 0.5,
source: 125583,
target: 63334 });
// adding node
var x_node = Math.cos(2 * 11 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 11 * Math.PI / N) * 10;
g.nodes.push({
id: 122678,
label: 'EVENT: [C3BI Seminar] – Nevan Krogan: Using Systems Approaches to Understand the Mechanism of Disease',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/c3bi-seminar-nevan-krogan-using-systems-approaches-to-understand-the-mechanism-of-disease/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653122678,
size: 0.5,
source: 25653,
target: 122678,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4717) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1226784717,
size: 0.5,
source: 122678,
target: 4717 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 63334) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 12267863334,
size: 0.5,
source: 122678,
target: 63334 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 104981) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 122678104981,
size: 0.5,
source: 122678,
target: 104981 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 12267825653,
size: 0.5,
source: 122678,
target: 25653 });
// adding node
var x_node = Math.cos(2 * 12 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 12 * Math.PI / N) * 10;
g.nodes.push({
id: 120998,
label: 'EVENT: [C3BI Seminar]- Amine Ghozlane: The human gut resistome',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/c3bi-seminar-amine-ghozlane-the-human-gut-resistome/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653120998,
size: 0.5,
source: 25653,
target: 120998,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 12099825653,
size: 0.5,
source: 120998,
target: 25653 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4717) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1209984717,
size: 0.5,
source: 120998,
target: 4717 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 63334) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 12099863334,
size: 0.5,
source: 120998,
target: 63334 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 104981) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 120998104981,
size: 0.5,
source: 120998,
target: 104981 });
// adding node
var x_node = Math.cos(2 * 13 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 13 * Math.PI / N) * 10;
g.nodes.push({
id: 120719,
label: 'EVENT: [C3BI Seminar]- Zamin Iqbal: Nucleotide-level analysis of genetic variation in the bacterial pan-genome',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/c3bi-seminar-zamin-iqbal-nucleotide-level-analysis-of-genetic-variation-in-the-bacterial-pan-genome/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653120719,
size: 0.5,
source: 25653,
target: 120719,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 12071925653,
size: 0.5,
source: 120719,
target: 25653 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4717) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1207194717,
size: 0.5,
source: 120719,
target: 4717 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 63334) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 12071963334,
size: 0.5,
source: 120719,
target: 63334 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 104981) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 120719104981,
size: 0.5,
source: 120719,
target: 104981 });
// adding node
var x_node = Math.cos(2 * 14 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 14 * Math.PI / N) * 10;
g.nodes.push({
id: 119783,
label: 'EVENT: [C3BI Seminar]- Yves Moreau: Bayesian matrix factorization for drug discovery and precision medicine',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/c3bi-seminar-yves-moreau-bayesian-matrix-factorization-for-drug-discovery-and-precision-medicine/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653119783,
size: 0.5,
source: 25653,
target: 119783,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 11978325653,
size: 0.5,
source: 119783,
target: 25653 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 63334) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 11978363334,
size: 0.5,
source: 119783,
target: 63334 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 104981) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 119783104981,
size: 0.5,
source: 119783,
target: 104981 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4717) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1197834717,
size: 0.5,
source: 119783,
target: 4717 });
// adding node
var x_node = Math.cos(2 * 15 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 15 * Math.PI / N) * 10;
g.nodes.push({
id: 119159,
label: 'NEWS: Genetic exchanges are more frequent in bacteria encoding capsules',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/01/research_pasteur-hgt-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/news/our-newest-paper-genetic-exchanges-are-more-frequent-in-bacteria-encoding-capsules/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653119159,
size: 0.5,
source: 25653,
target: 119159,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 11915925653,
size: 0.5,
source: 119159,
target: 25653 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1191594684,
size: 0.5,
source: 119159,
target: 4684 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 75259) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 11915975259,
size: 0.5,
source: 119159,
target: 75259 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4685,
label: 'Marie Touchon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_touchon-150x150.jpeg',
page_url: 'https://research.pasteur.fr/fr/member/marie-touchon/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1191594685,
size: 0.5,
source: 119159,
target: 4685 });
// adding node
var x_node = Math.cos(2 * 16 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 16 * Math.PI / N) * 10;
g.nodes.push({
id: 112944,
label: 'EVENT: [Seminar C3BI]-Integrated and spatial-temporal multiscale modeling of liver guide in vivo experiments in healthy & chronic disease states: a blue print for systems medicine? -by Dirk DRASDO',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/seminar-c3bi-integrated-and-spatial-temporal-multiscale-modeling-of-liver-guide-in-vivo-experiments-in-healthy-chronic-disease-states-a-blue-print-for-systems-medicine-by-dirk-drasdo/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653112944,
size: 0.5,
source: 25653,
target: 112944,
});
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4084,
label: 'Christophe Becavin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/04/research_pasteur-christophe-becavin-shoot-03_10_18-174-edit-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/christophe-becavin/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1129444084,
size: 0.5,
source: 112944,
target: 4084 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4717) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1129444717,
size: 0.5,
source: 112944,
target: 4717 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 104981) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 112944104981,
size: 0.5,
source: 112944,
target: 104981 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 11294425653,
size: 0.5,
source: 112944,
target: 25653 });
// adding node
var x_node = Math.cos(2 * 17 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 17 * Math.PI / N) * 10;
g.nodes.push({
id: 111443,
label: 'PROJECT: ANR ENCAPSULATION',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/project/anr-encapsulation/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653111443,
size: 0.5,
source: 25653,
target: 111443,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 99732) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 11144399732,
size: 0.5,
source: 111443,
target: 99732 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 103179) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 111443103179,
size: 0.5,
source: 111443,
target: 103179 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 121547,
label: 'Elif Elçin',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/?post_type=member&p=121547',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 111443121547,
size: 0.5,
source: 111443,
target: 121547 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 11144325653,
size: 0.5,
source: 111443,
target: 25653 });
// adding node
var x_node = Math.cos(2 * 18 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 18 * Math.PI / N) * 10;
g.nodes.push({
id: 111931,
label: 'EVENT: C3BI Seminars – Signatures of ecological processes in microbial community time series',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/signatures-of-ecological-processes-in-microbial-community-time-series/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653111931,
size: 0.5,
source: 25653,
target: 111931,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4717) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1119314717,
size: 0.5,
source: 111931,
target: 4717 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4084) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1119314084,
size: 0.5,
source: 111931,
target: 4084 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 104981) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 111931104981,
size: 0.5,
source: 111931,
target: 104981 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 11193125653,
size: 0.5,
source: 111931,
target: 25653 });
// adding node
var x_node = Math.cos(2 * 19 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 19 * Math.PI / N) * 10;
g.nodes.push({
id: 106190,
label: 'EVENT: [C3BI Unit Seminar]',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/c3bi-unit-seminar-gael-millot-anthony-cousien/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653106190,
size: 0.5,
source: 25653,
target: 106190,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 10619025653,
size: 0.5,
source: 106190,
target: 25653 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4084) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1061904084,
size: 0.5,
source: 106190,
target: 4084 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4717) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1061904717,
size: 0.5,
source: 106190,
target: 4717 });
// adding node
var x_node = Math.cos(2 * 20 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 20 * Math.PI / N) * 10;
g.nodes.push({
id: 105204,
label: 'EVENT: C3BI Seminar : MixMD: Mapping Protein Surfaces to Discover Druggable Allosteric Sites',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/c3bi-seminar-mixmd-mapping-protein-surfaces-discover-druggable-allosteric-sites/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653105204,
size: 0.5,
source: 25653,
target: 105204,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4717) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1052044717,
size: 0.5,
source: 105204,
target: 4717 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4612,
label: 'Thérèse Malliavin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_3ccf6f5-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/therese-malliavin/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1052044612,
size: 0.5,
source: 105204,
target: 4612 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4084) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1052044084,
size: 0.5,
source: 105204,
target: 4084 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 10520425653,
size: 0.5,
source: 105204,
target: 25653 });
// adding node
var x_node = Math.cos(2 * 21 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 21 * Math.PI / N) * 10;
g.nodes.push({
id: 104055,
label: 'EVENT: C3BI Seminar: Hierarchical functional genomics to interpret genome variation and dissect complex disease architecture',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/hierarchical-functional-genomics-interpret-genome-variation-dissect-complex-disease-architecture/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653104055,
size: 0.5,
source: 25653,
target: 104055,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4717) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1040554717,
size: 0.5,
source: 104055,
target: 4717 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 10405525653,
size: 0.5,
source: 104055,
target: 25653 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4084) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1040554084,
size: 0.5,
source: 104055,
target: 4084 });
// adding node
var x_node = Math.cos(2 * 22 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 22 * Math.PI / N) * 10;
g.nodes.push({
id: 103240,
label: 'EVENT: C3BI Seminar: Learning tumor phylogenies from single-cell data',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/c3bi-seminar-learning-tumor-phylogenies-single-cell-data-niko-beerenwinkel/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653103240,
size: 0.5,
source: 25653,
target: 103240,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4084) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1032404084,
size: 0.5,
source: 103240,
target: 4084 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4717) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1032404717,
size: 0.5,
source: 103240,
target: 4717 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 10324025653,
size: 0.5,
source: 103240,
target: 25653 });
// adding node
var x_node = Math.cos(2 * 23 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 23 * Math.PI / N) * 10;
g.nodes.push({
id: 103156,
label: 'EVENT: C3BI Seminar – Some lessons learned during 30 years of biocuration activities.',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/c3bi-seminar-amos-bairoch-lessons-learned-30-years-biocuration-activities/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653103156,
size: 0.5,
source: 25653,
target: 103156,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 10315625653,
size: 0.5,
source: 103156,
target: 25653 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4084) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1031564084,
size: 0.5,
source: 103156,
target: 4084 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4717) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1031564717,
size: 0.5,
source: 103156,
target: 4717 });
// adding node
var x_node = Math.cos(2 * 24 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 24 * Math.PI / N) * 10;
g.nodes.push({
id: 100001,
label: 'EVENT: C3BI Seminar – Inferring causality in complex molecular pathways from live cell movies',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/c3bi-seminar-inferring-causality-complex-molecular-pathways-live-cell-movies-prof-gaudenz-danuser/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 25653100001,
size: 0.5,
source: 25653,
target: 100001,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 10000125653,
size: 0.5,
source: 100001,
target: 25653 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4717) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1000014717,
size: 0.5,
source: 100001,
target: 4717 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4084) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1000014084,
size: 0.5,
source: 100001,
target: 4084 });
// adding node
var x_node = Math.cos(2 * 25 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 25 * Math.PI / N) * 10;
g.nodes.push({
id: 99587,
label: 'EVENT: The molecular anatomy of the human body',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/molecular-anatomy-human-body/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2565399587,
size: 0.5,
source: 25653,
target: 99587,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4717) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 995874717,
size: 0.5,
source: 99587,
target: 4717 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4084) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 995874084,
size: 0.5,
source: 99587,
target: 4084 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 9958725653,
size: 0.5,
source: 99587,
target: 25653 });
// adding node
var x_node = Math.cos(2 * 26 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 26 * Math.PI / N) * 10;
g.nodes.push({
id: 98625,
label: 'EVENT: Genome in 3D: models of chromosome folding',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/genome-in-3d-models-of-chromosome-folding/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2565398625,
size: 0.5,
source: 25653,
target: 98625,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4717) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 986254717,
size: 0.5,
source: 98625,
target: 4717 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 9862525653,
size: 0.5,
source: 98625,
target: 25653 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4084) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 986254084,
size: 0.5,
source: 98625,
target: 4084 });
// adding node
var x_node = Math.cos(2 * 27 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 27 * Math.PI / N) * 10;
g.nodes.push({
id: 90460,
label: 'NEWS: Emerging diseases: a highly mutant strain of the Elizabethkingia bacterium caused an outbreak in Wisconsin',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/05/research_pasteur-elizabethkingia_image_cip2017-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/news/emerging-diseases-a-highly-mutant-strain-of-the-elizabethkingia-bacterium-caused-an-outbreak-in-wisconsin/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2565390460,
size: 0.5,
source: 25653,
target: 90460,
});
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 53076,
label: 'Amandine Perrin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research.pasteur.fr_untitled4-142x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/amandine-perrin/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 9046053076,
size: 0.5,
source: 90460,
target: 53076 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 63549,
label: 'Elise Larsonneur',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/01/research.pasteur.fr_photo_elise-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/elise-larsonneur/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 9046063549,
size: 0.5,
source: 90460,
target: 63549 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 9046025653,
size: 0.5,
source: 90460,
target: 25653 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4688,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 904604688,
size: 0.5,
source: 90460,
target: 4688 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4680,
label: 'Perrine Hugon',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/?post_type=member&p=4680',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 904604680,
size: 0.5,
source: 90460,
target: 4680 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 6980,
label: 'Dominique Clermont',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_dominique-clermont-bis-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/dominique-clermont/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 904606980,
size: 0.5,
source: 90460,
target: 6980 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4919,
label: 'Vincent Enouf',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_fdf-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/vincent-enouf/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 904604919,
size: 0.5,
source: 90460,
target: 4919 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 904604684,
size: 0.5,
source: 90460,
target: 4684 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 7759,
label: 'Alexis Criscuolo',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_alexiscriscuolo-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/alexis-criscuolo/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 904607759,
size: 0.5,
source: 90460,
target: 7759 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4685) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 904604685,
size: 0.5,
source: 90460,
target: 4685 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 2495,
label: 'Sylvain Brisse',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/03/9c960524567ea360a3_l_2ae2a-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/sylvain-brisse/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 904602495,
size: 0.5,
source: 90460,
target: 2495 });
// adding node
var x_node = Math.cos(2 * 28 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 28 * Math.PI / N) * 10;
g.nodes.push({
id: 88823,
label: 'EVENT: « Joint analysis of multiple phenotypes using GWAS summary statistics» by Hugues ASCHARD',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/event/joint-analysis-of-multiple-phenotypes-using-gwas-summary-statistics-by-hugues-aschard/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2565388823,
size: 0.5,
source: 25653,
target: 88823,
});
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4407,
label: 'Micheline Fromont-Racine',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_photos_mfr-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/micheline-fromont-racine/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 888234407,
size: 0.5,
source: 88823,
target: 4407 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4421,
label: 'Martial Marbouty',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-martial-marbouty-fullsizerender-150x150.jpeg',
page_url: 'https://research.pasteur.fr/fr/member/martial-marbouty/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 888234421,
size: 0.5,
source: 88823,
target: 4421 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 8882325653,
size: 0.5,
source: 88823,
target: 25653 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4009,
label: 'Carmen Buchrieser',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_carmen1-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/carmen-buchrieser/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 888234009,
size: 0.5,
source: 88823,
target: 4009 });
// adding node
var x_node = Math.cos(2 * 29 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 29 * Math.PI / N) * 10;
g.nodes.push({
id: 81538,
label: 'TOOL: CapsuleFinder',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/tool/capsulefinder/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2565381538,
size: 0.5,
source: 25653,
target: 81538,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 8153825653,
size: 0.5,
source: 81538,
target: 25653 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 815384684,
size: 0.5,
source: 81538,
target: 4684 });
// adding node
var x_node = Math.cos(2 * 30 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 30 * Math.PI / N) * 10;
g.nodes.push({
id: 52998,
label: 'NEWS: Olaya just got an FRM grant',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research.pasteur.fr_olaya-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/news/olaya-just-got-an-frm-grant/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2565352998,
size: 0.5,
source: 25653,
target: 52998,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 5299825653,
size: 0.5,
source: 52998,
target: 25653 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 529984684,
size: 0.5,
source: 52998,
target: 4684 });
// adding node
var x_node = Math.cos(2 * 31 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 31 * Math.PI / N) * 10;
g.nodes.push({
id: 42809,
label: 'PROJECT: ERC-2011-StG EVOMOBILOME',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_erc7-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/project/erc-2011-stg-evomobilome/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2565342809,
size: 0.5,
source: 25653,
target: 42809,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4685) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 428094685,
size: 0.5,
source: 42809,
target: 4685 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 4280925653,
size: 0.5,
source: 42809,
target: 25653 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 75259) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 4280975259,
size: 0.5,
source: 42809,
target: 75259 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 428094684,
size: 0.5,
source: 42809,
target: 4684 });
var s = new sigma({
//container: document.getElementById('graph-main'),
graph: g,
renderer: {
// IMPORTANT:
// This works only with the canvas renderer, so the
// renderer type set as "canvas" is necessary here.
container: document.getElementById('graph-main'),
type: 'canvas'
},
settings: {
minNodeSize: 6,
maxNodeSize: 35,
mouseWheelEnabled: false,
font: 'Montserrat',
labelThreshold:25,
borderSize:1,
defaultNodeBorderColor: '#999',
sideMargin:25,
}
});
// We first need to save the original colors of our
// nodes and edges, like this:
s.graph.nodes().forEach(function(n) {
n.originalColor = n.color;
});
s.graph.edges().forEach(function(e) {
e.originalColor = e.color;
});
// When a node is clicked, we check for each node
// if it is a neighbor of the clicked one. If not,
// we set its color as grey, and else, it takes its
// original color.
// We do the same for the edges, and we only keep
// edges that have both extremities colored.
s.bind('clickNode', function(e) {
var nodeId = e.data.node.id,
toKeep = s.graph.neighbors(nodeId);
toKeep[nodeId] = e.data.node;
s.graph.nodes().forEach(function(n) {
if (toKeep[n.id])
n.color = '#35a9f5';
else
n.color = '#dddddd';
});
s.graph.edges().forEach(function(e) {
if (toKeep[e.source] && toKeep[e.target])
e.color = '#35a9f5';
else
e.color = '#dddddd';
});
// Since the data has been modified, we need to
// call the refresh method to make the colors
// update effective.
s.refresh();
});
// When the stage is clicked, we just color each
// node and edge with its original color.
s.bind('clickStage', function(e) {
s.graph.nodes().forEach(function(n) {
n.color = n.originalColor;
});
s.graph.edges().forEach(function(e) {
e.color = e.originalColor;
});
// Same as in the previous event:
s.refresh();
});
s.bind("doubleClickNode", function (e) {
$("#canvas-wrap, .sigma-scene, .sigma-mouse").val();
ajax_load_page( e.data.node.page_url );
});
var c = s.camera;
s.bind("rightClickStage", function (e) {
sigma.misc.animation.camera(c, {
ratio: c.ratio * c.settings('zoomingRatio')
}, {
duration: 200
});
});
// Configure the noverlap layout:
var noverlapListener = s.configNoverlap({
nodeMargin: 10,
scaleNodes: 0.3,
gridSize: 1,
easing: 'quadraticInOut', // animation transition function
duration: 4000 // animation duration. Long here for the purposes of this example only
});
// Bind the events:
noverlapListener.bind('start stop interpolate', function(e) {
//console.log(e.type);
if(e.type === 'start') {
//console.time('noverlap');
}
if(e.type === 'interpolate') {
//console.timeEnd('noverlap');
}
});
// Start the layout:
s.startNoverlap();
//s.refresh();
// Initialize the dragNodes plugin:
var dragListener = sigma.plugins.dragNodes(s, s.renderers[0]);
dragListener.bind('startdrag', function(event) {
});
dragListener.bind('drag', function(event) {
});
dragListener.bind('drop', function(event) {
});
dragListener.bind('dragend', function(event) {
});