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: 4792,
label: 'Nathalie Sauvonnet',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/11/research.pasteur.fr_nathaliesauvonnet-150x150.jpg',
x: 0,
y: 0,
size: 30,
color: '#DDDDDD'
});
var biggest_node_size = 0;
N=16
// 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: 215624,
label: 'PROJECT: Mise au point d’une technique d’identification de molécules bactériennes ayant un effet anti-inflammatoire au niveau intestinal : FLAMCHIP',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/mise-au-point-dune-technique-didentification-de-molecules-bacteriennes-ayant-un-effet-anti-inflammatoire-au-niveau-intestinal-flamchip/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4792215624,
size: 0.5,
source: 4792,
target: 215624,
});
//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: 8600,
label: 'Hélène Laude',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/10/research_pasteur-photo_helene_laude-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/helene-laude/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2156248600,
size: 0.5,
source: 215624,
target: 8600 });
//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: 200933,
label: 'Magdalena Stroksztejn',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/magdalena-stroksztejn/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 215624200933,
size: 0.5,
source: 215624,
target: 200933 });
//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: 167546,
label: 'Emmanuel Roux',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/emmanuel-roux/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 215624167546,
size: 0.5,
source: 215624,
target: 167546 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4792) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2156244792,
size: 0.5,
source: 215624,
target: 4792 });
// 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: 152267,
label: 'PROJECT: PTR 232-2019. Mechabiome. Computational imaging of the spatiotemporal distribution of forces in gut tissue: a study of the cross talk between cell mechanics, microbiome and infectious processes',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/mechabiome-organ-on-chips/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4792152267,
size: 0.5,
source: 4792,
target: 152267,
});
//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: 148710,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 152267148710,
size: 0.5,
source: 152267,
target: 148710 });
//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: 8199,
label: 'Maria Manich',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-maria-manich-image1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/maria-manich/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1522678199,
size: 0.5,
source: 152267,
target: 8199 });
//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: 98491,
label: 'Aleix Boquet-Pujadas',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/11/research_pasteur-aleix-boquet-pujadas-img-6651-1-e1619772034953-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/aleix-boquet-i-pujadas/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 15226798491,
size: 0.5,
source: 152267,
target: 98491 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4792) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1522674792,
size: 0.5,
source: 152267,
target: 4792 });
//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: 124775,
label: 'Héloïse Mary',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=124775',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 152267124775,
size: 0.5,
source: 152267,
target: 124775 });
//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: 6834,
label: 'Samy Gobaa',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-samy-gobaa-gobaa-samy-1510-e1634550888980-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/samy-gobaa/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1522676834,
size: 0.5,
source: 152267,
target: 6834 });
//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: 107505,
label: 'Elisabeth Labruyère',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/04/research_pasteur-elisabeth-labruyere-capture-decran-2021-01-14-a-13.10.50-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/elisabeth-labruyere/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 152267107505,
size: 0.5,
source: 152267,
target: 107505 });
// 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: 149833,
label: 'PROJECT: Statistical analysis of spatial coupling in bioimaging with SODA',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/statistical-analysis-of-spatial-coupling-in-bioimaging/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4792149833,
size: 0.5,
source: 4792,
target: 149833,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4792) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1498334792,
size: 0.5,
source: 149833,
target: 4792 });
//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: 138299,
label: 'Suvadip Mukherjee',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/02/research_pasteur-portrait-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/suvadip-mukherjee/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 149833138299,
size: 0.5,
source: 149833,
target: 138299 });
//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: 388,
label: 'Jean-Christophe Olivo-Marin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/04/research_pasteur-photojcom_2016_2-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/jean-christophe-olivo-marin/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 149833388,
size: 0.5,
source: 149833,
target: 388 });
//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: 4630,
label: 'Thibault Lagache',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_p10400571-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/thibault-lagache/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1498334630,
size: 0.5,
source: 149833,
target: 4630 });
// 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: 135802,
label: 'EVENT: Next Building The Cell congress called Cell La Vie! due to COVID, it will be Online 23 September 2021 and at Institut Pasteur Paris in Sept 2022',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/11/research_pasteur-next-building-the-cell-congress-called-cell-la-vie-due-to-covid-it-will-be-online-22-24-september-2021-and-at-institut-pasteur-paris-in-sept-2022-cell-la-vie-20211-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/event/next-building-the-cell-congress-called-cell-la-vie-23-25-september-2020-institut-pasteur-paris/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4792135802,
size: 0.5,
source: 4792,
target: 135802,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4792) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1358024792,
size: 0.5,
source: 135802,
target: 4792 });
// 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: 135602,
label: 'NEWS: PhD defense of Laura Salavessa 30th of March 2020',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/phd-defense-of-laura-salavessa-30th-of-march-2020/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4792135602,
size: 0.5,
source: 4792,
target: 135602,
});
//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: 94994,
label: 'Laura Salavessa',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=94994',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 13560294994,
size: 0.5,
source: 135602,
target: 94994 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4792) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1356024792,
size: 0.5,
source: 135602,
target: 4792 });
// 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: 135512,
label: 'PROJECT: Impact of gut mechanical forces and 3D architecture on the intestine homeostasis during pathogen interaction and in cancer disease',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/11/research_pasteur-diapositive1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/impact-of-gut-mechanical-forces-and-3d-architecture-on-the-intestine-homeostasis-and-how-it-can-be-imbalanced-during-pathogens-interaction-or-cancer-disease/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4792135512,
size: 0.5,
source: 4792,
target: 135512,
});
//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: 53195,
label: 'Clement Bonamy',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=53195',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 13551253195,
size: 0.5,
source: 135512,
target: 53195 });
//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: 4778,
label: 'Giulia Nigro',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_nigro-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/giulia-nigro/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1355124778,
size: 0.5,
source: 135512,
target: 4778 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 98491) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 13551298491,
size: 0.5,
source: 135512,
target: 98491 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 107505) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 135512107505,
size: 0.5,
source: 135512,
target: 107505 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 6834) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1355126834,
size: 0.5,
source: 135512,
target: 6834 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4792) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1355124792,
size: 0.5,
source: 135512,
target: 4792 });
// 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: 133465,
label: 'PROJECT: Hydraulically Actuated Hydrogel Layers',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/hydraulically-actuated-hydrogel-layers/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4792133465,
size: 0.5,
source: 4792,
target: 133465,
});
//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: 101529,
label: 'Nicolas Minier',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/12/research_pasteur-idpic-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/nicolas-minier/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 133465101529,
size: 0.5,
source: 133465,
target: 101529 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4792) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1334654792,
size: 0.5,
source: 133465,
target: 4792 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 6834) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1334656834,
size: 0.5,
source: 133465,
target: 6834 });
// 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: 124782,
label: 'PROJECT: Organ-on-Chip Center',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/organ-on-chip-center/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4792124782,
size: 0.5,
source: 4792,
target: 124782,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 124775) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 124782124775,
size: 0.5,
source: 124782,
target: 124775 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4792) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1247824792,
size: 0.5,
source: 124782,
target: 4792 });
//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: 4788,
label: 'Alexandre Grassart',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=4788',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1247824788,
size: 0.5,
source: 124782,
target: 4788 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 107505) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 124782107505,
size: 0.5,
source: 124782,
target: 107505 });
//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: 4245,
label: 'Batiste Boeda',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/batiste-boeda/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1247824245,
size: 0.5,
source: 124782,
target: 4245 });
//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: 4094,
label: 'Javier Pizarro-Cerda',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-javier-pizarro-cerda-javier-pizarro-1300-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/javier-pizarro-cerda/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1247824094,
size: 0.5,
source: 124782,
target: 4094 });
//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: 58778,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 12478258778,
size: 0.5,
source: 124782,
target: 58778 });
//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: 3931,
label: 'Lisa Chakrabarti',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/11/research.pasteur.fr_lc2-photo-medium-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/lisa-chakrabarti/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1247823931,
size: 0.5,
source: 124782,
target: 3931 });
//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: 60986,
label: 'Lida Katsimpardi',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/03/research_pasteur-dsc1996-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/lida-katsimpardi/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 12478260986,
size: 0.5,
source: 124782,
target: 60986 });
//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: 4483,
label: 'Han Li',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_han_li_small-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/han-li/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1247824483,
size: 0.5,
source: 124782,
target: 4483 });
//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: 126536,
label: 'Elsa Charifou',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/02/research_pasteur-capture-decran-2020-02-25-a-14.42.51-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/elsa-charifou/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 124782126536,
size: 0.5,
source: 124782,
target: 126536 });
//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: 4355,
label: 'Ivo Gomperts Boneca',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-ivo-gomperts-boneca-p9090188-copie-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/ivo-gomperts-boneca/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1247824355,
size: 0.5,
source: 124782,
target: 4355 });
//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: 4360,
label: 'Richard Wheeler',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/11/research.pasteur.fr_photo-for-lab-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/richard-wheeler/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1247824360,
size: 0.5,
source: 124782,
target: 4360 });
//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: 83719,
label: 'Michael Connor',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/04/research_pasteur-michael-connor-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/michael-connor/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 12478283719,
size: 0.5,
source: 124782,
target: 83719 });
//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: 4087,
label: 'Mélanie Hamon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/01/research.pasteur.fr_p1010312-version-2-4-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/melanie-hamon/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1247824087,
size: 0.5,
source: 124782,
target: 4087 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 6834) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1247826834,
size: 0.5,
source: 124782,
target: 6834 });
// 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: 102120,
label: 'EVENT: “Epithelial cell migration in gut homeostasis and cancer invasion” – by Danijela Vignjevic',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/epithelial-cell-migration-gut-homeostasis-cancer-invasion-danijela-vignjevic/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4792102120,
size: 0.5,
source: 4792,
target: 102120,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4792) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1021204792,
size: 0.5,
source: 102120,
target: 4792 });
//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: 4780,
label: 'Philippe Sansonetti',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_philippe-sansonetti-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/philippe-sansonetti__trashed/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1021204780,
size: 0.5,
source: 102120,
target: 4780 });
// 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: 99978,
label: 'EVENT: “Salmonella diarrhea: growth, gene transfer and mutations to escape the host’s immune response” – Wolf-Dietrich Hardt',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/salmonella-diarrhea-growth-gene-transfer-mutations-escape-hosts-immune-response-wolf-dietrich-hardt/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 479299978,
size: 0.5,
source: 4792,
target: 99978,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4792) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 999784792,
size: 0.5,
source: 99978,
target: 4792 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4780) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 999784780,
size: 0.5,
source: 99978,
target: 4780 });
// 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: 89510,
label: 'EVENT: “Shaping membranes with BAR-domain proteins” – Patricia Bassereau',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/shaping-membranes-with-bar-domain-proteins-patricia-bassereau/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 479289510,
size: 0.5,
source: 4792,
target: 89510,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4792) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 895104792,
size: 0.5,
source: 89510,
target: 4792 });
// 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: 79077,
label: 'TEAM: Biomaterials and Microfluidics',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/11/research.pasteur.fr_biomaterials-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/biomaterials-and-microfluidics/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 479279077,
size: 0.5,
source: 4792,
target: 79077,
});
//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: 951,
label: 'Emmanuel Frachon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/02/research_pasteur-emmanuel-frachon-perso2021-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/emmanuel-frachon/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 79077951,
size: 0.5,
source: 79077,
target: 951 });
//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: 98100,
label: 'Jerome Wong Ng',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/10/research_pasteur-jerome1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/jerome-wong-ng/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 7907798100,
size: 0.5,
source: 79077,
target: 98100 });
//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: 8391,
label: 'Natacha Haikine',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_haikine-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/natacha-haikine/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 790778391,
size: 0.5,
source: 79077,
target: 8391 });
//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: 157885,
label: 'Viacheslav Rusanov',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/04/research_pasteur-viacheslav-rusanov-slava-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/viacheslav-rusanov/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 79077157885,
size: 0.5,
source: 79077,
target: 157885 });
//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: 165989,
label: 'Bárbara Fonseca',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/09/research_pasteur-barbara-fonseca-cropped-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/barbara-fonseca/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 79077165989,
size: 0.5,
source: 79077,
target: 165989 });
//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: 106122,
label: 'Minhee Kim',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/06/research_pasteur-pic-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/minhee-kim/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 79077106122,
size: 0.5,
source: 79077,
target: 106122 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4792) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 790774792,
size: 0.5,
source: 79077,
target: 4792 });
//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: 8458,
label: 'Valérie Malarde',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_malarde-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/valerie-malarde/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 790778458,
size: 0.5,
source: 79077,
target: 8458 });
//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: 193792,
label: 'Remigiusz Walocha',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/05/research_pasteur-e9587e63-61ed-4bad-8e54-1ebe41dcfd07-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/remigiusz-walocha/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 79077193792,
size: 0.5,
source: 79077,
target: 193792 });
//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: 199718,
label: 'Matthieu Gélin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/04/research_pasteur-mugshot-square-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/matthieu-gelin/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 79077199718,
size: 0.5,
source: 79077,
target: 199718 });
//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: 217235,
label: 'Khadija Oukacha',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/01/research_pasteur-oukacha-khadija-3-e1705660891593-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/khadija-oukacha/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 79077217235,
size: 0.5,
source: 79077,
target: 217235 });
//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: 219019,
label: 'Raphaelle Liquard',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/01/research_pasteur-1705656379072-e1705669444211-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/raphaelle-liquard__trashed/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 79077219019,
size: 0.5,
source: 79077,
target: 219019 });
//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: 220173,
label: 'Pol López Pérez',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/pol-lopez-perez/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 79077220173,
size: 0.5,
source: 79077,
target: 220173 });
//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: 231515,
label: 'Sophie Oatley',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/sophie-oatley/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 79077231515,
size: 0.5,
source: 79077,
target: 231515 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 6834) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 790776834,
size: 0.5,
source: 79077,
target: 6834 });
// 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: 58719,
label: 'PROJECT: Endocytosis: the clathrin-independent uptake of cytokine receptors',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/11/research_pasteur-diapositive1-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/endocytosis-the-clathrin-independent-uptake-of-cytokine-receptors/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 479258719,
size: 0.5,
source: 4792,
target: 58719,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4788) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 587194788,
size: 0.5,
source: 58719,
target: 4788 });
//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: 4795,
label: 'Laetitia Bertot',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=4795',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 587194795,
size: 0.5,
source: 58719,
target: 4795 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4630) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 587194630,
size: 0.5,
source: 58719,
target: 4630 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8458) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 587198458,
size: 0.5,
source: 58719,
target: 8458 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 94994) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 5871994994,
size: 0.5,
source: 58719,
target: 94994 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4792) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 587194792,
size: 0.5,
source: 58719,
target: 4792 });
// 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: 59008,
label: 'PROJECT: Exocytosis: inhibition of secretion/recycling by the pathogen Shigella',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/11/research.pasteur.fr_shigellaintro-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/out-exocytosis-inhibition-of-secretionrecycling-by-the-pathogen-shigella/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 479259008,
size: 0.5,
source: 4792,
target: 59008,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8458) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 590088458,
size: 0.5,
source: 59008,
target: 8458 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4792) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 590084792,
size: 0.5,
source: 59008,
target: 4792 });
// 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: 55721,
label: 'PROJECT: Microfluidics@Pasteur',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/02/research.pasteur.fr_flyer-pizza-mf-second-seminar-feb-2016-150x150.png',
page_url: 'https://research.pasteur.fr/en/project/microfluidicspasteur/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 479255721,
size: 0.5,
source: 4792,
target: 55721,
});
//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: 2504,
label: 'Pierre Bruhns',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/12/research_pasteur-pierre-bruhns-nb-zoomed-in-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/pierre-bruhns/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 557212504,
size: 0.5,
source: 55721,
target: 2504 });
//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: 4002,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 557214002,
size: 0.5,
source: 55721,
target: 4002 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4094) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 557214094,
size: 0.5,
source: 55721,
target: 4094 });
//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: 6837,
label: 'Elodie Brient-Litzler',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/05/research_pasteur-photoebl2019-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/elodie-brient-litzler/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 557216837,
size: 0.5,
source: 55721,
target: 6837 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 388) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 55721388,
size: 0.5,
source: 55721,
target: 388 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4780) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 557214780,
size: 0.5,
source: 55721,
target: 4780 });
//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: 7850,
label: 'Fabrice Agou',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_image010-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/fabrice-agou/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 557217850,
size: 0.5,
source: 55721,
target: 7850 });
//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: 4939,
label: 'Sven van Teeffelen',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=4939',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 557214939,
size: 0.5,
source: 55721,
target: 4939 });
//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: 4604,
label: 'Philippe Clerc',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/08/research_pasteur-capture-decran-2019-08-01-a-13.12.17-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/philippe-clerc/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 557214604,
size: 0.5,
source: 55721,
target: 4604 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4792) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 557214792,
size: 0.5,
source: 55721,
target: 4792 });
//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: 51154,
label: 'Guillaume Dumenil',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_research.pasteur.fr_fig101-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/guillaume-dumenil/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 5572151154,
size: 0.5,
source: 55721,
target: 51154 });
//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: 4781,
label: 'Benoît Marteyn',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/11/research.pasteur.fr_benoit2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/benoit-marteyn/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 557214781,
size: 0.5,
source: 55721,
target: 4781 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 6834) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 557216834,
size: 0.5,
source: 55721,
target: 6834 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4788) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 557214788,
size: 0.5,
source: 55721,
target: 4788 });
//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: 6368,
label: 'Giulia Manina',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-giulia-manina-giulia-manina-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/giulia-manina/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 557216368,
size: 0.5,
source: 55721,
target: 6368 });
// 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: 24335,
label: 'TEAM: Group Tissue homeostasis: Nathalie Sauvonnet',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_sanso-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/group-nathalie-sauvonnet/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 479224335,
size: 0.5,
source: 4792,
target: 24335,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8458) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 243358458,
size: 0.5,
source: 24335,
target: 8458 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 193792) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 24335193792,
size: 0.5,
source: 24335,
target: 193792 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 217235) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 24335217235,
size: 0.5,
source: 24335,
target: 217235 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 219019) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 24335219019,
size: 0.5,
source: 24335,
target: 219019 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4792) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 243354792,
size: 0.5,
source: 24335,
target: 4792 });
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) {
});