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,711
Issues
1,711
List
Boards
Labels
Service Desk
Milestones
Merge Requests
86
Merge Requests
86
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
7c3305bb
Commit
7c3305bb
authored
Mar 11, 2015
by
Mathieu Giraud
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clone.js: compute ratio relative to system group, and includes in getPrintableSize()
parent
63728908
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletion
+31
-1
browser/js/clone.js
browser/js/clone.js
+31
-1
No files found.
browser/js/clone.js
View file @
7c3305bb
...
...
@@ -163,17 +163,47 @@ Clone.prototype = {
return
this
.
m
.
formatSize
(
size
,
true
)
},
/* Ratio relative to the system group */
getSystemGroupSize
:
function
(
time
)
{
var
group_reads
=
this
.
m
.
systemGroupSize
(
this
.
germline
,
this
.
m
.
getTime
(
time
))
if
(
group_reads
==
0
)
return
0
;
var
result
=
this
.
getReads
(
time
)
/
group_reads
if
(
this
.
norm
)
result
=
this
.
normalize
(
result
,
time
)
return
result
},
getStrSystemGroupSize
:
function
(
time
)
{
time
=
this
.
m
.
getTime
(
time
)
var
size
=
this
.
getSystemGroupSize
(
time
)
return
this
.
m
.
formatSize
(
size
,
true
)
},
/* return a printable size such as either '26.32%' or '26.32% (33.66% of IGH)' (when there are several systems) */
getPrintableSize
:
function
(
time
)
{
var
size
=
this
.
getReads
(
time
)
s
=
size
+
'
read
'
+
(
size
>
1
?
'
s
'
:
''
)
+
'
'
s
+=
'
(
'
s
+=
this
.
getStrSize
(
time
)
if
(
this
.
m
.
system_available
.
length
>
1
)
{
s
+=
'
(
'
+
this
.
getStrSystemSize
(
time
)
+
'
of
'
+
this
.
germline
+
'
)
'
systemGroup
=
this
.
m
.
systemGroup
(
this
.
germline
)
if
(
systemGroup
.
indexOf
(
'
/
'
)
>
-
1
)
// if the system group has more than one germline
{
s
+=
'
,
'
s
+=
this
.
getStrSystemGroupSize
(
time
)
+
'
of
'
+
systemGroup
}
s
+=
'
,
'
s
+=
this
.
getStrSystemSize
(
time
)
+
'
of
'
+
this
.
germline
}
s
+=
'
)
'
return
s
},
...
...
Vidjil Team
@vidjilteam
Mentioned in issue
#1415 (closed)
·
Nov 29, 2016
Mentioned in issue
#1415 (closed)
Mentioned in issue #1415
Toggle commit list
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