Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vidjil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,696
Issues
1,696
List
Boards
Labels
Service Desk
Milestones
Merge Requests
89
Merge Requests
89
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
8512d50f
Commit
8512d50f
authored
Aug 07, 2018
by
Mathieu Giraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
js/germline_axis.js: remove useless duplicated code
converter() could be rather clone.getGene() See
#2641
.
parent
40a3acfc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
browser/js/germline_axis.js
browser/js/germline_axis.js
+0
-24
No files found.
browser/js/germline_axis.js
View file @
8512d50f
...
...
@@ -56,10 +56,6 @@ GermlineAxis.prototype = Object.create(GenericAxis.prototype);
var
allele_list
=
this
.
germline
.
allele
var
total_gene
=
Object
.
keys
(
gene_list
).
length
if
(
geneType
==
"
V
"
)
this
.
type2
=
"
5
"
if
(
geneType
==
"
D
"
)
this
.
type2
=
"
4
"
if
(
geneType
==
"
J
"
)
this
.
type2
=
"
3
"
var
pos
;
//labels
for
(
var
key
in
gene_list
){
...
...
@@ -111,26 +107,6 @@ GermlineAxis.prototype = Object.create(GenericAxis.prototype);
return
this
.
label_mapping
[
pos
];
}
GermlineAxis
.
prototype
.
converter
=
function
(
clone
)
{
var
gene_list
=
this
.
gene_list
;
var
allele_list
=
this
.
allele_list
;
var
total_gene
=
this
.
total_gene
;
var
value
;
if
(
clone
.
hasSeg
(
this
.
type2
))
{
var
name
=
clone
.
seg
[
this
.
type2
].
name
;
if
(
typeof
name
!=
'
undefined
'
&&
typeof
gene_list
[
name
.
split
(
"
*
"
)[
0
]]
!=
"
undefined
"
)
{
if
(
this
.
displayAllele
){
value
=
name
;
}
else
{
value
=
name
.
split
(
"
*
"
)[
0
];
}
}
}
return
value
;
}
/**
* build a label descriptor
* @param {string} type - 'line' or 'subline'
...
...
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