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: 158464,
label: 'Initiative Cancer',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/05/research_pasteur-encancer-initiativefrinitiative-cancer-institutpasteur-i05997-axe-cancer-150x150.jpg',
x: 0,
y: 0,
size: 30,
color: '#DDDDDD'
});
var x_node = Math.cos(2 * 0 * Math.PI / N) * 2;
var y_node = Math.sin(2 * 0 * Math.PI / N) * 2;
N=7
//check if content already exist
x_site = Math.cos(2 * 0 * Math.PI / N) * 2;
y_site = Math.sin(2 * 0 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 4176,
label: 'Ludovic Deriano',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/07/research.pasteur.fr_sans-titre-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/ludovic-deriano/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 1584644176,
size: 0.5,
source: 158464,
target: 4176 });
//check if content already exist
x_site = Math.cos(2 * 1 * Math.PI / N) * 2;
y_site = Math.sin(2 * 1 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 4246,
label: 'Sandrine Etienne-Manneville',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_sandrine_etienne-manneville-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/sandrine-etienne-manneville/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 1584644246,
size: 0.5,
source: 158464,
target: 4246 });
//check if content already exist
x_site = Math.cos(2 * 2 * Math.PI / N) * 2;
y_site = Math.sin(2 * 2 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 4962,
label: 'Jean-Pierre Vartanian',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/09/research_pasteur-jean-pierre-vartanian-photo-jpv--150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/jean-pierre-vartanian/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 1584644962,
size: 0.5,
source: 158464,
target: 4962 });
//check if content already exist
x_site = Math.cos(2 * 3 * Math.PI / N) * 2;
y_site = Math.sin(2 * 3 * Math.PI / N) * 2;
// 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/fr/member/han-li/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 1584644483,
size: 0.5,
source: 158464,
target: 4483 });
//check if content already exist
x_site = Math.cos(2 * 4 * Math.PI / N) * 2;
y_site = Math.sin(2 * 4 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 4138,
label: 'Marc Delarue',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_marc2-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/marc-delarue/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 1584644138,
size: 0.5,
source: 158464,
target: 4138 });
//check if content already exist
x_site = Math.cos(2 * 5 * Math.PI / N) * 2;
y_site = Math.sin(2 * 5 * Math.PI / N) * 2;
// 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/fr/member/ivo-gomperts-boneca/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 1584644355,
size: 0.5,
source: 158464,
target: 4355 });
N=42
// update positions
x_node = Math.cos(2 * 0 * Math.PI / N) * 10;
y_node = Math.sin(2 * 0 * Math.PI / N) * 10;
// 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: 164027,
label: 'TEAM: Laboratoire Commun Pasteur – TheraVectys',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/team/institut-pasteur-theravectys-joint-laboratory/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 158464164027,
size: 0.5,
source: 158464,
target: 164027 });
// 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: 143968,
label: 'TEAM: Immunologie Translationnelle',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/team/translational-immunology/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 158464143968,
size: 0.5,
source: 158464,
target: 143968 });
// 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: 127390,
label: 'TEAM: Inflammation et immunité des muqueuses',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/team/mucosal-inflammation-and-immunity/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 158464127390,
size: 0.5,
source: 158464,
target: 127390 });
// 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: 101330,
label: 'TEAM: Chimie Biologique Epigénétique',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/04/research_pasteur-unite-p-arimondo-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/chimie-biologique-epigenetique/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 158464101330,
size: 0.5,
source: 158464,
target: 101330 });
// 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: 100029,
label: 'TEAM: Microfluidique Physique et Bio-ingénierie',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/team/physical-microfluidics-bioengineering/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 158464100029,
size: 0.5,
source: 158464,
target: 100029 });
// 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: 92464,
label: 'TEAM: Toxines Bactériennes',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/01/research_pasteur-unite-lemichez1-150x150.png',
page_url: 'https://research.pasteur.fr/fr/team/bacterial-toxins/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 15846492464,
size: 0.5,
source: 158464,
target: 92464 });
// 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: 78781,
label: 'TEAM: Mort cellulaire et homéostasie des épithéliums',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/01/research.pasteur.fr_bandeau-g5-r-levayer-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/cell-death-and-epithelial-homeostasis/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 15846478781,
size: 0.5,
source: 158464,
target: 78781 });
// 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: 83820,
label: 'TEAM: Biochimie Membranaire et Transport',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/01/research.pasteur.fr_membrane-biochemistry-and-transport-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/membrane-biochemistry-and-transport/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 15846483820,
size: 0.5,
source: 158464,
target: 83820 });
// 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: 79077,
label: 'TEAM: Biomatériaux et Microfluidique',
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/fr/team/biomaterials-and-microfluidics/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 15846479077,
size: 0.5,
source: 158464,
target: 79077 });
// 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: 77488,
label: 'TEAM: Génétique Statistique',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/09/research.pasteur.fr_statistical-genetics-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/statistical-genetics/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 15846477488,
size: 0.5,
source: 158464,
target: 77488 });
// 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: 70654,
label: 'TEAM: Décision et processus Bayesiens',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/team/decision-and-bayesian-computation/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 15846470654,
size: 0.5,
source: 158464,
target: 70654 });
// 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: 64152,
label: 'TEAM: Neurogénétique du poisson zébré',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/02/research_pasteur-enzebrafish-neurogeneticsfrneurogenetique-du-poisson-zebre-research-pasteur-enzebrafish-neurogeneticsfrneurogenetique-du-poisson-zebre-bandeau-unite-l-bally-cuif-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/zebrafish-neurogenetics/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 15846464152,
size: 0.5,
source: 158464,
target: 64152 });
// 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: 62878,
label: 'TEAM: Chimie bioorganique des acides nucléiques',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/team/bioorganic-chemistry-of-nucleic-acids/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 15846462878,
size: 0.5,
source: 158464,
target: 62878 });
// 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: 29755,
label: 'TEAM: UTechS Single Cell Biomarkers',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_technical-core-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/single-cell-biomarkers/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 15846429755,
size: 0.5,
source: 158464,
target: 29755 });
// 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: 24432,
label: 'TEAM: Stroma, inflammation et réparation tissulaire',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research_pasteur-group-lucie-peduto-image-unite-lucie-peduto-2-150x150.png',
page_url: 'https://research.pasteur.fr/fr/team/group-lucie-peduto/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 15846424432,
size: 0.5,
source: 158464,
target: 24432 });
// 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: 24299,
label: 'TEAM: Groupe: Infection, génotoxicité et cancer',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/09/research.pasteur.fr_research.pasteur.fr_helicobacter-pathogenesis-1024x684-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/group-eliette-touati/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 15846424299,
size: 0.5,
source: 158464,
target: 24299 });
// 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: 15050,
label: 'TEAM: Plateforme de Criblage Chémogénomique et Biologique (PF-CCB)',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_institutpasteur_14287-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/fabrice-agou-team/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 15846415050,
size: 0.5,
source: 158464,
target: 15050 });
// 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: 6462,
label: 'TEAM: Trafic membranaire et division cellulaire',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_mtra-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/membrane-traffic-and-cell-division/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646462,
size: 0.5,
source: 158464,
target: 6462 });
// 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: 6109,
label: 'TEAM: Plasticité cellulaire dans les pathologies liées à l’âge',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_cancercell-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/cellular-plasticity-in-age-related-pathologies/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646109,
size: 0.5,
source: 158464,
target: 6109 });
// 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: 6110,
label: 'TEAM: Epigénomique, Prolifération et Identité Cellulaire',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/10/research_pasteur-unite-navarro-gil_bandeau-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/epigenomics-proliferation-and-the-identity-of-cells/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646110,
size: 0.5,
source: 158464,
target: 6110 });
// 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: 6112,
label: 'TEAM: Structures et signaux dans la niche neurogénique',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_neural-stem-cell-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/structures-and-signals-in-the-neurogenic-niche/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646112,
size: 0.5,
source: 158464,
target: 6112 });
// 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: 6118,
label: 'TEAM: Intégrité du Génome, Immunité et Cancer',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/05/research_pasteur-unite-deriano-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/genome-integrity-immunity-cancer/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646118,
size: 0.5,
source: 158464,
target: 6118 });
// 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: 6124,
label: 'TEAM: Biomédecine Computationelle des Systèmes',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_system-biology1-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/csb/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646124,
size: 0.5,
source: 158464,
target: 6124 });
// 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: 6116,
label: 'TEAM: Régulation Spatiale des Génomes',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_spatial-genome-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/spatial-regulation-of-genomes/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646116,
size: 0.5,
source: 158464,
target: 6116 });
// 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: 6139,
label: 'TEAM: Polarité cellulaire, Migration et Cancer',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_cell-polarity-migration-and-cancer-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/cell-polarity-migration-and-cancer__trashed/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646139,
size: 0.5,
source: 158464,
target: 6139 });
// 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: 6140,
label: 'TEAM: Trafic membranaire et Pathogénèse',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_golgi-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/membrane-traffic-and-pathogenesis/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646140,
size: 0.5,
source: 158464,
target: 6140 });
// 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: 6141,
label: 'TEAM: Biologie cellulaire de l’infection microbienne',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_biology-of-cell-interactions-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/cellular-biology-of-microbial-infection/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646141,
size: 0.5,
source: 158464,
target: 6141 });
// 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: 6134,
label: 'TEAM: Dynamique des interactions hôte-pathogène',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_453295a-f1.2-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/dynamics-of-host-pathogen-interactions/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646134,
size: 0.5,
source: 158464,
target: 6134 });
// 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: 6137,
label: 'TEAM: Organisation nucléaire et oncogénèse',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/03/research_pasteur-photo-unite-anne-dejean-2018-150x150.png',
page_url: 'https://research.pasteur.fr/fr/team/nuclear-organization-and-oncogenesis/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646137,
size: 0.5,
source: 158464,
target: 6137 });
// 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: 6152,
label: 'TEAM: Chimie des biomolécules',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_institutpasteur_383851-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/chemistry-of-biomolecules/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646152,
size: 0.5,
source: 158464,
target: 6152 });
// 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: 6153,
label: 'TEAM: Architecture et Dynamique des Macromolécules Biologiques',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_institutpasteur_423851-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/architecture-and-dynamics-of-biological-macromolecules/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646153,
size: 0.5,
source: 158464,
target: 6153 });
// 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: 6158,
label: 'TEAM: Dynamique du Génome',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_s-pombe-2_789-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/dynamics-of-the-genome/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646158,
size: 0.5,
source: 158464,
target: 6158 });
// adding node
var x_node = Math.cos(2 * 32 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 32 * Math.PI / N) * 10;
g.nodes.push({
id: 6151,
label: 'TEAM: Bioinformatique structurale',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_structural-bioinformatics-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/structural-bioinformatics/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646151,
size: 0.5,
source: 158464,
target: 6151 });
// adding node
var x_node = Math.cos(2 * 33 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 33 * Math.PI / N) * 10;
g.nodes.push({
id: 6142,
label: 'TEAM: Cellules souches et Développement',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_induced-pluripotent-stem-cells-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/stem-cells-and-development/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646142,
size: 0.5,
source: 158464,
target: 6142 });
// adding node
var x_node = Math.cos(2 * 34 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 34 * Math.PI / N) * 10;
g.nodes.push({
id: 6169,
label: 'TEAM: Immunité innée',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_hepvir-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/innate-immunity/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646169,
size: 0.5,
source: 158464,
target: 6169 });
// adding node
var x_node = Math.cos(2 * 35 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 35 * Math.PI / N) * 10;
g.nodes.push({
id: 6171,
label: 'TEAM: Microenvironnement et immunité',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_hiv-infected-h9-t-cell-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/microenvironment-and-immunity/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646171,
size: 0.5,
source: 158464,
target: 6171 });
// adding node
var x_node = Math.cos(2 * 36 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 36 * Math.PI / N) * 10;
g.nodes.push({
id: 6172,
label: 'TEAM: Dynamiques des Réponses Immunes',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_dynamics-of-immune-responses4-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/dynamics-of-immune-responses/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646172,
size: 0.5,
source: 158464,
target: 6172 });
// adding node
var x_node = Math.cos(2 * 37 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 37 * Math.PI / N) * 10;
g.nodes.push({
id: 6177,
label: 'TEAM: Immunobiologie et Thérapie',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-enimmunobiology-and-therapyfrimmunobiologie-et-therapie-institutpasteur-i04790-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/immunobiology-and-therapy/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646177,
size: 0.5,
source: 158464,
target: 6177 });
// adding node
var x_node = Math.cos(2 * 38 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 38 * Math.PI / N) * 10;
g.nodes.push({
id: 6190,
label: 'TEAM: Biologie et Génétique de la Paroi Bactérienne',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_biology-and-genetics-of-bacterial-cell-wall-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/biology-and-genetics-of-bacterial-cell-wall/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646190,
size: 0.5,
source: 158464,
target: 6190 });
// adding node
var x_node = Math.cos(2 * 39 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 39 * Math.PI / N) * 10;
g.nodes.push({
id: 6201,
label: 'TEAM: Neurobiologie intégrative des systèmes cholinergiques',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_institutpasteur_14282-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/integrative-neurobiology-of-cholinergic-systems/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646201,
size: 0.5,
source: 158464,
target: 6201 });
// adding node
var x_node = Math.cos(2 * 40 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 40 * Math.PI / N) * 10;
g.nodes.push({
id: 6213,
label: 'TEAM: Epidémiologie et Physiopathologie des Virus Oncogènes',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_oncogenic-virus-epidemiology-and-pathophysiology-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/oncogenic-virus-epidemiology-and-pathophysiology/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 1584646213,
size: 0.5,
source: 158464,
target: 6213 });
// adding node
var x_node = Math.cos(2 * 41 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 41 * Math.PI / N) * 10;
g.nodes.push({
id: 748,
label: 'TEAM: Ingénierie des Anticorps',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/02/research.pasteur.fr_antibody-engineering-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/antibody-engineering/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 158464748,
size: 0.5,
source: 158464,
target: 748 });
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: 30,
mouseWheelEnabled: false,
font: 'Montserrat',
labelThreshold:25,
borderSize:1,
defaultNodeBorderColor: '#333',
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;
//console.log(n.id);
//console.log(s.graph.nodes(n.id));
});
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: 5,
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) {
});