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: 6165,
label: 'Microbial Evolutionary Genomics',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_genomics-150x150.jpg',
x: 0,
y: 0,
size: 30,
color: '#DDDDDD'
});
N=11
var x_node = Math.cos(2 * 0 * Math.PI / N) * 2;
var y_node = Math.sin(2 * 0 * Math.PI / N) * 2;
var biggest_node_size = 0;
//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: 8396,
label: 'Brigitte Bidault',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_ha78-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/brigitte-bidault/',
x: x_site,
y: y_site,
size: 16,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 61658396,
size: 0.5,
source: 6165,
target: 8396 });
//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: 4685,
label: 'Marie Touchon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_touchon-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/marie-touchon/',
x: x_site,
y: y_site,
size: 16,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 61654685,
size: 0.5,
source: 6165,
target: 4685 });
//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: 25653,
label: 'Olaya Rendueles-Garcia',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/03/research_pasteur-photo_olaya2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/olaya-rendueles-garcia/',
x: x_site,
y: y_site,
size: 16,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 616525653,
size: 0.5,
source: 6165,
target: 25653 });
//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: 53076,
label: 'Amandine Perrin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research.pasteur.fr_untitled4-142x150.png',
page_url: 'https://research.pasteur.fr/en/member/amandine-perrin/',
x: x_site,
y: y_site,
size: 16,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 616553076,
size: 0.5,
source: 6165,
target: 53076 });
//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: 63058,
label: 'Camille d’Humières',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/01/research.pasteur.fr_photo_sm-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/camille-dhumieres/',
x: x_site,
y: y_site,
size: 16,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 616563058,
size: 0.5,
source: 6165,
target: 63058 });
//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: 75259,
label: 'Jorge Moura de Sousa',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/08/research.pasteur.fr_citations-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/jorge-moura-de-sousa/',
x: x_site,
y: y_site,
size: 16,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 616575259,
size: 0.5,
source: 6165,
target: 75259 });
//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: 99732,
label: 'Amandine Buffet',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/02/research_pasteur-screen-shot-2019-02-22-at-3.19.38-pm-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/amandine-buffet/',
x: x_site,
y: y_site,
size: 16,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 616599732,
size: 0.5,
source: 6165,
target: 99732 });
//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: 103179,
label: 'Matthieu Haudiquet',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/matthieu-haudiquet/',
x: x_site,
y: y_site,
size: 16,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 6165103179,
size: 0.5,
source: 6165,
target: 103179 });
//check if content already exist
x_site = Math.cos(2 * 8 * Math.PI / N) * 2;
y_site = Math.sin(2 * 8 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 121543,
label: 'Eugen Pfeifer',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/02/research_pasteur-profile_picture-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/eugen-pfeifer/',
x: x_site,
y: y_site,
size: 16,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 6165121543,
size: 0.5,
source: 6165,
target: 121543 });
//check if content already exist
x_site = Math.cos(2 * 9 * Math.PI / N) * 2;
y_site = Math.sin(2 * 9 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 144247,
label: 'Charles Coluzzi',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/07/research_pasteur-charles_coluzzi-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/charles-coluzzi/',
x: x_site,
y: y_site,
size: 16,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 6165144247,
size: 0.5,
source: 6165,
target: 144247 });
//check if content already exist
x_site = Math.cos(2 * 10 * Math.PI / N) * 2;
y_site = Math.sin(2 * 10 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 4684,
label: 'Eduardo Rocha',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_eduardo_rocha-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/eduardo-rocha/',
x: x_site,
y: y_site,
size: 16,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 61654684,
size: 0.5,
source: 6165,
target: 4684 });
// update positions
x_node = Math.cos(2 * 0 * Math.PI / N) * 10;
y_node = Math.sin(2 * 0 * Math.PI / N) * 10;
N=53
// 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: 156126,
label: 'NEWS: AWARDS: Olaya Rendueles-Garcia receives the 2021 CNRS Bronze Medal',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/olaya-rendueles-garcia/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 6165156126,
size: 0.5,
source: 6165,
target: 156126 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 15612625653,
size: 0.5,
source: 156126,
target: 25653 });
// 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: 155073,
label: 'NEWS: Amandine Buffet’s first first author paper on maintenance of the capsule is out!!',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/amandine-buffets-first-first-author-paper-on-maintenance-of-the-capsule-is-now-out/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 6165155073,
size: 0.5,
source: 6165,
target: 155073 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 99732) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 15507399732,
size: 0.5,
source: 155073,
target: 99732 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 1550734684,
size: 0.5,
source: 155073,
target: 4684 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 15507325653,
size: 0.5,
source: 155073,
target: 25653 });
// 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: 145007,
label: 'NEWS: Our first experimental paper is out: Prophages in Klebsiella sp. And lots of them!',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/07/research_pasteur-figure1-150x150.png',
page_url: 'https://research.pasteur.fr/en/news/our-first-experimental-paper-is-out-prophages-in-klebsiella-lots-of-them/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 6165145007,
size: 0.5,
source: 6165,
target: 145007 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 14500725653,
size: 0.5,
source: 145007,
target: 25653 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 103179) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 145007103179,
size: 0.5,
source: 145007,
target: 103179 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 1450074684,
size: 0.5,
source: 145007,
target: 4684 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 99732) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 14500799732,
size: 0.5,
source: 145007,
target: 99732 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 75259) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 14500775259,
size: 0.5,
source: 145007,
target: 75259 });
// 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: 139186,
label: 'NEWS: Atypical organizations and epistatic interactions of CRISPRs and cas clusters in genomes and their mobile genetic elements',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/02/research_pasteur-toto-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/news/atypical-organizations-and-epistatic-interactions-of-crisprs-and-cas-clusters-in-genomes-and-their-mobile-genetic-elements/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 6165139186,
size: 0.5,
source: 6165,
target: 139186 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 1391864684,
size: 0.5,
source: 139186,
target: 4684 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4685) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 1391864685,
size: 0.5,
source: 139186,
target: 4685 });
//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: 7709,
label: 'Aude Bernheim',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_aude-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/aude-bernheim/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 1391867709,
size: 0.5,
source: 139186,
target: 7709 });
//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: 3957,
label: 'David Bikard',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/01/research.pasteur.fr_photo_cropped-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/david-bikard/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 1391863957,
size: 0.5,
source: 139186,
target: 3957 });
// 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: 139183,
label: 'NEWS: Community diversity and habitat structure shape the repertoire of extracellular proteins in bacteria',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/community-diversity-and-habitat-structure-shape-the-repertoire-of-extracellular-proteins-in-bacteria/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 6165139183,
size: 0.5,
source: 6165,
target: 139183 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 1391834684,
size: 0.5,
source: 139183,
target: 4684 });
//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: 4691,
label: 'Marc Garcia-Garcera',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_garcera-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/marc-garcia-garcera/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 1391834691,
size: 0.5,
source: 139183,
target: 4691 });
// 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: 131192,
label: 'NEWS: Evolution of the type IV filament superfamily into machines for multiple functions.',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/09/research_pasteur-fig7_cartoon_events-4-150x150.png',
page_url: 'https://research.pasteur.fr/en/news/evolution-of-the-type-iv-filament-superfamily-into-machines-for-multiple-functions/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 6165131192,
size: 0.5,
source: 6165,
target: 131192 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 1311924684,
size: 0.5,
source: 131192,
target: 4684 });
//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: 77965,
label: 'Rémi Denise',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/10/research.pasteur.fr_aaeaaqaaaaaaaauyaaaajgm1ymnkmtc1ltezodktndhkns04ymu2lthimgyxnjnmndewng-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/remi-denise/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 13119277965,
size: 0.5,
source: 131192,
target: 77965 });
//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: 75246,
label: 'Sophie Abby',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/08/research.pasteur.fr_abby_sm-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sophie-abby/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 13119275246,
size: 0.5,
source: 131192,
target: 75246 });
// 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: 129599,
label: 'NEWS: Bacteriophages benefit from generalized transduction',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/bacteriophages-benefit-from-generalized-transduction/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 6165129599,
size: 0.5,
source: 6165,
target: 129599 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 75259) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 12959975259,
size: 0.5,
source: 129599,
target: 75259 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 1295994684,
size: 0.5,
source: 129599,
target: 4684 });
// 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: 129328,
label: 'EVENT: Recent Computational Advances in Metagenomics (RCAM’19)',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/recent-computational-advances-in-metagenomics-rcam19/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 6165129328,
size: 0.5,
source: 6165,
target: 129328 });
// 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: 125763,
label: 'DEPARTMENT: Computational Biology',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/06/research_pasteur-dept_computational_biology-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/department/computational-biology/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 6165125763,
size: 0.5,
source: 6165,
target: 125763 });
//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: 104949,
label: 'Mélanie Bernardini Ridel',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/04/research_pasteur-zhqmk3fvz5qjzrvh-c5ijvianpy-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/melanie-ridel/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 125763104949,
size: 0.5,
source: 125763,
target: 104949 });
//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: 40239,
label: 'Cécile Peltekian',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research.pasteur.fr_img_9689-e1445939889993-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/cecile-peltekian/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 12576340239,
size: 0.5,
source: 125763,
target: 40239 });
//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: 4977,
label: 'Christophe Zimmer',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_chzphoto-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/christophe-zimmer/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 1257634977,
size: 0.5,
source: 125763,
target: 4977 });
//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: 83824,
label: 'Grégory Batt',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/11/research_pasteur-greg-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/gregory-batt/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 12576383824,
size: 0.5,
source: 125763,
target: 83824 });
// 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: 125631,
label: 'NEWS: Jean Cury wins the outstanding student paper of the year in MBE',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/04/research_pasteur-1b88d8efd5d44b8358234fea_1200x542-150x150.png',
page_url: 'https://research.pasteur.fr/en/news/jean-cury-wins-the-outstanding-student-paper-for-mbe-in-2018/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 6165125631,
size: 0.5,
source: 6165,
target: 125631 });
//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: 4688,
label: 'Jean Cury',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_cury-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/jean-cury/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 1256314688,
size: 0.5,
source: 125631,
target: 4688 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 1256314684,
size: 0.5,
source: 125631,
target: 4684 });
//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: 4690,
label: 'Pedro Couto Oliveira',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_photo10-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/pedro-couto-oliveira/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 1256314690,
size: 0.5,
source: 125631,
target: 4690 });
// 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: 121808,
label: 'TEAM: Genetics of genomes',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/team/genetics-of-genomes/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 6165121808,
size: 0.5,
source: 6165,
target: 121808 });
// 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: 119159,
label: 'NEWS: Genetic exchanges are more frequent in bacteria encoding capsules',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/01/research_pasteur-hgt-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/news/our-newest-paper-genetic-exchanges-are-more-frequent-in-bacteria-encoding-capsules/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 6165119159,
size: 0.5,
source: 6165,
target: 119159 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 11915925653,
size: 0.5,
source: 119159,
target: 25653 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 1191594684,
size: 0.5,
source: 119159,
target: 4684 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 75259) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 11915975259,
size: 0.5,
source: 119159,
target: 75259 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4685) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 1191594685,
size: 0.5,
source: 119159,
target: 4685 });
// 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: 109487,
label: 'NEWS: Parallels between natural and experimental evolution of symbiosis',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/parallels-between-natural-and-experimental-evolution-of-symbiosis/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 6165109487,
size: 0.5,
source: 6165,
target: 109487 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4685) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 1094874685,
size: 0.5,
source: 109487,
target: 4685 });
//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: 8397,
label: 'Camille Clerissi',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_untitled1-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/camille-clerissi/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 1094878397,
size: 0.5,
source: 109487,
target: 8397 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 1094874684,
size: 0.5,
source: 109487,
target: 4684 });
// 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: 98802,
label: 'PROJECT: SPARK: Transmission of multidrug resistant Klebsiella clones and genes – a One Health approach',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/11/research_pasteur-logo_spark-150x150.png',
page_url: 'https://research.pasteur.fr/en/project/spark-transmission-of-multidrug-resistant-klebsiella-clones-and-genes-a-one-health-approach/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616598802,
size: 0.5,
source: 6165,
target: 98802 });
//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: 8395,
label: 'Virginie Passet',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_passet-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/virginie-passet/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 988028395,
size: 0.5,
source: 98802,
target: 8395 });
//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: 95356,
label: 'Juan Sebastián López Fernández',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/09/research_pasteur-jslf-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/juan-sebastian-lopez-fernandez/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 9880295356,
size: 0.5,
source: 98802,
target: 95356 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 988024684,
size: 0.5,
source: 98802,
target: 4684 });
//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: 2495,
label: 'Sylvain Brisse',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/03/9c960524567ea360a3_l_2ae2a-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sylvain-brisse/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 988022495,
size: 0.5,
source: 98802,
target: 2495 });
// 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: 96994,
label: 'NEWS: The treasure troves of bacterial genetic diversity',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/10/research_pasteur-transformation_hgt_hrec_hor-150x150.png',
page_url: 'https://research.pasteur.fr/en/news/the-treasure-troves-of-bacterial-genetic-diversity/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616596994,
size: 0.5,
source: 6165,
target: 96994 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 969944684,
size: 0.5,
source: 96994,
target: 4684 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4688) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 969944688,
size: 0.5,
source: 96994,
target: 4688 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4685) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 969944685,
size: 0.5,
source: 96994,
target: 4685 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4690) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 969944690,
size: 0.5,
source: 96994,
target: 4690 });
// 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: 95523,
label: 'EVENT: Workshop “Recent Computational Advances in Metagenomics (RCAM)” 2017',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/workshop-recent-computational-advances-in-metagenomics-rcam-2017/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616595523,
size: 0.5,
source: 6165,
target: 95523 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 955234684,
size: 0.5,
source: 95523,
target: 4684 });
// 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: 90460,
label: 'NEWS: Emerging diseases: a highly mutant strain of the Elizabethkingia bacterium caused an outbreak in Wisconsin',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/05/research_pasteur-elizabethkingia_image_cip2017-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/news/emerging-diseases-a-highly-mutant-strain-of-the-elizabethkingia-bacterium-caused-an-outbreak-in-wisconsin/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616590460,
size: 0.5,
source: 6165,
target: 90460 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 53076) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 9046053076,
size: 0.5,
source: 90460,
target: 53076 });
//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: 63549,
label: 'Elise Larsonneur',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/01/research.pasteur.fr_photo_elise-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/elise-larsonneur/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 9046063549,
size: 0.5,
source: 90460,
target: 63549 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 9046025653,
size: 0.5,
source: 90460,
target: 25653 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4688) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 904604688,
size: 0.5,
source: 90460,
target: 4688 });
//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: 4680,
label: 'Perrine Hugon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_perrine-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/perrine-hugon/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 904604680,
size: 0.5,
source: 90460,
target: 4680 });
//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: 6980,
label: 'Dominique Clermont',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_dominique-clermont-bis-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/dominique-clermont/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 904606980,
size: 0.5,
source: 90460,
target: 6980 });
//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: 4919,
label: 'Vincent Enouf',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_fdf-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/vincent-enouf/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 904604919,
size: 0.5,
source: 90460,
target: 4919 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 904604684,
size: 0.5,
source: 90460,
target: 4684 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 7759,
label: 'Alexis Criscuolo',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_alexiscriscuolo-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/alexis-criscuolo/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 904607759,
size: 0.5,
source: 90460,
target: 7759 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4685) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 904604685,
size: 0.5,
source: 90460,
target: 4685 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 2495) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 904602495,
size: 0.5,
source: 90460,
target: 2495 });
// 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: 80943,
label: 'PROGRAM_PROJECT: Fighting Antibiotic Resistance',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/program_project/fighting-antibiotic-resistance/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616580943,
size: 0.5,
source: 6165,
target: 80943 });
// 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: 81538,
label: 'TOOL: CapsuleFinder',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/tool/capsulefinder/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616581538,
size: 0.5,
source: 6165,
target: 81538 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 8153825653,
size: 0.5,
source: 81538,
target: 25653 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 815384684,
size: 0.5,
source: 81538,
target: 4684 });
// 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: 81373,
label: 'PROJECT: ANR SHAPE: Shaping new rhizobia by experimental evolution',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/12/research.pasteur.fr_untitled-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/anr-shape-shaping-new-rhizobia-by-experimental-evolution/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616581373,
size: 0.5,
source: 6165,
target: 81373 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8397) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 813738397,
size: 0.5,
source: 81373,
target: 8397 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 813734684,
size: 0.5,
source: 81373,
target: 4684 });
// 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: 77916,
label: 'PROGRAM_PROJECT: INCEPTION – Institut Convergence for the study of Emergence of Pathology Through Individuals and Populations',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/10/research.pasteur.fr_inception-program-institut-convergence-for-the-study-of-emergence-of-pathology-through-individuals-and-populations-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/program_project/inception/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616577916,
size: 0.5,
source: 6165,
target: 77916 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4977) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 779164977,
size: 0.5,
source: 77916,
target: 4977 });
//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: 7063,
label: 'Monica Sala',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/monica-sala/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 779167063,
size: 0.5,
source: 77916,
target: 7063 });
//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: 153863,
label: 'Maha David',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/maha-david/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 77916153863,
size: 0.5,
source: 77916,
target: 153863 });
//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: 3770,
label: 'Thomas Bourgeron',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_thomas-bourgeron-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/thomas-bourgeron/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 779163770,
size: 0.5,
source: 77916,
target: 3770 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 779164684,
size: 0.5,
source: 77916,
target: 4684 });
//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: 4275,
label: 'Tamara Giles-Vernick',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_dsc6500-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/tamara-giles-vernick/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 779164275,
size: 0.5,
source: 77916,
target: 4275 });
//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: 2624,
label: 'Arnaud Fontanet',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_arnaud-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/arnaud-fontanet/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 779162624,
size: 0.5,
source: 77916,
target: 2624 });
//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: 4715,
label: 'Lluis Quintana-Murci',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_quintana_photo-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/lluis-quintana-murci/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 779164715,
size: 0.5,
source: 77916,
target: 4715 });
//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: 4028,
label: 'Simon Cauchemez',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_fig45-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/simon-cauchemez/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 779164028,
size: 0.5,
source: 77916,
target: 4028 });
//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: 4365,
label: 'Marie-Lise Gougeon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_marie-lise-gougeon-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/marie-lise-gougeon/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 779164365,
size: 0.5,
source: 77916,
target: 4365 });
//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: 4623,
label: 'Michael Nilges',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/02/research.pasteur.fr_dsc3513-copy-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/michael-nilges/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 779164623,
size: 0.5,
source: 77916,
target: 4623 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 388,
label: 'Jean-Christophe Olivo-Marin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/04/research_pasteur-photojcom_2016_2-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/jean-christophe-olivo-marin/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 77916388,
size: 0.5,
source: 77916,
target: 388 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 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: 779164606,
size: 0.5,
source: 77916,
target: 4606 });
//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: 6816,
label: 'Clementine Schilte',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_photo-clem-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/clementine-schilte/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 779166816,
size: 0.5,
source: 77916,
target: 6816 });
// 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: 77821,
label: 'NEWS: A population biology study of Listeria ushers in a new era in listeriosis surveillance',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/10/research.pasteur.fr_map2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/news/a-population-biology-study-of-listeria-ushers-in-a-new-era-in-listeriosis-surveillance/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616577821,
size: 0.5,
source: 6165,
target: 77821 });
//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: 4478,
label: 'Alexandra Moura',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_research.pasteur.fr_photo_serious-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/alexandra-moura/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 778214478,
size: 0.5,
source: 77821,
target: 4478 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 7759) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 778217759,
size: 0.5,
source: 77821,
target: 7759 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4689,
label: 'Mylène Maury',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/06/research_pasteur-portrait-mylenemaury-square1000p-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/mylene-maury/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 778214689,
size: 0.5,
source: 77821,
target: 4689 });
//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: 4468,
label: 'Alexandre Leclercq',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_photo12-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/alexandre-leclercq/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 778214468,
size: 0.5,
source: 77821,
target: 4468 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4919) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 778214919,
size: 0.5,
source: 77821,
target: 4919 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 63549) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 7782163549,
size: 0.5,
source: 77821,
target: 63549 });
//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: 6829,
label: 'Louis Jones',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_loulou-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/louis-jones/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 778216829,
size: 0.5,
source: 77821,
target: 6829 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4685) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 778214685,
size: 0.5,
source: 77821,
target: 4685 });
//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: 4016,
label: 'Viviane Chenal-Francisque',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_viviane-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/viviane-chenal-francisque/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 778214016,
size: 0.5,
source: 77821,
target: 4016 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 778214684,
size: 0.5,
source: 77821,
target: 4684 });
//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: 4470,
label: 'Marc Lecuit',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/05/research_pasteur-sans-titre-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/marc-lecuit/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 778214470,
size: 0.5,
source: 77821,
target: 4470 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 2495) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 778212495,
size: 0.5,
source: 77821,
target: 2495 });
// 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: 77953,
label: 'NEWS: Restriction modification systems as regulators of gene transfer',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/10/research.pasteur.fr_rms_3-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/news/restriction-modification-systems-as-regulators-of-gene-transfer/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616577953,
size: 0.5,
source: 6165,
target: 77953 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 779534684,
size: 0.5,
source: 77953,
target: 4684 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4685) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 779534685,
size: 0.5,
source: 77953,
target: 4685 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4690) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 779534690,
size: 0.5,
source: 77953,
target: 4690 });
// 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: 66022,
label: 'TOOL: TXSSdb, a database of protein secretion systems',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/03/research.pasteur.fr_txssdb-150x150.png',
page_url: 'https://research.pasteur.fr/en/tool/txssdb-a-database-of-protein-secretion-systems/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616566022,
size: 0.5,
source: 6165,
target: 66022 });
//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: 6833,
label: 'Bertrand Néron',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/12/research.pasteur.fr_avatar-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/bertrand-neron/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 660226833,
size: 0.5,
source: 66022,
target: 6833 });
//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: 54134,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 6602254134,
size: 0.5,
source: 66022,
target: 54134 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 660224684,
size: 0.5,
source: 66022,
target: 4684 });
// 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: 62923,
label: 'NEWS: Listeria: identification of hypervirulent strains with placental and cerebral tropism',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/01/research.pasteur.fr_listeriosis-150x150.png',
page_url: 'https://research.pasteur.fr/en/news/listeriaidentification-of-hypervirulent-strains-with-placental-and-cerebral-tropism/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616562923,
size: 0.5,
source: 6165,
target: 62923 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4689) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 629234689,
size: 0.5,
source: 62923,
target: 4689 });
//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: 39580,
label: 'Yu-Huan Tsai',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_y-huan-tsai-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/yu-huan-tsai/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 6292339580,
size: 0.5,
source: 62923,
target: 39580 });
//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: 6875,
label: 'Caroline Charlier-Woerther',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_pic_room_esppano_sol1_sol1-5.jpeg',
page_url: 'https://research.pasteur.fr/en/member/caroline-charlier-woerther/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 629236875,
size: 0.5,
source: 62923,
target: 6875 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4685) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 629234685,
size: 0.5,
source: 62923,
target: 4685 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4468) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 629234468,
size: 0.5,
source: 62923,
target: 4468 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 7759) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 629237759,
size: 0.5,
source: 62923,
target: 7759 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 629234684,
size: 0.5,
source: 62923,
target: 4684 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 2495) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 629232495,
size: 0.5,
source: 62923,
target: 2495 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4470) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 629234470,
size: 0.5,
source: 62923,
target: 4470 });
// 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: 57705,
label: 'SOFTWARE: IntegronFinder',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/11/research.pasteur.fr_figure_1-150x150.png',
page_url: 'https://research.pasteur.fr/en/software/integronfinder/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616557705,
size: 0.5,
source: 6165,
target: 57705 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 6833) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 577056833,
size: 0.5,
source: 57705,
target: 6833 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4688) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 577054688,
size: 0.5,
source: 57705,
target: 4688 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 577054684,
size: 0.5,
source: 57705,
target: 4684 });
// 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: 52998,
label: 'NEWS: Olaya just got an FRM grant',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research.pasteur.fr_olaya-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/news/olaya-just-got-an-frm-grant/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616552998,
size: 0.5,
source: 6165,
target: 52998 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 5299825653,
size: 0.5,
source: 52998,
target: 25653 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 529984684,
size: 0.5,
source: 52998,
target: 4684 });
// 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: 53522,
label: 'TOOL: TXSScan – models and profiles for protein secretion systems',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research.pasteur.fr_logo_buen_txsscan-150x150.png',
page_url: 'https://research.pasteur.fr/en/tool/txsscan-models-and-profiles-for-protein-secretion-systems/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616553522,
size: 0.5,
source: 6165,
target: 53522 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 6833) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 535226833,
size: 0.5,
source: 53522,
target: 6833 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4685) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 535224685,
size: 0.5,
source: 53522,
target: 4685 });
//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.fr_julien-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: 5352237634,
size: 0.5,
source: 53522,
target: 37634 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4688) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 535224688,
size: 0.5,
source: 53522,
target: 4688 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 535224684,
size: 0.5,
source: 53522,
target: 4684 });
// 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: 52938,
label: 'NEWS: GEM paper among the all-time top10 of PLoS Genetics',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research.pasteur.fr_untitled-150x150.png',
page_url: 'https://research.pasteur.fr/en/news/gem-paper-among-the-all-time-top10-of-plos-genetics/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616552938,
size: 0.5,
source: 6165,
target: 52938 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4685) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 529384685,
size: 0.5,
source: 52938,
target: 4685 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 529384684,
size: 0.5,
source: 52938,
target: 4684 });
// 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: 37600,
label: 'SOFTWARE: AlienTrimmer',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research_pasteur-alientrimmer-alientrimmer-150x150.png',
page_url: 'https://research.pasteur.fr/en/software/alientrimmer/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616537600,
size: 0.5,
source: 6165,
target: 37600 });
// 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: 43639,
label: 'PROJECT: ANR Magisbac : Genesis and Maintenance of Bacterial Secondary Chromosomes',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_untitled6-150x150.png',
page_url: 'https://research.pasteur.fr/en/project/magisbac-genesis-and-maintenance-of-bacterial-secondary-chromosomes/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616543639,
size: 0.5,
source: 6165,
target: 43639 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4685) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 436394685,
size: 0.5,
source: 43639,
target: 4685 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4688) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 436394688,
size: 0.5,
source: 43639,
target: 4688 });
//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: 4532,
label: 'Marie-Eve Val',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_photo-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/marie-eve-kennedy-val/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 436394532,
size: 0.5,
source: 43639,
target: 4532 });
//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: 4537,
label: 'Francisco de Lemos Martins',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_website-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/francisco-andre-de-lemos-martins/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 436394537,
size: 0.5,
source: 43639,
target: 4537 });
//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: 4543,
label: 'Alfonso Soler',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research.pasteur.fr_alf_photo-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/alfonso-soler/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 436394543,
size: 0.5,
source: 43639,
target: 4543 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 436394684,
size: 0.5,
source: 43639,
target: 4684 });
//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: 4541,
label: 'Didier Mazel',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-didier-mazel-img-6478-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/didier-mazel/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 436394541,
size: 0.5,
source: 43639,
target: 4541 });
// 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: 42809,
label: 'PROJECT: ERC-2011-StG EVOMOBILOME',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_erc7-150x150.png',
page_url: 'https://research.pasteur.fr/en/project/erc-2011-stg-evomobilome/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616542809,
size: 0.5,
source: 6165,
target: 42809 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4685) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 428094685,
size: 0.5,
source: 42809,
target: 4685 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4688) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 428094688,
size: 0.5,
source: 42809,
target: 4688 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4690) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 428094690,
size: 0.5,
source: 42809,
target: 4690 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4691) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 428094691,
size: 0.5,
source: 42809,
target: 4691 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 4280925653,
size: 0.5,
source: 42809,
target: 25653 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 75259) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 4280975259,
size: 0.5,
source: 42809,
target: 75259 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 428094684,
size: 0.5,
source: 42809,
target: 4684 });
// 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: 38996,
label: 'TOOL: Secreton – Non-Flagellar Type III Secretion Systems in sequenced genomes',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_untitled-41-150x150.png',
page_url: 'https://research.pasteur.fr/en/tool/secreton-non-flagellar-type-iii-secretion-systems-in-sequenced-genomes/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616538996,
size: 0.5,
source: 6165,
target: 38996 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 6833) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 389966833,
size: 0.5,
source: 38996,
target: 6833 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 389964684,
size: 0.5,
source: 38996,
target: 4684 });
// 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: 38992,
label: 'TOOL: ConjDB – a database of conjugative & mobilization systems and T4SS',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_t4ss_complet-150x150.png',
page_url: 'https://research.pasteur.fr/en/tool/conjdb-a-database-of-conjugative-mobilization-systems-and-t4ss/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616538992,
size: 0.5,
source: 6165,
target: 38992 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 37634) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 3899237634,
size: 0.5,
source: 38992,
target: 37634 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 6833) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 389926833,
size: 0.5,
source: 38992,
target: 6833 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 389924684,
size: 0.5,
source: 38992,
target: 4684 });
// 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: 38971,
label: 'SOFTWARE: CONJscan-T4SSscan',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_untitled4-150x150.png',
page_url: 'https://research.pasteur.fr/en/software/conjscan-t4ssscan/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616538971,
size: 0.5,
source: 6165,
target: 38971 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 37634) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 3897137634,
size: 0.5,
source: 38971,
target: 37634 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4688) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 389714688,
size: 0.5,
source: 38971,
target: 4688 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 6833) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 389716833,
size: 0.5,
source: 38971,
target: 6833 });
//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: 6823,
label: 'Olivia Doppelt-Azeroual',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/09/research.pasteur.fr_olivia-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/olivia-doppelt-azeroual/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 389716823,
size: 0.5,
source: 38971,
target: 6823 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 389714684,
size: 0.5,
source: 38971,
target: 4684 });
// 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: 38966,
label: 'SOFTWARE: T3SSscan',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_untitled-4-150x150.png',
page_url: 'https://research.pasteur.fr/en/software/t3ssscan/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616538966,
size: 0.5,
source: 6165,
target: 38966 });
// 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: 38964,
label: 'SOFTWARE: Repseek',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/software/repseek/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616538964,
size: 0.5,
source: 6165,
target: 38964 });
// adding node
var x_node = Math.cos(2 * 37 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 37 * Math.PI / N) * 10;
g.nodes.push({
id: 38958,
label: 'SOFTWARE: Swelfe',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_untitled-2-150x150.png',
page_url: 'https://research.pasteur.fr/en/software/swelfe/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616538958,
size: 0.5,
source: 6165,
target: 38958 });
// adding node
var x_node = Math.cos(2 * 38 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 38 * Math.PI / N) * 10;
g.nodes.push({
id: 38954,
label: 'SOFTWARE: GrowthPred',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_glass_flask_used_by_louis_pasteur_1860s._9660573541-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/software/growthpred/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616538954,
size: 0.5,
source: 6165,
target: 38954 });
//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: 75389,
label: 'Sara Vieira-Silva',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/08/research.pasteur.fr_sara_vieira-silva-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/sara-vieira-silva/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 3895475389,
size: 0.5,
source: 38954,
target: 75389 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 389544684,
size: 0.5,
source: 38954,
target: 4684 });
// adding node
var x_node = Math.cos(2 * 39 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 39 * Math.PI / N) * 10;
g.nodes.push({
id: 38674,
label: 'EVENT: 2nd Edition of the Workshop Recent computational advances in metagenomics (RCAM’15)',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/2nd-edition-of-the-workshop-recent-computational-advances-in-metagenomics-rcam15/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616538674,
size: 0.5,
source: 6165,
target: 38674 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 386744684,
size: 0.5,
source: 38674,
target: 4684 });
// adding node
var x_node = Math.cos(2 * 40 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 40 * Math.PI / N) * 10;
g.nodes.push({
id: 38668,
label: 'EVENT: Bi-annual GdR Molecular Bioinformatics (BIM) meeting',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/bi-annual-gdr-molecular-bioinformatics-bim-meeting/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616538668,
size: 0.5,
source: 6165,
target: 38668 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 386684684,
size: 0.5,
source: 38668,
target: 4684 });
// adding node
var x_node = Math.cos(2 * 41 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 41 * Math.PI / N) * 10;
g.nodes.push({
id: 38292,
label: 'SOFTWARE: MacSyFinder & MacSyView',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_untitled-150x150.png',
page_url: 'https://research.pasteur.fr/en/software/macsyfinder-macsyview/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616538292,
size: 0.5,
source: 6165,
target: 38292 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 6833) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 382926833,
size: 0.5,
source: 38292,
target: 6833 });
//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: 6820,
label: 'Hervé Menager',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research.pasteur.fr_face-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/herve-menager/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 382926820,
size: 0.5,
source: 38292,
target: 6820 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 53076) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 3829253076,
size: 0.5,
source: 38292,
target: 53076 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 382924684,
size: 0.5,
source: 38292,
target: 4684 });
// adding node
var x_node = Math.cos(2 * 42 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 42 * Math.PI / N) * 10;
g.nodes.push({
id: 38258,
label: 'SOFTWARE: Repeatoire',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_untitled2-150x150.png',
page_url: 'https://research.pasteur.fr/en/software/repeatoire/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616538258,
size: 0.5,
source: 6165,
target: 38258 });
// adding node
var x_node = Math.cos(2 * 43 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 43 * Math.PI / N) * 10;
g.nodes.push({
id: 36035,
label: 'TOOL: Genomic and nomenclature databases of pathogenic bacterial strains',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_mstree-150x150.png',
page_url: 'https://research.pasteur.fr/en/tool/genomic-and-nomenclature-databases-of-pathogenic-bacterial-strains/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616536035,
size: 0.5,
source: 6165,
target: 36035 });
//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: 6831,
label: 'Emmanuel Quevillon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_emmanuelquevillon-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/emmanuel-quevillon/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 360356831,
size: 0.5,
source: 36035,
target: 6831 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8395) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 360358395,
size: 0.5,
source: 36035,
target: 8395 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4689) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 360354689,
size: 0.5,
source: 36035,
target: 4689 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4478) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 360354478,
size: 0.5,
source: 36035,
target: 4478 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 53076) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 3603553076,
size: 0.5,
source: 36035,
target: 53076 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 2495) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 360352495,
size: 0.5,
source: 36035,
target: 2495 });
// adding node
var x_node = Math.cos(2 * 44 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 44 * Math.PI / N) * 10;
g.nodes.push({
id: 26697,
label: 'PROJECT: Bioinformatics of genome sequencing applied to epidemiological surveillance of infectious agents',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_phylo-150x150.png',
page_url: 'https://research.pasteur.fr/en/project/sbrisse-whole-genome-sequencing-of-microbial-agents-for-disease-surveillance-outbreak-investigation-epidemiology-and-population-biology/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616526697,
size: 0.5,
source: 6165,
target: 26697 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 7759) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 266977759,
size: 0.5,
source: 26697,
target: 7759 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 37634) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 2669737634,
size: 0.5,
source: 26697,
target: 37634 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 2495) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 266972495,
size: 0.5,
source: 26697,
target: 2495 });
// adding node
var x_node = Math.cos(2 * 45 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 45 * Math.PI / N) * 10;
g.nodes.push({
id: 42506,
label: 'PROJECT: Human and ruminant neurolisteriosis: a comparative study (Swiss National Science Foundation, Sinergia)',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_bqjpg176-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/sinergia-human-and-ruminant-neurolisteriosis-a-comparative-study/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616542506,
size: 0.5,
source: 6165,
target: 42506 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4478) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 425064478,
size: 0.5,
source: 42506,
target: 4478 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 6875) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 425066875,
size: 0.5,
source: 42506,
target: 6875 });
//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: 4469,
label: 'Olivier Disson',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_fig91-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/olivier-disson/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 425064469,
size: 0.5,
source: 42506,
target: 4469 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4689) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 425064689,
size: 0.5,
source: 42506,
target: 4689 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4468) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 425064468,
size: 0.5,
source: 42506,
target: 4468 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4470) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 425064470,
size: 0.5,
source: 42506,
target: 4470 });
//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: 42520,
label: 'Ana Oeverman',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_anna-oeverman-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/epartner/ana-oeverman/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 4250642520,
size: 0.5,
source: 42506,
target: 42520 });
//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: 42549,
label: 'Joachim Frey',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_joachim-frey-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/epartner/pr-joachim-frey/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 4250642549,
size: 0.5,
source: 42506,
target: 42549 });
// adding node
var x_node = Math.cos(2 * 46 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 46 * 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: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616514686,
size: 0.5,
source: 6165,
target: 14686 });
//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: 4779,
label: 'Thierry Planchenault',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research.pasteur.fr_thierry_identité-light1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/thierry-planchenault/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 146864779,
size: 0.5,
source: 14686,
target: 4779 });
//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: 3949,
label: 'Philippe Bastin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_philippe_bastin-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/philippe-bastin/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 146863949,
size: 0.5,
source: 14686,
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: 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: 146864775,
size: 0.5,
source: 14686,
target: 4775 });
//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: 4955,
label: 'Marco Vignuzzi',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_img_2799-copy-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/marco-vignuzzi/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 146864955,
size: 0.5,
source: 14686,
target: 4955 });
// adding node
var x_node = Math.cos(2 * 47 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 47 * Math.PI / N) * 10;
g.nodes.push({
id: 17171,
label: 'PROJECT: Population genomics',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_untitled7-150x145.png',
page_url: 'https://research.pasteur.fr/en/project/population-genomics/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616517171,
size: 0.5,
source: 6165,
target: 17171 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 171714684,
size: 0.5,
source: 17171,
target: 4684 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 53076) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 1717153076,
size: 0.5,
source: 17171,
target: 53076 });
// adding node
var x_node = Math.cos(2 * 48 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 48 * Math.PI / N) * 10;
g.nodes.push({
id: 17163,
label: 'PROJECT: The imprint of growth',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/the-imprint-of-growth/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616517163,
size: 0.5,
source: 6165,
target: 17163 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 171634684,
size: 0.5,
source: 17163,
target: 4684 });
// adding node
var x_node = Math.cos(2 * 49 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 49 * Math.PI / N) * 10;
g.nodes.push({
id: 17151,
label: 'PROJECT: DNA repeats and genome dynamics',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_untitled-21-150x150.png',
page_url: 'https://research.pasteur.fr/en/project/genome-dynamics/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616517151,
size: 0.5,
source: 6165,
target: 17151 });
// adding node
var x_node = Math.cos(2 * 50 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 50 * Math.PI / N) * 10;
g.nodes.push({
id: 28,
label: 'DEPARTMENT: Genomes and Genetics',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_genome-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/department/genomes-genetics/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616528,
size: 0.5,
source: 6165,
target: 28 });
//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: 7044,
label: 'Isabelle Dulieu',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/03/research.pasteur.fr_isabel2013-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/isabelle-dulieu/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 287044,
size: 0.5,
source: 28,
target: 7044 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4684) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 284684,
size: 0.5,
source: 28,
target: 4684 });
//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: 4407,
label: 'Micheline Fromont-Racine',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_photos_mfr-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/micheline-fromont-racine/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 284407,
size: 0.5,
source: 28,
target: 4407 });
// adding node
var x_node = Math.cos(2 * 51 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 51 * Math.PI / N) * 10;
g.nodes.push({
id: 22,
label: 'DEPARTMENT: Microbiology',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_microbiology-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/department/microbiology/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 616522,
size: 0.5,
source: 6165,
target: 22 });
//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: 134269,
label: 'Rebecca Pavillard',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/10/research_pasteur-pavillard-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/rebecca-pavillard/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 22134269,
size: 0.5,
source: 22,
target: 134269 });
//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: 103214,
label: 'Frédéric Barras',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/04/research_pasteur-f-barras-1-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/frederic-barras/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 22103214,
size: 0.5,
source: 22,
target: 103214 });
//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: 4214,
label: 'Bruno Dupuy',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_bruno_id-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/bruno-dupuy/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 224214,
size: 0.5,
source: 22,
target: 4214 });
// adding node
var x_node = Math.cos(2 * 52 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 52 * Math.PI / N) * 10;
g.nodes.push({
id: 126247,
label: 'TEAM: Group : Molecular microbial evolution & ecology',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/05/research_pasteur-group-o-rendueles-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/group-olaya-rendueles-garcia/',
size: 24,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 6165126247,
size: 0.5,
source: 6165,
target: 126247 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 99732) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 12624799732,
size: 0.5,
source: 126247,
target: 99732 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 103179) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 126247103179,
size: 0.5,
source: 126247,
target: 103179 });
//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: 121547,
label: 'Elif Elçin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/02/research_pasteur-elif-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/elif-elcin/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 126247121547,
size: 0.5,
source: 126247,
target: 121547 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25653) {
n.size = n.size + 10;
if ( n.size > biggest_node_size ){
biggest_node_size = n.size;
}
}
});
g.nodes.forEach(function(n) {
if (n.id == 6165) {
if ( n.size < biggest_node_size ){
n.size = biggest_node_size;
}
}
});
//link to content
g.edges.push({
id: 12624725653,
size: 0.5,
source: 126247,
target: 25653 });
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: 12,
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: 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) {
});