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: 212399,
label: 'The IP Stem Cell Initiative',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/11/research_pasteur-enthe-ip-stem-cell-initiativefrinitiative-cellules-souches-bandeau-site-reduced-ip-stem-cell-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=8
//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: 64150,
label: 'Laure Bally-Cuif',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/04/research.pasteur.fr_laure_bally-cuiff-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/laure-bally-cuif/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 21239964150,
size: 0.5,
source: 212399,
target: 64150 });
//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: 78773,
label: 'Romain Levayer',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/11/research.pasteur.fr_dsc_0008-001-1-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/romain-levayer/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 21239978773,
size: 0.5,
source: 212399,
target: 78773 });
//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: 4553,
label: 'Sigolène Meilhac',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-sigolene-meilhac-meilhac-sigolene-6578c-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sigolene-meilhac/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 2123994553,
size: 0.5,
source: 212399,
target: 4553 });
//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: 155052,
label: 'Guillaume Frasca',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/03/research_pasteur-guillaume-frasca-gf-e1614787961122-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/guillaume-frasca/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 212399155052,
size: 0.5,
source: 212399,
target: 155052 });
//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: 4606,
label: 'Pablo Navarro Gil',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/10/research_pasteur-institut-pasteur_portraits-studio_gcc_162-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/pablo-navarro-gil/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 2123994606,
size: 0.5,
source: 212399,
target: 4606 });
//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: 4876,
label: 'Shahragim Tajbakhsh',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-shahragim-tajbakhsh-tajbakhsh-photo2024-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/shahragim-tajbakhsh/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 2123994876,
size: 0.5,
source: 212399,
target: 4876 });
//check if content already exist
x_site = Math.cos(2 * 6 * Math.PI / N) * 2;
y_site = Math.sin(2 * 6 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 4824,
label: 'François Schweisguth',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/05/research_pasteur-fs3-3-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/francois-schweisguth/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 2123994824,
size: 0.5,
source: 212399,
target: 4824 });
//check if content already exist
x_site = Math.cos(2 * 7 * Math.PI / N) * 2;
y_site = Math.sin(2 * 7 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 4107,
label: 'Christophe D’Enfert',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/denfert_0-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/christophe-denfert/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 2123994107,
size: 0.5,
source: 212399,
target: 4107 });
N=37
// 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: 199398,
label: 'TEAM: Dendritic cells and adaptive immunity',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/03/research_pasteur-endendritic-cells-and-adaptive-immunityfrcellules-dendritiques-et-immunite-adaptative-institutpasteur-46120-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/dendritic-cells-and-adaptive-immunity/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 212399199398,
size: 0.5,
source: 212399,
target: 199398 });
// 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: 195173,
label: 'TEAM: Machine Learning for integrative genomics',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/01/research_pasteur-enmachine-learning-for-integrative-genomicsfrapprentissage-automatique-pour-la-genomique-integrative-bandeau-l-cantini-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/machine-learning-for-integrative-genomics/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 212399195173,
size: 0.5,
source: 212399,
target: 195173 });
// 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: 170297,
label: 'TEAM: Human Disease Models core facility',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/team/human-disease-models-core-facility/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 212399170297,
size: 0.5,
source: 212399,
target: 170297 });
// 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: 170258,
label: 'TEAM: Evolutionary cell biology and evolution of morphogenesis',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/11/research_pasteur-enevolutionary-cell-biology-and-evolution-of-morphogenesisfrbiologie-cellulaire-evolutive-et-evolution-de-la-morphogenese-bandeau-g5-t-brunet-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/evolutionary-cell-biology-and-evolution-of-morphogenesis/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 212399170258,
size: 0.5,
source: 212399,
target: 170258 });
// 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: 166172,
label: 'TEAM: Comparative Functional Genomics',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/team/comparative-functional-genomics/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 212399166172,
size: 0.5,
source: 212399,
target: 166172 });
// 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: 160175,
label: 'TEAM: Cochlear development and therapeutic perspectives',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/team/cochlear-development-and-therapeutic-perspectives/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 212399160175,
size: 0.5,
source: 212399,
target: 160175 });
// 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: 108862,
label: 'TEAM: Mitochondrial Biology',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/06/research_pasteur-enmitochondrial-biology-frbiologie-mitochondriale-bandeau-g5-tim-way-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/mitochondrial-biology/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 212399108862,
size: 0.5,
source: 212399,
target: 108862 });
// 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: 100029,
label: 'TEAM: Physical Microfluidics and Bioengineering',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/team/physical-microfluidics-bioengineering/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 212399100029,
size: 0.5,
source: 212399,
target: 100029 });
// 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: 95900,
label: 'TEAM: Physics of Biological Function',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/11/research_pasteur-bandeau-unite-t-gregor-v2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/physics-of-biological-functions/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 21239995900,
size: 0.5,
source: 212399,
target: 95900 });
// 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: 78781,
label: 'TEAM: Cell death and epithelial homeostasis',
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/en/team/cell-death-and-epithelial-homeostasis/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 21239978781,
size: 0.5,
source: 212399,
target: 78781 });
// 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: 83820,
label: 'TEAM: Membrane Biochemistry and 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/en/team/membrane-biochemistry-and-transport/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 21239983820,
size: 0.5,
source: 212399,
target: 83820 });
// adding node
var x_node = Math.cos(2 * 11 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 11 * Math.PI / N) * 10;
g.nodes.push({
id: 79077,
label: 'TEAM: Biomaterials and Microfluidics',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/11/research.pasteur.fr_biomaterials-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/biomaterials-and-microfluidics/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 21239979077,
size: 0.5,
source: 212399,
target: 79077 });
// 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: 64152,
label: 'TEAM: Zebrafish Neurogenetics',
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/en/team/zebrafish-neurogenetics/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 21239964152,
size: 0.5,
source: 212399,
target: 64152 });
// 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: 62866,
label: 'TEAM: Chromatin and Infection',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/09/research.pasteur.fr_institutpasteur_50133-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/team/chromatin-and-infection/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 21239962866,
size: 0.5,
source: 212399,
target: 62866 });
// 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: 35649,
label: 'TEAM: Mechanisms of epigenetic inheritance',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research_pasteur-enmechanisms-of-epigenetic-inheritancefrmecanismes-de-lheredite-epigenetique-bandeau-cecere-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/mechanisms-of-epigenetic-inheritance/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 21239935649,
size: 0.5,
source: 212399,
target: 35649 });
// 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: 24442,
label: 'TEAM: Molecular Mechanisms of Pathological and Physiological Ageing',
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/en/team/molecular-mechanisms-of-pathological-and-physiological-ageing/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 21239924442,
size: 0.5,
source: 212399,
target: 24442 });
// 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: 24432,
label: 'TEAM: Stroma, Inflammation and Tissue Repair',
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/en/team/group-lucie-peduto/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 21239924432,
size: 0.5,
source: 212399,
target: 24432 });
// 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: 24196,
label: 'TEAM: Early Mammalian Development & Stem Cell Biology',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_mouse-stem-cell1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/group-michel-cohen-tannoudji/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 21239924196,
size: 0.5,
source: 212399,
target: 24196 });
// 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: 6108,
label: 'TEAM: Dynamic Regulation of Morphogenesis',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/07/research_pasteur-unite-j-gros-29-07-19-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/dynamic-regulation-of-morphogenesis/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2123996108,
size: 0.5,
source: 212399,
target: 6108 });
// 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: 6109,
label: 'TEAM: Cellular plasticity in age-related pathologies',
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/en/team/cellular-plasticity-in-age-related-pathologies/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2123996109,
size: 0.5,
source: 212399,
target: 6109 });
// 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: 6110,
label: 'TEAM: Epigenomics, Proliferation and the Identity of Cells – EPIC',
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/en/team/epigenomics-proliferation-and-the-identity-of-cells/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2123996110,
size: 0.5,
source: 212399,
target: 6110 });
// 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: 6111,
label: 'TEAM: Heart Morphogenesis',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_heart-morphogenesis3-e1440501042975-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/heart-morphogenesis/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2123996111,
size: 0.5,
source: 212399,
target: 6111 });
// 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: 6112,
label: 'TEAM: Structures and signals in the neurogenic niche',
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/en/team/structures-and-signals-in-the-neurogenic-niche/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2123996112,
size: 0.5,
source: 212399,
target: 6112 });
// 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: 6113,
label: 'TEAM: Macrophages and Endothelial Cells',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_macrophages-and-endothelial-cells1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/macrophages-and-endothelial-cells/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2123996113,
size: 0.5,
source: 212399,
target: 6113 });
// 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: 6124,
label: 'TEAM: Computational Systems Biomedicine',
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/en/team/csb/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2123996124,
size: 0.5,
source: 212399,
target: 6124 });
// 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: 6139,
label: 'TEAM: Cell Polarity, Migration And 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/en/team/cell-polarity-migration-and-cancer__trashed/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2123996139,
size: 0.5,
source: 212399,
target: 6139 });
// 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: 6140,
label: 'TEAM: Membrane Traffic and Pathogenesis',
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/en/team/membrane-traffic-and-pathogenesis/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2123996140,
size: 0.5,
source: 212399,
target: 6140 });
// 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: 6137,
label: 'TEAM: Nuclear Organization and Oncogenesis',
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/en/team/nuclear-organization-and-oncogenesis/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2123996137,
size: 0.5,
source: 212399,
target: 6137 });
// 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: 6143,
label: 'TEAM: Dynamics of Developmental Decisions in Drosophila',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_drosophila-developmental-genetics-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/4d/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2123996143,
size: 0.5,
source: 212399,
target: 6143 });
// 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: 6144,
label: 'TEAM: Human Developmental Genetics',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_humangeneticdev-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/human-developmental-genetics/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2123996144,
size: 0.5,
source: 212399,
target: 6144 });
// 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: 6142,
label: 'TEAM: Stem Cells And Development',
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/en/team/stem-cells-and-development/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2123996142,
size: 0.5,
source: 212399,
target: 6142 });
// 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: 6171,
label: 'TEAM: Microenvironment and Immunity',
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/en/team/microenvironment-and-immunity/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2123996171,
size: 0.5,
source: 212399,
target: 6171 });
// 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: 6180,
label: 'TEAM: Lyssavirus epidemiology and neuropathology',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_lyssavirus-dynamics-and-host-adaptation-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/lyssavirus-epidemiology-and-neuropathology/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2123996180,
size: 0.5,
source: 212399,
target: 6180 });
// 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: 6181,
label: 'TEAM: Biology of infection',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_biology-of-infection1-e1441559125111-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/biology-of-infection/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2123996181,
size: 0.5,
source: 212399,
target: 6181 });
// 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: 6201,
label: 'TEAM: Integrative Neurobiology of Cholinergic Systems',
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/en/team/integrative-neurobiology-of-cholinergic-systems/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2123996201,
size: 0.5,
source: 212399,
target: 6201 });
// 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: 6202,
label: 'TEAM: Perception & Action',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_chen_stemcells_6-2013-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/perception-and-action/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2123996202,
size: 0.5,
source: 212399,
target: 6202 });
// 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: 6224,
label: 'TEAM: Virus and Immunity',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_institutpasteur_40763-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/virus-and-immunity/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2123996224,
size: 0.5,
source: 212399,
target: 6224 });
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) {
});