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
RAISS
Commits
84289edf
Commit
84289edf
authored
Mar 16, 2021
by
hjulienn
Browse files
DEBUG: remove filter when saving results
parent
3b326494
Changes
1
Hide whitespace changes
Inline
Side-by-side
raiss/filter_format_output.py
View file @
84289edf
...
...
@@ -20,5 +20,5 @@ def filter_output(zscores, fout, R2_threshold = 0.6, minimum_ld = 5):
chr_fo
=
zscores
[[
'index'
,
'pos'
,
'A0'
,
'A1'
,
'Z'
,
'Var'
,
"ld_score"
]]
chr_fo
[
"imputation_R2"
]
=
1
-
chr_fo
[
"Var"
]
chr_fo
.
columns
=
[
'rsID'
,
'pos'
,
'A0'
,
'A1'
,
'Z'
,
'Var'
,
"ld_score"
,
"imputation_R2"
]
chr_fo
.
loc
[(
chr_fo
.
Var
<
(
1
-
R2_threshold
))
&
(
chr_fo
.
ld_score
>
minimum_ld
)].
to_csv
(
fout
,
sep
=
"
\t
"
,
index
=
False
)
#loc[(chr_fo.Var < (1-R2_threshold)) & (chr_fo.ld_score > minimum_ld)]
chr_fo
.
to_csv
(
fout
,
sep
=
"
\t
"
,
index
=
False
)
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