Commit 737626f1 authored by MARIJON Pierre's avatar MARIJON Pierre

Rerevert a part of last commit

parent ef0389d9
......@@ -26,6 +26,42 @@ For each free read contig extremity, we search path to other free read contig ex
</ul>
</div>
<h4>Graph of contig</h4>
<div id="minimap_contig_network"></div>
<script type="text/javascript">
// create an array with nodes
var nodes = new vis.DataSet([
{{minimap_contig_graph_node}}
])
// create an array with edges
var edges = new vis.DataSet([
{{minimap_contig_graph_edge}}
]);
// create a network
var container = document.getElementById('minimap_contig_network');
var data = {
nodes: nodes,
edges: edges
};
var options = {
height: '600px',
width: '600px',
nodes: {
shape: 'dot',
},
physics: {
forceAtlas2Based: {
avoidOverlap: 400
},
solver: 'forceAtlas2Based',
}
};
var network = new vis.Network(container, data, options);
</script>
<h4 id="minimap_path_name"></h4>
<div id="minimap_path_content">
</div>
......
......@@ -205,6 +205,42 @@ For each free read contig extremity, we search path to other free read contig ex
</ul>
</div>
<h4>Graph of contig</h4>
<div id="canu_contig_network"></div>
<script type="text/javascript">
// create an array with nodes
var nodes = new vis.DataSet([
{{canu_contig_graph_node}}
])
// create an array with edges
var edges = new vis.DataSet([
{{canu_contig_graph_edge}}
]);
// create a network
var container = document.getElementById('canu_contig_network');
var data = {
nodes: nodes,
edges: edges
};
var options = {
height: '600px',
width: '600px',
nodes: {
shape: 'dot',
},
physics: {
forceAtlas2Based: {
avoidOverlap: 400
},
solver: 'forceAtlas2Based',
}
};
var network = new vis.Network(container, data, options);
</script>
<h4 id="canu_path_name"></h4>
<div id="canu_path_content">
</div>
......
......@@ -97,3 +97,4 @@
}
</style>
{% include 'visjs.css.jinja2.html' %}
......@@ -76,3 +76,5 @@ function onload_call_function()
document.addEventListener('DOMContentLoaded', onload_call_function, false);
</script>
{% include 'visjs.javascript.jinja2.html' %}
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment