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: 3949,
label: 'Philippe Bastin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_philippe_bastin-150x150.jpg',
x: 0,
y: 0,
size: 30,
color: '#DDDDDD'
});
var biggest_node_size = 0;
N=35
// 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: 224718,
label: 'EVENT: Adapting to Change: Emerging Infectious Diseases in a Shifting Climate',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/ibeid-congress-24/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949224718,
size: 0.5,
source: 3949,
target: 224718,
});
//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: 4775,
label: 'Carla Saleh',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_ha68-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/carla-saleh/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2247184775,
size: 0.5,
source: 224718,
target: 4775 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2247183949,
size: 0.5,
source: 224718,
target: 3949 });
//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: 203306,
label: 'Cyril Renassia',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/06/research_pasteur-cyril-renassia-photo-cv-2023-cropped-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/cyril-renassia/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 224718203306,
size: 0.5,
source: 224718,
target: 203306 });
//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: 4255,
label: 'Anna-Bella Failloux',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/12/research.pasteur.fr_ab-failloux3-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/anna-bella-failloux/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2247184255,
size: 0.5,
source: 224718,
target: 4255 });
//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: 4765,
label: 'Etienne Simon-Loriere',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_e.simon-loriere_1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/etienne-simon-loriere/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2247184765,
size: 0.5,
source: 224718,
target: 4765 });
//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: 4058,
label: 'Chetan Chitnis',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_chitnis_photo-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/chetan-chitnis/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2247184058,
size: 0.5,
source: 224718,
target: 4058 });
//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: 23955,
label: 'Nadine Cerf-Bensussan',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/nadine-cerf-bensussan/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 22471823955,
size: 0.5,
source: 224718,
target: 23955 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4087,
label: 'Mélanie Hamon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/01/research.pasteur.fr_p1010312-version-2-4-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/melanie-hamon/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2247184087,
size: 0.5,
source: 224718,
target: 4087 });
// 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: 224344,
label: 'NEWS: IBEID Labex Day 24',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/ibeid-labex-day-24/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949224344,
size: 0.5,
source: 3949,
target: 224344,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4775) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2243444775,
size: 0.5,
source: 224344,
target: 4775 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2243443949,
size: 0.5,
source: 224344,
target: 3949 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 203306) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 224344203306,
size: 0.5,
source: 224344,
target: 203306 });
// 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: 224340,
label: 'EVENT: IBEID Labex Day 24',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/labex-day-24/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949224340,
size: 0.5,
source: 3949,
target: 224340,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 203306) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 224340203306,
size: 0.5,
source: 224340,
target: 203306 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2243403949,
size: 0.5,
source: 224340,
target: 3949 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4775) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2243404775,
size: 0.5,
source: 224340,
target: 4775 });
// 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: 220194,
label: 'EVENT: DPT Parasites and Insects Vectors Extraordinary Seminar -Professor Albert DESCOTEAUX “Leishmania remodels host cell organelles”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/dpt-parasites-and-insects-vectors-extraordinary-seminar-professor-albert-descoteauxdpt-leishmania-remodels-host-cell-organelles/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949220194,
size: 0.5,
source: 3949,
target: 220194,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2201943949,
size: 0.5,
source: 220194,
target: 3949 });
// 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: 206399,
label: 'EVENT: DPT Parasites and Insects Vectors Extraordinary Seminar – Professor Vyacheslav YURCHENKO “Viral and bacterial endobionts of Trypanosomatidae: lessons from the “obscure” species”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/dpt-parasites-and-insects-vectors-extraordinary-seminar-professor-vyacheslav-yurchenko-viral-and-bacterial-endobionts-of-trypanosomatidae-lessons-from-the-obscure-species/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949206399,
size: 0.5,
source: 3949,
target: 206399,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2063993949,
size: 0.5,
source: 206399,
target: 3949 });
// 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: 199816,
label: 'EVENT: DPT Parasites and Insects Vectors Seminar – David PEREZ-MORGA ” Human African Trypanosomiasis evolution and cell death in Trypanosoma brucei brucei – Chapter III”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/dpt-parasites-and-insects-vectors-seminar-david-perez-morga-human-african-trypanosomiasis-evolution-and-cell-death-in-trypanosoma-brucei-brucei-chapter-iii/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949199816,
size: 0.5,
source: 3949,
target: 199816,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1998163949,
size: 0.5,
source: 199816,
target: 3949 });
// 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: 191044,
label: 'EVENT: DPT Parasites and Insects Vector seminar – Mark CARRINGTON “How do trypanosome receptors for host macromolecules bind ligands and yet avoid the host immune response?”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/dpt-parasites-and-insects-vector-seminar-mark-carrington-how-do-trypanosome-receptors-for-host-macromolecules-bind-ligands-and-yet-avoid-the-host-immune-response/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949191044,
size: 0.5,
source: 3949,
target: 191044,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1910443949,
size: 0.5,
source: 191044,
target: 3949 });
// 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: 186411,
label: 'PROJECT: Functional Analysis of novel centrosomal and basal body components of two human parasitic protozoa',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/09/research_pasteur-bld10-tubulin-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/functional-analysis-of-novel-centrosomal-and-basal-body-components-of-two-human-parasitic-protozoa/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949186411,
size: 0.5,
source: 3949,
target: 186411,
});
//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: 3950,
label: 'Serge Bonnefoy',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/02/research.pasteur.fr_photo-web-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/serge-bonnefoy/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1864113950,
size: 0.5,
source: 186411,
target: 3950 });
//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: 148275,
label: 'Daniel Abbühl',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/10/research_pasteur-daniel-abbuhl-img-20201012-141524-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/daniel-abbuhl/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 186411148275,
size: 0.5,
source: 186411,
target: 148275 });
//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: 18641137634,
size: 0.5,
source: 186411,
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: 181987,
label: 'Ramiro Tomasina',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=181987',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 186411181987,
size: 0.5,
source: 186411,
target: 181987 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1864113949,
size: 0.5,
source: 186411,
target: 3949 });
// 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: 184050,
label: 'EVENT: DPT Parasites and insects Vectors Seminar – Maria Francia “Shedding light into the big problem by taking a good look at a tiny organelle; the centrosome and cell division in Toxoplasma gondii”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/dpt-parasites-and-insects-vectors-seminar-maria-francia-shedding-light-into-the-big-problem-by-taking-a-good-look-at-a-tiny-organelle-the-centrosome-and-cell-division-in-toxoplasma-gondii/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949184050,
size: 0.5,
source: 3949,
target: 184050,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1840503949,
size: 0.5,
source: 184050,
target: 3949 });
// 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: 181737,
label: 'PROJECT: Deciphering how cells write and read the tubulin code',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/06/research_pasteur-endeciphering-how-cells-write-and-read-the-tubulin-code-2913-immuno-anti-poly-e-1-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/deciphering-how-cells-write-and-read-the-tubulin-code/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949181737,
size: 0.5,
source: 3949,
target: 181737,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3950) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1817373950,
size: 0.5,
source: 181737,
target: 3950 });
//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: 138951,
label: 'Aline Araujo Alves',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/02/research_pasteur-img-20180711-wa0018-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/fr-aline-araujo-alves/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 181737138951,
size: 0.5,
source: 181737,
target: 138951 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 148275) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 181737148275,
size: 0.5,
source: 181737,
target: 148275 });
//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: 3956,
label: 'Thierry Blisnick',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=3956',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1817373956,
size: 0.5,
source: 181737,
target: 3956 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1817373949,
size: 0.5,
source: 181737,
target: 3949 });
// 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: 170342,
label: 'EVENT: PIV deparment seminar – Isabel RODITI “The sweet and sour sides of cyclic AMP signalling in trypanosomes”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/piv-deparment-seminar-isabel-roditi-the-sweet-and-sour-sides-of-cyclic-amp-signalling-in-trypanosomes/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949170342,
size: 0.5,
source: 3949,
target: 170342,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1703423949,
size: 0.5,
source: 170342,
target: 3949 });
// 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: 169754,
label: 'EVENT: PIV DPT Seminar – Ariel SILBER “Proline, a “metabolic penknife” for the dangerous lifestyle of Trypanosoma cruzi “',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/piv-dpt-seminar-ariel-silber-proline-a-metabolic-penknife-for-the-dangerous-lifestyle-of-trypanosoma-cruzi/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949169754,
size: 0.5,
source: 3949,
target: 169754,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1697543949,
size: 0.5,
source: 169754,
target: 3949 });
// 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: 148609,
label: 'EVENT: PhD thesis defense of Adeline Mallet',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/phd-defense-adeline-mallet/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949148609,
size: 0.5,
source: 3949,
target: 148609,
});
//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: 1555,
label: 'Adeline Mallet',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/02/research_pasteur-adeline-mallet-sans-titre-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/adeline-mallet/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1486091555,
size: 0.5,
source: 148609,
target: 1555 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1486093949,
size: 0.5,
source: 148609,
target: 3949 });
// 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: 137740,
label: 'EVENT: MORNing glory: structures and roles of MORN repeat proteins from Trypanosoma, Toxoplasma, and Plasmodium – Brooke Morriswood',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/morning-glory-structures-and-roles-of-morn-repeat-proteins-from-trypanosoma-toxoplasma-and-plasmodium-brooke-morriswood/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949137740,
size: 0.5,
source: 3949,
target: 137740,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1377403949,
size: 0.5,
source: 137740,
target: 3949 });
// 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: 134059,
label: 'EVENT: BILBO1 and the fellowship of the ring: Deciphering the composition, assembly and function of the ring of power – Mélanie Bonhivers',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/bilbo1-and-the-fellowship-of-the-ring-deciphering-the-composition-assembly-and-function-of-the-ring-of-power-melanie-bonhivers/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949134059,
size: 0.5,
source: 3949,
target: 134059,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1340593949,
size: 0.5,
source: 134059,
target: 3949 });
// 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: 126452,
label: 'EVENT: “New drugs for African trypanosomiasis from control to elimination ?” Pascal MAESER',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/new-drugs-for-african-trypanosomiasis-from-control-to-elimination-pascal-maeser/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949126452,
size: 0.5,
source: 3949,
target: 126452,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1264523949,
size: 0.5,
source: 126452,
target: 3949 });
// 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: 122072,
label: 'TEAM: U1201 – Genetic and molecular basis of host-parasite interactions',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/team/genetic-and-molecular-basis-of-host-parasite-interactions/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949122072,
size: 0.5,
source: 3949,
target: 122072,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1220723949,
size: 0.5,
source: 122072,
target: 3949 });
//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: 1220724848,
size: 0.5,
source: 122072,
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: 4802,
label: 'Artur Scherf',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_artur-bis-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/artur-scherf/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1220724802,
size: 0.5,
source: 122072,
target: 4802 });
// 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: 115021,
label: 'PROJECT: Role of tubulin glutamylation in flagellum construction (TUBGLUFLA)',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/10/research_pasteur-ttll4a-3-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/tubglufla/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949115021,
size: 0.5,
source: 3949,
target: 115021,
});
//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: 64170,
label: 'Moara Lemos',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/01/research_pasteur-10520840_1439443806339279_2110630349859508566_n-1-3-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/moara-lemos/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 11502164170,
size: 0.5,
source: 115021,
target: 64170 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3956) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1150213956,
size: 0.5,
source: 115021,
target: 3956 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3950) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1150213950,
size: 0.5,
source: 115021,
target: 3950 });
//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: 4041,
label: 'Julia Chamot-Rooke',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/03/research.pasteur.fr_dsc4714-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/julia-chamot-rooke/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1150214041,
size: 0.5,
source: 115021,
target: 4041 });
//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: 1058,
label: 'Thibault Chaze',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=1058',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1150211058,
size: 0.5,
source: 115021,
target: 1058 });
//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: 4042,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1150214042,
size: 0.5,
source: 115021,
target: 4042 });
//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: 4045,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1150214045,
size: 0.5,
source: 115021,
target: 4045 });
//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: 1150211056,
size: 0.5,
source: 115021,
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: 80008,
label: 'Quentin Giai Gianetto',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/11/research.pasteur.fr_p10001292_3-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/quentin-giai-gianetto/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 11502180008,
size: 0.5,
source: 115021,
target: 80008 });
//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: 138119,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 115021138119,
size: 0.5,
source: 115021,
target: 138119 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 138951) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 115021138951,
size: 0.5,
source: 115021,
target: 138951 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1150213949,
size: 0.5,
source: 115021,
target: 3949 });
// 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: 112532,
label: 'EVENT: PhD thesis defence Eloïse Bertiaux',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/phd-thesis-defence-eloise-bertiaux/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949112532,
size: 0.5,
source: 3949,
target: 112532,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1125323949,
size: 0.5,
source: 112532,
target: 3949 });
//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: 3954,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1125323954,
size: 0.5,
source: 112532,
target: 3954 });
// 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: 103865,
label: 'PROJECT: Centrosome dissection of T. gondii',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/02/research_pasteur-ftzc_gt-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/centrosome-dissection-t-gondii/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3949103865,
size: 0.5,
source: 3949,
target: 103865,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3956) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1038653956,
size: 0.5,
source: 103865,
target: 3956 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1038653949,
size: 0.5,
source: 103865,
target: 3949 });
// 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: 81449,
label: 'EVENT: “Composition, function and dynamics of the trypanosome flagellum transition zone”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/composition-function-and-dynamics-of-the-trypanosome-flagellum-transition-zone/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 394981449,
size: 0.5,
source: 3949,
target: 81449,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 814493949,
size: 0.5,
source: 81449,
target: 3949 });
// 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: 68205,
label: 'EVENT: GDR-CIL symposium on Model Organisms for Cilia Investigations',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/04/research.pasteur.fr_gdr_symposium_square-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/event/gdr-cil-symposium-on-model-organisms-for-cilia-investigations/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 394968205,
size: 0.5,
source: 3949,
target: 68205,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 682053949,
size: 0.5,
source: 68205,
target: 3949 });
// 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: 66428,
label: 'EVENT: “Coat replacement dynamics in the African trypanosome”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/coat-replacement-dynamics-in-the-african-trypanosome/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 394966428,
size: 0.5,
source: 3949,
target: 66428,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 664283949,
size: 0.5,
source: 66428,
target: 3949 });
// 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: 64571,
label: 'PROJECT: Molecular bases for the role of IFT172 in ciliogenesis and in ciliopathy',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/02/research.pasteur.fr_ift172-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/molecular-bases-for-the-role-of-ift172-in-ciliogenesis-and-in-ciliopathy/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 394964571,
size: 0.5,
source: 3949,
target: 64571,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 645713949,
size: 0.5,
source: 64571,
target: 3949 });
// 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: 64567,
label: 'PROJECT: Mode of action of intraflagellar transport',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/02/research.pasteur.fr_fig1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/mode-of-action-of-intraflagellar-transport/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 394964567,
size: 0.5,
source: 3949,
target: 64567,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 64170) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6456764170,
size: 0.5,
source: 64567,
target: 64170 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3956) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 645673956,
size: 0.5,
source: 64567,
target: 3956 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 645673949,
size: 0.5,
source: 64567,
target: 3949 });
// 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: 59876,
label: 'NEWS: Sanofi-Pasteur Awards – Mohamed-Ali HAKIMI and Keith MATTHEWS',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/sanofi-pasteur-awards-mohamed-ali-hakimi-and-keith-matthews/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 394959876,
size: 0.5,
source: 3949,
target: 59876,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 598763949,
size: 0.5,
source: 59876,
target: 3949 });
// 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: 59801,
label: 'NEWS: Symposium “Parasitology in the 21st century”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/26th-november-symposium-parasitology-in-the-21st-century/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 394959801,
size: 0.5,
source: 3949,
target: 59801,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 598013949,
size: 0.5,
source: 59801,
target: 3949 });
//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: 7032,
label: 'Agnès Mer Appere',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=7032',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 598017032,
size: 0.5,
source: 59801,
target: 7032 });
// 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: 54592,
label: 'EVENT: “Using tubulin cofactor C-like domains in unexpected ways to build a parasite”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/using-tubulin-cofactor-c-like-domains-in-unexpected-ways-to-build-a-parasite/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 394954592,
size: 0.5,
source: 3949,
target: 54592,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 545923949,
size: 0.5,
source: 54592,
target: 3949 });
// 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: 54073,
label: 'EVENT: “Parasitology in the 21st century”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/parasitology-in-the-21st-century/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 394954073,
size: 0.5,
source: 3949,
target: 54073,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 540733949,
size: 0.5,
source: 54073,
target: 3949 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 7032) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 540737032,
size: 0.5,
source: 54073,
target: 7032 });
// 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: 50908,
label: 'EVENT: “Decoding toxin-parasite interactions in Trypanosomatids”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/decoding-toxin-parasite-interactions-in-trypanosomatids/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 394950908,
size: 0.5,
source: 3949,
target: 50908,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 509083949,
size: 0.5,
source: 50908,
target: 3949 });
// 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: 47595,
label: 'PROJECT: Symposium ‘Parasitology in the 21st century’',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/symposium-parasitology-in-the-21st-century/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 394947595,
size: 0.5,
source: 3949,
target: 47595,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 475953949,
size: 0.5,
source: 47595,
target: 3949 });
// 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: 14686,
label: 'PROGRAM_PROJECT: LabEx IBEID – Integrative Biology of Emerging Infectious Diseases',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_labex-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/program_project/integrative-biology-of-emerging-infectious-diseases/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 394914686,
size: 0.5,
source: 3949,
target: 14686,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 203306) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 14686203306,
size: 0.5,
source: 14686,
target: 203306 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 146863949,
size: 0.5,
source: 14686,
target: 3949 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4775) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 146864775,
size: 0.5,
source: 14686,
target: 4775 });
// 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: 20965,
label: 'PROJECT: The Paraflagellar Rod',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/the-paraflagellar-rod/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 394920965,
size: 0.5,
source: 3949,
target: 20965,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 209653949,
size: 0.5,
source: 20965,
target: 3949 });
// 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: 20100,
label: 'PROJECT: Trypanosomes',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_figura7-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/trypanosomes/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 394920100,
size: 0.5,
source: 3949,
target: 20100,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 201003949,
size: 0.5,
source: 20100,
target: 3949 });
// 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: 6205,
label: 'TEAM: Trypanosome Cell Biology',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_trypanosome-cell-biology-4-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/trypanosome-cell-biology/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 39496205,
size: 0.5,
source: 3949,
target: 6205,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 148275) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6205148275,
size: 0.5,
source: 6205,
target: 148275 });
//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: 205165,
label: 'Hashem Almousa',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/hashem-almousa/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6205205165,
size: 0.5,
source: 6205,
target: 205165 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 138951) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6205138951,
size: 0.5,
source: 6205,
target: 138951 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3950) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 62053950,
size: 0.5,
source: 6205,
target: 3950 });
//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: 8216,
label: 'Anne Cozanet',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/07/research_pasteur-anne-july17-bis-1-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/anne-cozanet/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 62058216,
size: 0.5,
source: 6205,
target: 8216 });
//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: 194281,
label: 'Sabie Fabre',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/sabie-fabre/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6205194281,
size: 0.5,
source: 6205,
target: 194281 });
//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: 2921,
label: 'Christine Girard-Blanc',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/03/research_pasteur-enchristine-girard-blancfrchristine-girard-blanc-img-20190215-151538-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/christine-girard-blanc/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 62052921,
size: 0.5,
source: 6205,
target: 2921 });
//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: 120834,
label: 'Nathalie Petiot',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/01/research_pasteur-nathalie-petiot-web-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/nathalie-petiot/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6205120834,
size: 0.5,
source: 6205,
target: 120834 });
//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: 62053953,
size: 0.5,
source: 6205,
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: 8214,
label: 'Christelle Scaerou',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/02/research.pasteur.fr_christelle-scaerou1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/christelle-scaerou/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 62058214,
size: 0.5,
source: 6205,
target: 8214 });
//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: 168596,
label: 'Parul Sharma',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/10/research_pasteur-parul-sharma-pic1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/parul-sharma/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6205168596,
size: 0.5,
source: 6205,
target: 168596 });
//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: 140527,
label: 'Jean Marc Tsagmo Ngoune',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/03/research_pasteur-pofil-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/jean-marc-tsagmo-ngoune/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6205140527,
size: 0.5,
source: 6205,
target: 140527 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3949) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 62053949,
size: 0.5,
source: 6205,
target: 3949 });
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) {
});