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
d644c800
Commit
d644c800
authored
Nov 30, 2018
by
Hanna JULIENNE
Browse files
fixed cast
parent
48a615de
Pipeline
#7909
passed with stages
in 1 minute and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
jass_preprocessing/compute_score.py
View file @
d644c800
...
...
@@ -51,7 +51,7 @@ def compute_sample_size(mgwas, diagnostic_folder, trait, perSS = 0.7):
warnings
.
warn
(
"Some snp had an infinite sample size"
)
myW_thres
=
np
.
percentile
(
myN
.
dropna
(),
90
)
ss_thres
=
in
t
(
perSS
)
*
myW_thres
ss_thres
=
floa
t
(
perSS
)
*
myW_thres
mgwas
[
"computed_N"
]
=
myN
plt
.
clf
()
p1
=
sns
.
distplot
(
mgwas
.
computed_N
[
~
mgwas
.
computed_N
.
isna
()])
...
...
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