Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
82af23e8
Commit
82af23e8
authored
Apr 27, 2017
by
Aurélien Béliard
Committed by
Mathieu Giraud
May 02, 2017
Browse files
use germline.js instead of germline.g in the browser
parent
e97c27b7
Pipeline
#2192
failed with stages
in 11 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
browser/js/germline_builder.js
View file @
82af23e8
...
...
@@ -70,7 +70,7 @@ GermlineList.prototype = {
* */
fallbackLoad
:
function
()
{
try
{
this
.
list
=
germline
_data
[
'
systems
'
]
this
.
list
=
germline
}
catch
(
err
){
console
.
log
({
"
type
"
:
"
popup
"
,
"
msg
"
:
"
Incorrect browser installation, 'js/germline.js' is not found<br />please run 'make' in 'germline/'
"
});
...
...
@@ -155,24 +155,17 @@ Germline.prototype = {
if
(
type
==
"
D
"
)
type2
=
"
4
"
if
(
type
==
"
J
"
)
type2
=
"
3
"
if
(
typeof
this
.
m
.
germlineList
.
list
[
system
]
!=
'
undefined
'
&&
typeof
this
.
m
.
germlineList
.
list
[
system
][
'
recombinations
'
]
!=
'
undefined
'
){
if
(
typeof
this
.
m
.
germlineList
.
list
[
system
][
'
recombinations
'
][
type2
]
!=
'
undefined
'
){
for
(
var
i
=
0
;
i
<
this
.
m
.
germlineList
.
list
[
system
][
'
recombinations
'
][
type2
].
length
;
i
++
){
var
filename
=
this
.
m
.
germlineList
.
list
[
system
][
'
recombinations
'
][
type2
][
i
]
filename
=
filename
.
split
(
'
/
'
)[
filename
.
split
(
'
/
'
).
length
-
1
]
//remove path
filename
=
filename
.
split
(
'
.
'
)[
0
]
//remove file extension
if
(
typeof
germline
[
filename
]
!=
'
undefined
'
){
for
(
var
key
in
germline
[
filename
]){
this
.
allele
[
key
]
=
germline
[
filename
][
key
]
}
}
else
{
console
.
log
({
"
type
"
:
"
flash
"
,
"
msg
"
:
"
warning : this browser version doesn't have the
"
+
filename
+
"
germline file
"
,
"
priority
"
:
2
});
}
}
this
.
allele
[
system
+
type
]
=
{}
for
(
key
in
m
.
germline
[
system
+
type
])
{
this
.
allele
[
key
]
=
{}
this
.
allele
[
key
][
"
seq
"
]
=
m
.
germline
[
system
+
type
][
key
];
}
}
//reduce germline size (keep only detected genes)
//and add undetected genes (missing from germline)
...
...
browser/js/model.js
View file @
82af23e8
...
...
@@ -110,6 +110,7 @@ Model.prototype = {
this
.
tagSelectorList
=
document
.
createElement
(
"
ul
"
)
this
.
tagSelector
.
appendChild
(
this
.
tagSelectorList
);
this
.
germline
=
germline
;
document
.
body
.
appendChild
(
this
.
tagSelector
);
$
(
'
.tagSelector
'
).
hover
(
function
()
{
...
...
Mathieu Giraud
@magiraud
mentioned in issue
#2384 (closed)
·
May 12, 2017
mentioned in issue
#2384 (closed)
mentioned in issue #2384
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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