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
ee6223d1
Commit
ee6223d1
authored
Feb 19, 2021
by
hjulienn
Browse files
deal with index duplicateqs in the grid_search function
parent
64be0d3f
Pipeline
#48329
passed with stages
in 1 minute and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
raiss/imputation_R2.py
View file @
ee6223d1
...
...
@@ -96,9 +96,11 @@ def z_amplitude_effect(zscore_folder, masked_folder, output_folder, ref_folder,
"""
z_file
=
"{0}/z_{1}_{2}.txt"
.
format
(
zscore_folder
,
gwas
,
chrom
)
zscore
=
pd
.
read_csv
(
z_file
,
index_col
=
0
,
sep
=
"
\t
"
)
zscore
.
drop_duplicates
(
keep
=
'first'
,
inplace
=
True
)
z_output
=
"{0}/z_{1}_{2}.txt"
.
format
(
output_folder
,
gwas
,
chrom
)
dat_orig
=
pd
.
read_csv
(
z_file
,
sep
=
"
\t
"
,
index_col
=
0
)
dat_orig
.
drop_duplicates
(
keep
=
'first'
,
inplace
=
True
)
def
run_imputation
(
z
,
i
):
print
(
"Z score threshold : {}"
.
format
(
z
))
condition
=
(
dat_orig
.
Z
.
abs
()
>
z
)
...
...
Write
Preview
Supports
Markdown
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