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: 4850,
label: 'Najma Rachidi',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_najma-150x150.jpg',
x: 0,
y: 0,
size: 30,
color: '#DDDDDD'
});
var biggest_node_size = 0;
N=17
// 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: 232339,
label: 'EVENT: Meeting the EV community @Pasteur – Oct 10, 2024',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/meeting-the-ev-community-pasteur-oct-10-2024/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4850232339,
size: 0.5,
source: 4850,
target: 232339,
});
//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: 98090,
label: 'Julia Bos',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/07/research_pasteur-picture1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/fr-julia-bos/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 23233998090,
size: 0.5,
source: 232339,
target: 98090 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4850) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2323394850,
size: 0.5,
source: 232339,
target: 4850 });
// 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: 204863,
label: 'EVENT: First international conference on CK1 PROTEIN KINASES: “FROM CELL SIGNALING TO THERAPEUTIC TARGETS IN HUMAN DISEASE”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/the-first-international-conference-on-ck1-kinases-from-cell-signaling-to-therapeutic-targets-in-human-disease/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4850204863,
size: 0.5,
source: 4850,
target: 204863,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4850) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2048634850,
size: 0.5,
source: 204863,
target: 4850 });
// 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: 199841,
label: 'EVENT: Symposium on Microbial Extracellular Vesicles ; June 15th, 2023 ; Auditorium François Jacob',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/extracellular-vesicules-from-microbes-symposium-june-15th-2023-auditorium-francois-jacob/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4850199841,
size: 0.5,
source: 4850,
target: 199841,
});
//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: 4109,
label: 'Guilhem Janbon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/10/research_pasteur-img_0255r-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/guilhem-janbon/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1998414109,
size: 0.5,
source: 199841,
target: 4109 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4009,
label: 'Carmen Buchrieser',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_carmen1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/carmen-buchrieser/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1998414009,
size: 0.5,
source: 199841,
target: 4009 });
//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: 4287,
label: 'Mart Krupovic',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/05/research_pasteur-mart_krupovic-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/mart-krupovic/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1998414287,
size: 0.5,
source: 199841,
target: 4287 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 98090) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 19984198090,
size: 0.5,
source: 199841,
target: 98090 });
//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: 1998414355,
size: 0.5,
source: 199841,
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: 78458,
label: 'Virginija Cvirkaite-Krupovic',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/10/research.pasteur.fr_vg-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/virginija-cvirkaite-krupovic/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 19984178458,
size: 0.5,
source: 199841,
target: 78458 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4850) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1998414850,
size: 0.5,
source: 199841,
target: 4850 });
// 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: 187704,
label: 'PROJECT: ANR Texleish: Targeting host-parasite interactions through the inhibition of excreted leishmania casein kinase 1',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/09/research_pasteur-diapositive1-150x150.png',
page_url: 'https://research.pasteur.fr/en/project/anr-texleish-targeting-host-parasite-interactions-through-the-inhibition-of-excreted-leishmania-casein-kinase-1/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4850187704,
size: 0.5,
source: 4850,
target: 187704,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4850) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1877044850,
size: 0.5,
source: 187704,
target: 4850 });
//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: 187634,
label: 'Sandrine Cojean',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/sandrine-cojean-2/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 187704187634,
size: 0.5,
source: 187704,
target: 187634 });
//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: 8437,
label: 'Olivier Leclercq',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/02/research_pasteur-olivier2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/olivier-leclercq/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1877048437,
size: 0.5,
source: 187704,
target: 8437 });
//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: 167431,
label: 'Sharvani Shrinivas Shintre',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/09/research_pasteur-sharvani-shrinivas-shintre-shintre-sharvani-photo-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sharvani-shrinivas-shintre/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 187704167431,
size: 0.5,
source: 187704,
target: 167431 });
//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: 148408,
label: 'Marcela Fuentes Carias',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/10/research_pasteur-marcela-fuentes-carias-img-0573-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/marcela-fuentes-carias/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 187704148408,
size: 0.5,
source: 187704,
target: 148408 });
//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: 187687,
label: 'Fabrice Pagniez',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/fabrice-pagniez/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 187704187687,
size: 0.5,
source: 187704,
target: 187687 });
//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: 187689,
label: 'Marc-Antoine Bazin',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/marc-antoine-bazin/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 187704187689,
size: 0.5,
source: 187704,
target: 187689 });
//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: 187693,
label: 'Cédric Logé',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/cedric-loge/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 187704187693,
size: 0.5,
source: 187704,
target: 187693 });
//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: 187685,
label: 'Lhana Tisseur',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/lhana-tisseur/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 187704187685,
size: 0.5,
source: 187704,
target: 187685 });
//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: 187691,
label: 'Carine Picot',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/carine-picot/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 187704187691,
size: 0.5,
source: 187704,
target: 187691 });
//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: 187381,
label: 'Philippe Loiseau',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/philippe-loiseau/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 187704187381,
size: 0.5,
source: 187704,
target: 187381 });
//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: 187702,
label: 'Guillaume Bernadat',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/guillaume-bernadat/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 187704187702,
size: 0.5,
source: 187704,
target: 187702 });
//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: 187349,
label: 'Pascal Marchand',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/pascal-marchand/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 187704187349,
size: 0.5,
source: 187704,
target: 187349 });
// 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: 187340,
label: 'PROJECT: Pasteur-Weizmann project: Role of kinases in vesicle-mediated regulation of host-pathogen interactions: Focus on Leishmania donovani and Plasmodium falciparum.',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/09/research_pasteur-encampus-france-procope-casein-kinase-1-a-key-regulator-of-tumorigenesis-and-host-pathogen-interactions-pasteur-weizmann-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/pasteur-weizmann-project-role-of-kinases-in-vesicle-mediated-regulation-of-host-pathogen-interactions-focus-on-leishmania-donovani-and-plasmodium-falciparum/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4850187340,
size: 0.5,
source: 4850,
target: 187340,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8437) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1873408437,
size: 0.5,
source: 187340,
target: 8437 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 167431) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 187340167431,
size: 0.5,
source: 187340,
target: 167431 });
//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: 187345,
label: 'Daniel Alfandari',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/daniel-alfandari/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 187340187345,
size: 0.5,
source: 187340,
target: 187345 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4850) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1873404850,
size: 0.5,
source: 187340,
target: 4850 });
//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: 187341,
label: 'Neta Regev-Rudzki',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/neta-regev-rudzki/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 187340187341,
size: 0.5,
source: 187340,
target: 187341 });
// 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: 187332,
label: 'PROJECT: Parafrap grant : Studying two complementary infection models to identify common mechanisms of intracellular parasite survival: The roles of Leishmania and Eimeria exo-kinases in subversion of host cell signalling.',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/10/research_pasteur-logo-parafrap-hd-nobckground-e1664893454956-150x150.png',
page_url: 'https://research.pasteur.fr/en/project/parafrap-grant-studying-two-complementary-infection-models-to-identify-common-mechanisms-of-intracellular-parasite-survival-the-roles-of-leishmania-and-eimeria-exo-kinases-in-subversion-of-host-cel/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4850187332,
size: 0.5,
source: 4850,
target: 187332,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 167431) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 187332167431,
size: 0.5,
source: 187332,
target: 167431 });
//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: 187333,
label: 'Anne Silvestre',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/dr-anne-silvestre/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 187332187333,
size: 0.5,
source: 187332,
target: 187333 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4850) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1873324850,
size: 0.5,
source: 187332,
target: 4850 });
// 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: 187195,
label: 'PROJECT: Campus France procope: CASEIN KINASE 1, A KEY REGULATOR OF TUMORIGENESIS AND HOST-PATHOGEN INTERACTIONS',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/09/research_pasteur-encampus-france-procope-casein-kinase-1-a-key-regulator-of-tumorigenesis-and-host-pathogen-interactions-campus-france-featured-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/campus-france-procope-casein-kinase-1-a-key-regulator-of-tumorigenesis-and-host-pathogen-interactions/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4850187195,
size: 0.5,
source: 4850,
target: 187195,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8437) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1871958437,
size: 0.5,
source: 187195,
target: 8437 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 167431) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 187195167431,
size: 0.5,
source: 187195,
target: 167431 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 148408) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 187195148408,
size: 0.5,
source: 187195,
target: 148408 });
//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: 187196,
label: 'Professor Uwe Knippschild',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/professor-uwe-knippschild/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 187195187196,
size: 0.5,
source: 187195,
target: 187196 });
//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: 187198,
label: 'Adrian Gihring',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/adrian-gihring/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 187195187198,
size: 0.5,
source: 187195,
target: 187198 });
//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: 187200,
label: 'Aileen Roth',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/aileen-roth/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 187195187200,
size: 0.5,
source: 187195,
target: 187200 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4850) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1871954850,
size: 0.5,
source: 187195,
target: 4850 });
// 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: 181514,
label: 'EVENT: DPT Parasites and insects Vectors Seminar – Neta Regev Rudzki “How malaria parasite tricks its hots”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/dptpiv-seminar-neta-regev-rudzki-how-malaria-parasite-tricks-its-hot/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4850181514,
size: 0.5,
source: 4850,
target: 181514,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4850) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1815144850,
size: 0.5,
source: 181514,
target: 4850 });
// 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: 176109,
label: 'TEAM: Signalling and host-parasite interactions',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/team/signalling-and-host-parasite-interactions/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4850176109,
size: 0.5,
source: 4850,
target: 176109,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8437) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1761098437,
size: 0.5,
source: 176109,
target: 8437 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 167431) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 176109167431,
size: 0.5,
source: 176109,
target: 167431 });
//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: 216402,
label: 'Tannu Priya-Gosain',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/01/research_pasteur-entannu-priya-gosainfrtannu-priya-gosain-photo-id-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/216402/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 176109216402,
size: 0.5,
source: 176109,
target: 216402 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4850) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1761094850,
size: 0.5,
source: 176109,
target: 4850 });
// 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: 134101,
label: 'EVENT: Symposium “The future of Parasitology”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/symposium-the-future-of-parasitology/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4850134101,
size: 0.5,
source: 4850,
target: 134101,
});
//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: 3953,
label: 'Brice Rotureau',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_photo-id-rotureau-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/brice-rotureau/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1341013953,
size: 0.5,
source: 134101,
target: 3953 });
//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: 96919,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 13410196919,
size: 0.5,
source: 134101,
target: 96919 });
//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: 94079,
label: 'Michael White',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/08/research_pasteur-michael-white-michael-photo-cropped-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/fr-michael-white/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 13410194079,
size: 0.5,
source: 134101,
target: 94079 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4850) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1341014850,
size: 0.5,
source: 134101,
target: 4850 });
//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: 94365,
label: 'Natalia Zmarlak',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/natalia-zmarlak/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 13410194365,
size: 0.5,
source: 134101,
target: 94365 });
//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: 4309,
label: 'Sylvie Garcia',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-sylvie-garcia-image001-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sylvie-garcia/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1341014309,
size: 0.5,
source: 134101,
target: 4309 });
// 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: 130616,
label: 'EVENT: PhD Defense – Daniel MARTEL -20th September 2019 at 9am: “Functional characterisation of Leishmania casein kinase 1.2 in the parasite and the mammalian host”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/phd-defense-daniel-martel-20th-september-2019-at-9am-functional-characterisation-of-leishmania-casein-kinase-1-2-in-the-parasite-and-the-mammalian-host/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4850130616,
size: 0.5,
source: 4850,
target: 130616,
});
//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: 8442,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1306168442,
size: 0.5,
source: 130616,
target: 8442 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4850) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1306164850,
size: 0.5,
source: 130616,
target: 4850 });
//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: 4848,
label: 'Gérald Spaeth',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-gerald-spaeth-portrait-gfs-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/gerald-spaeth/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1306164848,
size: 0.5,
source: 130616,
target: 4848 });
// 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: 111944,
label: 'EVENT: CRISPR in Parasitology Symposium',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/crispr-in-parasitology-symposium/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4850111944,
size: 0.5,
source: 4850,
target: 111944,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4848) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1119444848,
size: 0.5,
source: 111944,
target: 4848 });
//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: 64135,
label: 'Lucy Glover',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/05/research.pasteur.fr_mg_6640_2-5-e1462169014338-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/lucy-glover/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 11194464135,
size: 0.5,
source: 111944,
target: 64135 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4850) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1119444850,
size: 0.5,
source: 111944,
target: 4850 });
//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: 4803,
label: 'Jessica Bryant',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/08/research_pasteur-117-0p9a0564-3-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/jessica-bryant/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1119444803,
size: 0.5,
source: 111944,
target: 4803 });
//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: 67565,
label: 'Sebastian Baumgarten',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/04/research.pasteur.fr_img_0098-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sebastian-baumgarten/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 11194467565,
size: 0.5,
source: 111944,
target: 67565 });
//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: 84023,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 11194484023,
size: 0.5,
source: 111944,
target: 84023 });
//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: 81566,
label: 'Selima Messaoudi',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/selima-messaoudi/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 11194481566,
size: 0.5,
source: 111944,
target: 81566 });
// 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: 36847,
label: 'PROJECT: FP7 Targeting the Leishmania kinome for the development of novel anti-parasitic strategies (LeishDrug)',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_featured-fp7-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/fp7-leishdrug-targeting-the-leishmania-kinome-for-the-development-of-novel-anti-parasitic-strategies/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 485036847,
size: 0.5,
source: 4850,
target: 36847,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8437) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 368478437,
size: 0.5,
source: 36847,
target: 8437 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4850) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 368474850,
size: 0.5,
source: 36847,
target: 4850 });
//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: 2232,
label: 'Nathalie Aulner',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_dsc03316-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/nathalie-aulner/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 368472232,
size: 0.5,
source: 36847,
target: 2232 });
//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: 4847,
label: 'Eric Prina',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_eric-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/eric-prina/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 368474847,
size: 0.5,
source: 36847,
target: 4847 });
//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: 7854,
label: 'Pierre-Henri Commere',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/pierre-henri-commere/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 368477854,
size: 0.5,
source: 36847,
target: 7854 });
//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: 1585,
label: 'Anne Danckaert',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/anne-danckaert/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 368471585,
size: 0.5,
source: 36847,
target: 1585 });
//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: 7144,
label: 'Nadia Khelef',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_ha53-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/nadia-khelef/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 368477144,
size: 0.5,
source: 36847,
target: 7144 });
//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: 4571,
label: 'Thierry Lang',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_thierry-new-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/thierry-lang/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 368474571,
size: 0.5,
source: 36847,
target: 4571 });
//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: 7033,
label: 'Hervé Lecoeur',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-herve-lecoeur-herve-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/herve-lecoeur/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 368477033,
size: 0.5,
source: 36847,
target: 7033 });
//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: 6955,
label: 'Geneviève Milon',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/genevieve-milon/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 368476955,
size: 0.5,
source: 36847,
target: 6955 });
//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: 4693,
label: 'Hélène Munier-Lehmann',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_photo-hml-recadre-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/helene-munier-lehmann/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 368474693,
size: 0.5,
source: 36847,
target: 4693 });
//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: 4694,
label: 'Sylvie Pochet',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_sans-titre2-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/sylvie-pochet/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 368474694,
size: 0.5,
source: 36847,
target: 4694 });
//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: 1589,
label: 'Spencer Shorte',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/02/spencer-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/spencer-shorte/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 368471589,
size: 0.5,
source: 36847,
target: 1589 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4848) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 368474848,
size: 0.5,
source: 36847,
target: 4848 });
// 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: 36923,
label: 'PROJECT: ANR TransLeish – Discovery of druggable protein kinases in the protozoan parasite Leishmania donovani using hit compounds identified by phenotypic screening',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_logo-web-transleish-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/anr-transleish-discovery-of-druggable-protein-kinases-in-the-protozoan-parasite-leishmania-donovani-using-hit-compounds-identified-by-phenotypic-screening/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 485036923,
size: 0.5,
source: 4850,
target: 36923,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4847) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 369234847,
size: 0.5,
source: 36923,
target: 4847 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8437) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 369238437,
size: 0.5,
source: 36923,
target: 8437 });
//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: 40773,
label: 'Laurent Meijer',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_meijer_laurent-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/epartner/laurent-meijer/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 3692340773,
size: 0.5,
source: 36923,
target: 40773 });
//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: 40794,
label: 'Sandrine Ruchaud',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_sandrine-ruchaud-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/epartner/sandrine-ruchaud/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 3692340794,
size: 0.5,
source: 36923,
target: 40794 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 7759,
label: 'Alexis Criscuolo',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_alexiscriscuolo-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/alexis-criscuolo/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 369237759,
size: 0.5,
source: 36923,
target: 7759 });
//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: 37634,
label: 'Julien Guglielmini',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research_pasteur-julien-guglielmini-last-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/julien-guglielmini/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 3692337634,
size: 0.5,
source: 36923,
target: 37634 });
//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: 7847,
label: 'Pierre Lechat',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_fig37-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/pierre-lechat/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 369237847,
size: 0.5,
source: 36923,
target: 7847 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4850) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 369234850,
size: 0.5,
source: 36923,
target: 4850 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4848) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 369234848,
size: 0.5,
source: 36923,
target: 4848 });
// 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: 36952,
label: 'PROJECT: ANR TranSig – Trans-signalling: A novel mechanism of Leishmania host cell immune evasion through the release of parasite signalling proteins',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_logo-web-tansig-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/anr-transig-trans-signalling-a-novel-mechanism-of-leishmania-host-cell-immune-evasion-through-the-release-of-parasite-signalling-proteins/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 485036952,
size: 0.5,
source: 4850,
target: 36952,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8442) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 369528442,
size: 0.5,
source: 36952,
target: 8442 });
//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: 4844,
label: 'Sima Drini',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=4844',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 369524844,
size: 0.5,
source: 36952,
target: 4844 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4848) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 369524848,
size: 0.5,
source: 36952,
target: 4848 });
//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: 40858,
label: 'Joachim Clos',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_joachim-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/epartner/joachim-clos/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 3695240858,
size: 0.5,
source: 36952,
target: 40858 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4850) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 369524850,
size: 0.5,
source: 36952,
target: 4850 });
// 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: 37462,
label: 'PROJECT: PTR 539 – A multilevel systems approach to elucidate the host-Leishmania interactome and to identify host targets for anti-leishmanial drug discovery',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_featured-ptr-539-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/ptr539-a-multilevel-systems-approach-to-elucidate-the-host-leishmania-interactome-and-to-identify-host-targets-for-anti-leishmanial-drug-discovery/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 485037462,
size: 0.5,
source: 4850,
target: 37462,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4847) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 374624847,
size: 0.5,
source: 37462,
target: 4847 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4850) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 374624850,
size: 0.5,
source: 37462,
target: 4850 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4848) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 374624848,
size: 0.5,
source: 37462,
target: 4848 });
//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: 1056,
label: 'Mariette Matondo',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/02/Mariette_Matondo-e1424076805247-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/mariette-matondo-bouzanda/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 374621056,
size: 0.5,
source: 37462,
target: 1056 });
//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: 11555,
label: 'Joo Hwan No',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/06/358-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/riip_member/joo-hwan-no/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 3746211555,
size: 0.5,
source: 37462,
target: 11555 });
// 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: 6209,
label: 'TEAM: Molecular Parasitology and Signaling',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_molecular-parasitology-and-signaling3-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/molecular-parasitology-and-signaling/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 48506209,
size: 0.5,
source: 4850,
target: 6209,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4850) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 62094850,
size: 0.5,
source: 6209,
target: 4850 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4847) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 62094847,
size: 0.5,
source: 6209,
target: 4847 });
//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: 4849,
label: 'Pascale Pescher',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/02/research_pasteur-pescher-pascale-12_crop-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/pascale-pescher/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 62094849,
size: 0.5,
source: 6209,
target: 4849 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 7033) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 62097033,
size: 0.5,
source: 6209,
target: 7033 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8437) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 62098437,
size: 0.5,
source: 6209,
target: 8437 });
//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: 88962,
label: 'Christel Ricard-Andraos',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/04/research_pasteur-christel-ricard-andraos-photo-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/christel-ricard-andraos/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 620988962,
size: 0.5,
source: 6209,
target: 88962 });
//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: 136112,
label: 'Maria Gutierrez-Sanchez',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/12/research_pasteur-maria-gutierrez-sanchez-fotomaria-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/maria-gutierrez-sanchez/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6209136112,
size: 0.5,
source: 6209,
target: 136112 });
//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: 146183,
label: 'Paul Jenkins',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/09/research_pasteur-paul-jenkins-photo-paul-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/paul-jenkins/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6209146183,
size: 0.5,
source: 6209,
target: 146183 });
//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: 148400,
label: 'Sheng Zhang',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/10/research_pasteur-sheng-zhang-photo2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sheng-zhang/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6209148400,
size: 0.5,
source: 6209,
target: 148400 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 148408) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6209148408,
size: 0.5,
source: 6209,
target: 148408 });
//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: 158222,
label: 'Isabelle Louradour',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/04/research_pasteur-isabelle-louradour-photo-pro-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/isabelle-louradour/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6209158222,
size: 0.5,
source: 6209,
target: 158222 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 167431) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6209167431,
size: 0.5,
source: 6209,
target: 167431 });
//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: 175036,
label: 'Ana Maria Murta Santi',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/01/research_pasteur-ana-maria-murta-santi-photo-web-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/ana-maria-murta-santi/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6209175036,
size: 0.5,
source: 6209,
target: 175036 });
//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: 8440,
label: 'Laura Piel',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/05/research_pasteur-laura_photot-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/laura-piel/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 62098440,
size: 0.5,
source: 6209,
target: 8440 });
//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: 110736,
label: 'Juliana Pipoli Da Fonseca',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/09/research_pasteur-lecot6m-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/juliana-pipoli-da-fonseca/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6209110736,
size: 0.5,
source: 6209,
target: 110736 });
//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: 8525,
label: 'Sylviane Etiemble',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-sylviane-etiemble-index-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sylviane-etiemble/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 62098525,
size: 0.5,
source: 6209,
target: 8525 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 216402) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6209216402,
size: 0.5,
source: 6209,
target: 216402 });
//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: 226585,
label: 'Charfeddine Gharsallah',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/226585/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6209226585,
size: 0.5,
source: 6209,
target: 226585 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4848) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 62094848,
size: 0.5,
source: 6209,
target: 4848 });
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) {
});