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
30642159
Commit
30642159
authored
Oct 05, 2018
by
Vidjil
Browse files
sample_set.py: sort loci lexicographically
parent
7e143af3
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/controllers/sample_set.py
View file @
30642159
...
...
@@ -730,7 +730,7 @@ def getFusedStats(file_name, res, dest):
#dest['bool'] = False
#dest['bool_true'] = True
dest
[
'loci'
]
=
[
x
for
x
in
data
[
'reads'
][
'germline'
]
if
data
[
'reads'
][
'germline'
][
x
][
result_index
]
>
0
]
dest
[
'loci'
]
=
sorted
(
[
x
for
x
in
data
[
'reads'
][
'germline'
]
if
data
[
'reads'
][
'germline'
][
x
][
result_index
]
>
0
]
)
dest
[
'clones_five_percent'
]
=
sum
([
data
[
'reads'
][
'distribution'
][
key
][
result_index
]
for
key
in
data
[
'reads'
][
'distribution'
]])
return
dest
...
...
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