Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Statistical-Genetics
RAISS
Commits
d378743c
Commit
d378743c
authored
Mar 13, 2018
by
Hanna JULIENNE
Browse files
fixed realigned window
parent
eb9d89e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
impute_jass/impute_jass/windows.py
View file @
d378743c
...
...
@@ -31,10 +31,11 @@ def realigned_zfiles_on_panel(ref_panel, zscore):
If not, the coded and other allele are inverted and the zscore sign
is inverted also.
"""
allele_inverted
=
(
ref_panel
.
loc
[
zscore
.
index
,
'Ref_all'
]
!=
zscore
.
A0
)
sub_ref_panel
=
ref_panel
.
loc
[
zscore
.
index
]
allele_inverted
=
(
sub_ref_panel
[
'Ref_all'
]
!=
zscore
.
A0
)
zscore
.
loc
[
allele_inverted
,
"A0"
]
=
ref_panel
.
alt
_all
zscore
.
loc
[
allele_inverted
,
"A1"
]
=
ref_panel
.
Ref
_all
zscore
.
loc
[
allele_inverted
,
"A0"
]
=
sub_
ref_panel
.
loc
[
allele_inverted
].
Ref
_all
zscore
.
loc
[
allele_inverted
,
"A1"
]
=
sub_
ref_panel
.
loc
[
allele_inverted
].
alt
_all
zscore
.
loc
[
allele_inverted
,
"Z"
]
=
-
zscore
.
loc
[
allele_inverted
,
"Z"
]
return
zscore
...
...
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