Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
ddc885aa
Commit
ddc885aa
authored
Sep 12, 2018
by
Ryan Herbert
Browse files
sample_set.py multi stats exclude loci where value is 0
parent
1cf43f19
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/controllers/sample_set.py
View file @
ddc885aa
...
...
@@ -700,7 +700,7 @@ def getFusedStats(file_name, res, dest):
dest
[
'mapped_percent'
]
=
100.0
*
(
float
(
data
[
'reads'
][
'segmented'
][
result_index
])
/
float
(
reads
))
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'
]
=
[
x
for
x
in
data
[
'reads'
][
'germline'
]
if
data
[
'reads'
][
'germline'
][
x
][
result_index
]
>
0
]
dest
[
'genescan'
]
=
[
68
,
27
,
18
,
45
,
89
,
63
,
53
,
64
,
93
,
21
,
47
,
5
,
64
,
68
,
46
,
68
,
18
,
72
,
36
,
70
,
39
,
21
,
84
,
32
,
29
,
4
,
76
,
51
,
33
,
67
,
14
,
57
,
75
,
61
,
29
,
11
,
81
,
71
,
91
,
32
,
40
,
71
,
87
,
54
,
50
,
88
,
72
,
59
,
29
,
80
,
48
,
...
...
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