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
Statistical-Genetics
jass_preprocessing
Commits
c5ca18bf
Commit
c5ca18bf
authored
Oct 01, 2021
by
Hanna JULIENNE
Browse files
typo
parent
11ee29ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
jass_preprocessing/map_reference.py
View file @
c5ca18bf
...
...
@@ -83,7 +83,7 @@ def map_on_ref_panel(gw_df , ref_panel, index_type="rs-number"):
raise
ValueError
(
"index_type can take only two values: 'rs-number' or 'positional'"
)
if
((
"pos"
in
merge_GWAS
.
columns
)
and
(
"POS"
in
merge_GWAS
.
columns
)):
if
(
merge_GWAS
.
pos
==
merge_GWAS
.
POS
).
mean
()
>
0.95
):
if
(
(
merge_GWAS
.
pos
==
merge_GWAS
.
POS
).
mean
()
>
0.95
):
merge_GWAS
=
merge_GWAS
.
loc
[(
merge_GWAS
.
pos
==
merge_GWAS
.
POS
)]
else
:
raise
ValueError
(
"SNP positions in reference panel and in Summary statistic are different! Different assembly?"
)
...
...
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