Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jass
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Statistical-Genetics
jass
Commits
c56e7f0b
Commit
c56e7f0b
authored
3 years ago
by
Hanna JULIENNE
Browse files
Options
Downloads
Patches
Plain Diff
test to fix gencov
parent
48243ca3
No related branches found
No related tags found
1 merge request
!70
Fix issue 121 122
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jass/models/worktable.py
+13
-6
13 additions, 6 deletions
jass/models/worktable.py
with
13 additions
and
6 deletions
jass/models/worktable.py
+
13
−
6
View file @
c56e7f0b
...
...
@@ -865,11 +865,18 @@ def get_worktable_gencov(project_hdf_path: str):
for
i
in
range
(
gencov
.
shape
[
0
]):
for
j
in
range
(
i
,
gencov
.
shape
[
0
]):
lines
.
append
({
"
phenotypeID_A
"
:
sorted_trait
.
iloc
[
i
],
"
phenotypeID_B
"
:
sorted_trait
.
iloc
[
j
],
"
gencov
"
:
gencov
.
loc
[
sorted_trait
.
index
[
i
],
sorted_trait
.
index
[
j
]]
})
if
np
.
isnan
(
gencov
.
loc
[
sorted_trait
.
index
[
i
],
sorted_trait
.
index
[
j
]]):
lines
.
append
({
"
phenotypeID_A
"
:
sorted_trait
.
iloc
[
i
],
"
phenotypeID_B
"
:
sorted_trait
.
iloc
[
j
],
"
gencov
"
:
"
null
"
})
else
:
lines
.
append
({
"
phenotypeID_A
"
:
sorted_trait
.
iloc
[
i
],
"
phenotypeID_B
"
:
sorted_trait
.
iloc
[
j
],
"
gencov
"
:
gencov
.
loc
[
sorted_trait
.
index
[
i
],
sorted_trait
.
index
[
j
]]
})
print
(
lines
)
return
lines
...
...
@@ -1062,4 +1069,4 @@ def create_genome_full_csv_lock_file(project_hdf_path):
the_lock
=
"
The lock is set on : workTable.csv is not yet available
"
file_lock
=
open
(
the_lock_path
,
"
w
"
)
file_lock
.
write
(
the_lock
)
file_lock
.
close
()
\ No newline at end of file
file_lock
.
close
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment