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
ng6
Commits
fd2418ba
Commit
fd2418ba
authored
Nov 14, 2011
by
Jerome Mariette
Browse files
No commit message
No commit message
parent
916283b3
Changes
4
Hide whitespace changes
Inline
Side-by-side
ui/nG6/pi1/analyzes/MothurOTUAnalyse.js
View file @
fd2418ba
...
...
@@ -28,6 +28,63 @@
$
(
function
()
{
/*
* Define functions in charge to visualize venn diagramms
*/
$
(
"
.rarefaction-line-view-btn
"
).
click
(
function
()
{
if
(
$
(
"
:checked[id^=chk_sample_]
"
).
size
()
==
0
)
{
$
(
"
#user_information_dialog
"
).
dialog
(
"
option
"
,
"
title
"
,
$
(
"
#information_error_title
"
).
val
());
$
(
"
#user_information_dialog
"
).
html
(
"
<div class='tx-nG6-pi1-error'>
"
+
$
(
"
#information_dialog_zero_check
"
).
val
()
+
"
</div>
"
).
dialog
(
"
open
"
);
var
buttons
=
{};
buttons
[
$
(
"
#ok_btn_label
"
).
val
()]
=
function
(){
$
(
this
).
dialog
(
"
close
"
);
}
$
(
"
#user_information_dialog
"
).
dialog
(
'
option
'
,
'
buttons
'
,
buttons
);
}
else
if
(
$
(
"
:checked[id^=chk_sample_]
"
).
size
()
==
1
)
{
$
(
"
#user_information_dialog
"
).
dialog
(
"
option
"
,
"
title
"
,
$
(
"
#information_error_title
"
).
val
());
$
(
"
#user_information_dialog
"
).
html
(
"
<div class='tx-nG6-pi1-error'>
"
+
$
(
"
#information_dialog_at_least_2_check
"
).
val
()
+
"
</div>
"
).
dialog
(
"
open
"
);
var
buttons
=
{};
buttons
[
$
(
"
#ok_btn_label
"
).
val
()]
=
function
(){
$
(
this
).
dialog
(
"
close
"
);
}
$
(
"
#user_information_dialog
"
).
dialog
(
'
option
'
,
'
buttons
'
,
buttons
);
}
else
if
(
$
(
"
:checked[id^=chk_sample_]
"
).
size
()
>
4
)
{
$
(
"
#user_information_dialog
"
).
dialog
(
"
option
"
,
"
title
"
,
$
(
"
#information_error_title
"
).
val
());
$
(
"
#user_information_dialog
"
).
html
(
"
<div class='tx-nG6-pi1-error'>
"
+
$
(
"
#information_dialog_venn_max_check
"
).
val
()
+
"
</div>
"
).
dialog
(
"
open
"
);
var
buttons
=
{};
buttons
[
$
(
"
#ok_btn_label
"
).
val
()]
=
function
(){
$
(
this
).
dialog
(
"
close
"
);
}
$
(
"
#user_information_dialog
"
).
dialog
(
'
option
'
,
'
buttons
'
,
buttons
);
}
else
{
$
(
"
#img_dialog
"
).
dialog
(
"
option
"
,
"
title
"
,
"
nG6 -
"
+
$
(
"
#analyse_name
"
).
val
());
$
(
"
#img_dialog
"
).
html
(
'
<div id="venn_container"></div>
'
).
dialog
(
"
open
"
);
$
(
"
#img_dialog
"
).
dialog
(
"
option
"
,
"
width
"
,
850
);
$
(
"
#venn_container
"
).
venny
({
series
:
[{
name
:
{
A
:
'
List 1
'
,
B
:
'
List 2
'
,
C
:
'
List 3
'
,
D
:
'
List 4
'
},
data
:
{
A
:
340
,
B
:
562
,
C
:
620
,
D
:
592
,
AB
:
639
,
AC
:
456
,
AD
:
257
,
BC
:
915
,
BD
:
354
,
CD
:
143
,
ABC
:
552
,
ABD
:
578
,
ACD
:
298
,
BCD
:
613
,
ABCD
:
148
}
}],
fnClickCallback
:
function
()
{
var
value
=
""
;
if
(
this
.
listnames
.
length
==
1
)
{
value
+=
"
Elements only in
"
;
}
else
{
value
+=
"
Common elements in
"
;
}
for
(
name
in
this
.
listnames
)
{
value
+=
this
.
listnames
[
name
]
+
"
"
;
}
value
+=
"
:
\n
"
;
for
(
val
in
this
.
list
)
{
value
+=
this
.
list
[
val
]
+
"
\n
"
;
}
alert
(
value
);
}
});
}
});
/*
* Define functions in charge to visualize phylogenic bar charts
*/
...
...
ui/nG6/pi1/analyzes/MothurOTUAnalyse.tpl
View file @
fd2418ba
...
...
@@ -38,6 +38,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<input
type=
"hidden"
id=
"ok_btn_label"
value=
"
{
$llang.ok_btn_label
}
"
/>
<input
type=
"hidden"
id=
"information_dialog_multiple_check"
value=
"
{
$llang.information_dialog_multiple_check
}
"
/>
<input
type=
"hidden"
id=
"information_dialog_zero_check"
value=
"
{
$llang.information_dialog_zero_check
}
"
/>
<input
type=
"hidden"
id=
"information_dialog_at_least_2_check"
value=
"
{
$llang.information_dialog_at_least_2_check
}
"
/>
<input
type=
"hidden"
id=
"information_dialog_venn_max_check"
value=
"
{
$llang.information_dialog_venn_max_check
}
"
/>
<h3>
{
$llang.MothurOTUAnalyse_alphadiversity_title
}
</h3>
<div
class=
"underline"
>
</div>
<br
/>
...
...
ui/nG6/pi1/class.tx_nG6_pi1.php
View file @
fd2418ba
...
...
@@ -73,6 +73,7 @@ class tx_nG6_pi1 extends tslib_pibase {
<script type="text/javascript" src="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/js/jquery.dataTables.plugins.js"></script>
<script type="text/javascript" src="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/js/jquery.url.packed.js"></script>
<script type="text/javascript" src="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/js/jquery.venny.js"></script>
<script type="text/javascript" src="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/js/tx_nG6_pi1.js"></script>
<script type="text/javascript" src="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/js/jquery.highcharts.js"></script>
<script type="text/javascript" src="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/js/jquery.highcharts.exporting.js"></script>
...
...
@@ -81,6 +82,7 @@ class tx_nG6_pi1 extends tslib_pibase {
<script type="text/javascript" src="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/js/raphael-min.js"></script>
<script type="text/javascript" src="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/js/unitip.js"></script>
<link type="text/css" rel="stylesheet" media="screen" href="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/css/unitip.css"/>
<link type="text/css" rel="stylesheet" media="screen" href="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/css/jquery.venny.css"/>
<link type="text/css" rel="stylesheet" media="screen" href="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/css/jquery.dataTables.css"/>
<link type="text/css" rel="stylesheet" media="screen" href="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/css/tx_nG6.css"/>
<link type="text/css" rel="stylesheet" media="screen" href="'
.
t3lib_extMgm
::
siteRelPath
(
$this
->
extKey
)
.
'res/css/jquery.ui.core.css"/>
...
...
ui/nG6/pi1/locallang.xml
View file @
fd2418ba
...
...
@@ -69,7 +69,9 @@
<label
index=
"list_project_size_desc"
>
Raw data and analysis results use ###PROJECT_SIZE### on the hard drive for all projects.
</label>
<label
index=
"information_dialog_zero_check"
>
No raw selected, please select a raw to access this fonctionality.
</label>
<label
index=
"information_dialog_multiple_check"
>
Only one raw should be selected to access this fonctionality.
</label>
<label
index=
"information_dialog_multiple_check"
>
Only one row should be selected to access this fonctionality.
</label>
<label
index=
"information_dialog_at_least_2_check"
>
At least two rows should be selected to access this fonctionality.
</label>
<label
index=
"information_dialog_venn_max_check"
>
Venn diagram supports only 4 classes display.
</label>
<label
index=
"confirmation_dialog_title"
>
Confirmation
</label>
<label
index=
"information_error_title"
>
Error
</label>
<label
index=
"hide_dialog_title"
>
Hide
</label>
...
...
@@ -400,7 +402,9 @@
<label
index=
"DataTables_search"
>
Rechercher :
</label>
<label
index=
"information_dialog_zero_check"
>
Aucune ligne sélectionnée, veuillez en sélectionner une afin d'accèder à cette fonctionnalité.
</label>
<label
index=
"information_dialog_multiple_check"
>
Une seule ligne doit être sélectionnée afin d'accèder à cette fonctionnalité.
</label>
<label
index=
"information_dialog_multiple_check"
>
Une seule ligne doit être sélectionnée afin d'accèder à cette fonctionnalité.
</label>
<label
index=
"information_dialog_at_least_2_check"
>
Au moins deux lignes doivent être sélectionnée afin d'accèder à cette fonctionnalité.
</label>
<label
index=
"information_dialog_venn_max_check"
>
Seulement 4 classes peuvent être visualisées à l'aide du venn diagramme.
</label>
<label
index=
"confirmation_dialog_title"
>
Confirmation
</label>
<label
index=
"information_error_title"
>
Erreur
</label>
<label
index=
"hide_dialog_title"
>
Cacher
</label>
...
...
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