Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
jvenn
Commits
23d74719
Commit
23d74719
authored
Mar 04, 2014
by
Jerome Mariette
Browse files
venny > jvenn
parent
e103e94f
Changes
4
Hide whitespace changes
Inline
Side-by-side
.project
View file @
23d74719
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>
venn
y
</name>
<name>
j
venn
</name>
<comment></comment>
<projects>
</projects>
...
...
documentation.html
View file @
23d74719
...
...
@@ -4,7 +4,7 @@
<meta
http-equiv=
"content-type"
content=
"text/html; charset=UTF-8"
>
<meta
charset=
"utf-8"
>
<title>
Jquery.
venn
y
</title>
<title>
j
venn
</title>
<!-- Les styles -->
<link
href=
"css/bootstrap.css"
rel=
"stylesheet"
media=
"screen"
>
<link
href=
"css/docs.css"
rel=
"stylesheet"
media=
"screen"
>
...
...
@@ -23,7 +23,7 @@
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<a
class=
"brand"
href=
"./index.html"
>
Jquery.
venn
y
</a>
<a
class=
"brand"
href=
"./index.html"
>
j
venn
</a>
<div
class=
"nav-collapse collapse"
>
<ul
class=
"nav"
>
<li><a
href=
"./index.html"
>
About
</a></li>
...
...
@@ -55,15 +55,15 @@
<div
class=
"page-header"
>
<h1>
Plugin insertion
</h1>
</div>
<p>
In order to use j
query.
venn
y
, you need to import within your web page:
</p>
<p>
In order to use jvenn, you need to import within your web page:
</p>
<ul>
<li><a
href=
"http://jquery.com/"
>
jQuery v1.6.x or higher
</a></li>
<li><a
href=
"src/j
query.
venn
y
.min.js"
>
j
query.
venn
y
.min.js
</a></li>
<li><a
href=
"src/jvenn.min.js"
>
jvenn.min.js
</a></li>
</ul>
<p>
Take a peek at the code below, a single function call to initialise the venn diagram is all it takes:
</p>
<pre
class=
"prettyprint linenums"
>
$(document).ready(function(){
$('#example').venn
y
({
$('#example').
j
venn({
series: [{
name: 'Actors',
data: ["Marilyn Monroe", "Arnold Schwarzenegger", "Jack Nicholson", "Barbra Streisand", "Robert de Niro", "Dean Martin", "Harrison Ford"]
...
...
@@ -83,7 +83,7 @@ $(document).ready(function(){
<p>
The serie can be a list of value, the plugin will then compute itself the intersections between lists.
</p>
<pre
class=
"prettyprint linenums"
>
$(document).ready(function(){
$('#example').venn
y
({
$('#example').
j
venn({
series: [{
name: 'Actors',
data: ["Marilyn Monroe", "Arnold Schwarzenegger", "Jack Nicholson", "Barbra Streisand", "Robert de Niro", "Dean Martin", "Harrison Ford"]
...
...
@@ -97,7 +97,7 @@ $(document).ready(function(){
<p>
The serie can also define the number of occurence for each intersections.
</p>
<pre
class=
"prettyprint linenums"
>
$(document).ready(function(){
$('#example').venn
y
({
$('#example').
j
venn({
series: [{
name: {A: 'List 1',
B: 'List 2',
...
...
@@ -114,7 +114,7 @@ $(document).ready(function(){
<p>
Finaly, the serie can define the list values with the number of occurence for each value.
</p>
<pre
class=
"prettyprint"
>
$(document).ready(function(){
$('#example').venn
y
({
$('#example').
j
venn({
series: [{
name: 'sample1',
data: ["Otu1", "Otu2", "Otu3", "Otu4", "Otu5"],
...
...
@@ -137,7 +137,7 @@ $(document).ready(function(){
just set this option to 'edwards'. Available values for this parameters are: 'classic', 'edwards'.
</p>
<pre
class=
"prettyprint linenums"
>
$(document).ready(function(){
$('#example').venn
y
({
$('#example').
j
venn({
displayType: 'edwards'
});
});
...
...
@@ -151,7 +151,7 @@ $(document).ready(function(){
<p>
The callback function to execute when the user click on a number.
</p>
<pre
class=
"prettyprint linenums"
>
$(document).ready(function(){
$('#example').venn
y
({
$('#example').
j
venn({
series: [{
name: {A: 'List 1',
B: 'List 2',
...
...
@@ -190,7 +190,7 @@ $(document).ready(function(){
<p>
Default is false, if set to true, the click on the number si disabled.
</p>
<pre
class=
"prettyprint linenums"
>
$(document).ready(function(){
$('#example').venn
y
({
$('#example').
j
venn({
series: [{
name: 'Actors',
data: ["Marilyn Monroe", "Arnold Schwarzenegger", "Jack Nicholson", "Barbra Streisand", "Robert de Niro", "Dean Martin", "Harrison Ford"]
...
...
@@ -211,7 +211,7 @@ $(document).ready(function(){
<p>
Default is false, if set to true, the values provided in a mixte serie will be considered as the number of occurence of the element.
</p>
<pre
class=
"prettyprint linenums"
>
$(document).ready(function(){
$('#example').venn
y
({
$('#example').
j
venn({
series: [{
name: 'sample1',
data: ["Otu1", "Otu2", "Otu3", "Otu4", "Otu5", "Otu6", "Otu7"],
...
...
@@ -230,7 +230,7 @@ $(document).ready(function(){
<p>
Default is true, an export module is added to the window, if set to false the export module is disabled.
</p>
<pre
class=
"prettyprint linenums"
>
$(document).ready(function(){
$('#example').venn
y
({
$('#example').
j
venn({
series: [{
name: 'sample1',
data: ["Otu1", "Otu2", "Otu3", "Otu4", "Otu5", "Otu6", "Otu7"],
...
...
example.html
View file @
23d74719
...
...
@@ -3,7 +3,7 @@
<head>
<meta
http-equiv=
"content-type"
content=
"text/html; charset=UTF-8"
>
<meta
charset=
"utf-8"
>
<title>
Jquery.
venn
y
</title>
<title>
j
venn
</title>
<!-- Le styles -->
<link
href=
"css/bootstrap.css"
rel=
"stylesheet"
media=
"screen"
>
<style
type=
"text/css"
>
...
...
@@ -16,7 +16,7 @@
<link
href=
"css/bootstrap-responsive.css"
rel=
"stylesheet"
media=
"screen"
>
<script
type=
"text/javascript"
src=
"js/jquery.min.js"
></script>
<script
src=
"js/bootstrap.min.js"
></script>
<script
type=
"text/javascript"
src=
"src/j
query.
venn
y
.js"
></script>
<script
type=
"text/javascript"
src=
"src/jvenn.js"
></script>
<script
language=
"Javascript"
>
$
(
document
).
ready
(
function
()
{
...
...
@@ -29,7 +29,7 @@
return
(
table
);
}
function
update
V
enn
y
()
{
function
update
Jv
enn
()
{
var
seriesTable
=
new
Array
();
if
(
$
(
"
#area1
"
).
val
()
!=
""
)
{
seriesTable
.
push
({
...
...
@@ -68,7 +68,7 @@
});
}
$
(
"
#venn
y
-container
"
).
venn
y
({
$
(
"
#
j
venn-container
"
).
j
venn
({
series
:
seriesTable
,
displayMode
:
$
(
"
#venn-type
"
).
val
(),
fnClickCallback
:
function
()
{
...
...
@@ -99,23 +99,23 @@
var
index
=
$
(
this
).
attr
(
"
id
"
).
split
(
"
_
"
)[
1
];
$
(
"
#area
"
+
index
).
val
(
""
);
$
(
"
#name
"
+
index
).
val
(
"
List
"
+
index
);
update
V
enn
y
();
update
Jv
enn
();
});
// update the view when any fields change
$
(
"
[id^=name]
"
).
change
(
function
()
{
update
V
enn
y
();
update
Jv
enn
();
});
$
(
"
[id^=area]
"
).
change
(
function
()
{
update
V
enn
y
();
update
Jv
enn
();
});
$
(
"
#venn-type
"
).
change
(
function
()
{
update
V
enn
y
();
update
Jv
enn
();
});
// first init of the venn
y
plugin
update
V
enn
y
();
// first init of the
j
venn plugin
update
Jv
enn
();
});
</script>
<style
type=
"text/css"
>
...
...
@@ -207,7 +207,7 @@
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<a
class=
"brand"
href=
"./index.html"
>
Jquery.
venn
y
</a>
<a
class=
"brand"
href=
"./index.html"
>
j
venn
</a>
<div
class=
"nav-collapse collapse"
>
<ul
class=
"nav"
>
<li><a
href=
"./index.html"
>
About
</a></li>
...
...
@@ -232,7 +232,7 @@
<div
class=
"row-fluid"
>
<div
class=
"span7"
>
<div
class=
"row-fluid"
>
<div
id=
"venn
y
-container"
></div>
<div
id=
"
j
venn-container"
></div>
</div>
<div
class=
"row-fluid"
>
<div
class=
"span12"
>
...
...
index.html
View file @
23d74719
...
...
@@ -3,7 +3,7 @@
<head>
<meta
http-equiv=
"content-type"
content=
"text/html; charset=UTF-8"
>
<meta
charset=
"utf-8"
>
<title>
Jquery.
venn
y
</title>
<title>
j
venn
</title>
<!-- Le styles -->
<link
href=
"css/bootstrap.css"
rel=
"stylesheet"
media=
"screen"
>
<style
type=
"text/css"
>
...
...
@@ -23,7 +23,7 @@
<span
class=
"icon-bar"
></span>
<span
class=
"icon-bar"
></span>
</button>
<a
class=
"brand"
href=
"./index.html"
>
Jquery.
venn
y
</a>
<a
class=
"brand"
href=
"./index.html"
>
j
venn
</a>
<div
class=
"nav-collapse collapse"
>
<ul
class=
"nav"
>
<li
class=
"active"
><a
href=
"./index.html"
>
About
</a></li>
...
...
@@ -40,8 +40,8 @@
<div
class=
"container"
>
<!-- Main hero unit for a primary marketing message or call to action -->
<div
class=
"hero-unit"
>
<h1>
Jquery.
venn
y
!
</h1>
<p><b>
Jquery.
venn
y
</b>
is a plug-in for the
<a
href=
"http://www.jquery.com/"
target=
"_blank"
>
jQuery
</a>
Javascript
<h1>
j
venn!
</h1>
<p><b>
j
venn
</b>
is a plug-in for the
<a
href=
"http://www.jquery.com/"
target=
"_blank"
>
jQuery
</a>
Javascript
library. It is a flexible tool, based upon the venny tool first developed by J.C Oliveros (Oliveros, J.C (2007)
<a
href=
"http://bioinfogp.cnb.csic.es/tools/venny/index.html"
target=
"_blank"
>
VENNY
</a>
, An integrative tool for
comparing lists with Venn Diagrams). Key features:
</p>
...
...
@@ -60,12 +60,12 @@
<div
class=
"row"
>
<div
class=
"span6"
>
<h2>
Documentation
</h2>
<p>
Having problems
implementing jQuery V
enn
y
? Check out our documentation on how to use the script.
</p>
<p>
Having problems
using jv
enn? Check out our documentation on how to use the script.
</p>
<p><a
class=
"btn"
href=
"./documentation.html"
>
Read documentation
»
</a></p>
</div>
<div
class=
"span6"
>
<h2>
Examples
</h2>
<p>
Check out the different examples and tests available for j
Query V
enn
y
.
</p>
<p>
Check out the different examples and tests available for j
v
enn.
</p>
<p><a
class=
"btn"
href=
"./example.html"
>
View examples
»
</a></p>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment