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,695
Issues
1,695
List
Boards
Labels
Service Desk
Milestones
Merge Requests
88
Merge Requests
88
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
771a3027
Commit
771a3027
authored
Nov 07, 2018
by
Mathieu Giraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
js/clone.js, js/segmenter.js: extract clone.getLocus()
See
#3513
.
parent
6e6a47ec
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
9 deletions
+19
-9
browser/js/clone.js
browser/js/clone.js
+18
-0
browser/js/segmenter.js
browser/js/segmenter.js
+1
-9
No files found.
browser/js/clone.js
View file @
771a3027
...
...
@@ -443,6 +443,24 @@ Clone.prototype = {
return
this
.
m
.
clusters
[
this
.
index
]
},
/**
* @return {string} locus (at least the locus of the 5' gene)cluster number
*/
getLocus
:
function
()
{
locus
=
this
.
get
(
'
germline
'
)
if
(
locus
==
"
unexpected
"
)
{
var
loci
=
[
this
.
getGene
(
"
5
"
).
substring
(
0
,
3
),
this
.
getGene
(
"
3
"
).
substring
(
0
,
3
)
]
locus
=
loci
[
0
]
if
(
loci
[
0
]
!=
loci
[
1
])
{
console
.
log
(
"
Clone
"
+
this
.
getName
()
+
"
recombines sequences from two separate loci. Using:
"
+
locus
)
}
}
return
locus
},
/**
* compute the clone size ( ratio of all clones clustered ) at a given time
* @param {integer} time - tracking point (default value : current tracking point)
...
...
browser/js/segmenter.js
View file @
771a3027
...
...
@@ -822,15 +822,7 @@ Segment.prototype = {
request
+=
"
>
"
+
c
.
index
+
"
#
"
+
c
.
getName
()
+
"
\n
"
+
c
.
id
+
"
\n
"
;
}
if
(
c
.
getSize
()
>
max
){
system
=
c
.
get
(
'
germline
'
)
if
(
system
==
"
unexpected
"
){
var
loci
=
[
c
.
getGene
(
"
5
"
).
substring
(
0
,
3
),
c
.
getGene
(
"
3
"
).
substring
(
0
,
3
)
]
system
=
loci
[
0
]
if
(
loci
[
0
]
!=
loci
[
1
]){
console
.
log
(
"
Clone
"
+
c
.
getName
()
+
"
recombines sequences from two separate loci. Using:
"
+
system
)
}
}
system
=
c
.
getLocus
()
max
=
c
.
getSize
()
}
}
...
...
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