Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jass
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Statistical-Genetics
jass
Commits
58f72dd3
Commit
58f72dd3
authored
5 years ago
by
Hanna JULIENNE
Browse files
Options
Downloads
Patches
Plain Diff
fixed main
parent
77caa6a4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jass/__main__.py
+11
-7
11 additions, 7 deletions
jass/__main__.py
with
11 additions
and
7 deletions
jass/__main__.py
+
11
−
7
View file @
58f72dd3
...
@@ -25,7 +25,7 @@ def compute_worktable(args):
...
@@ -25,7 +25,7 @@ def compute_worktable(args):
selected_phenotypes
=
args
.
phenotypes
selected_phenotypes
=
args
.
phenotypes
worktable_path
=
args
.
worktable_path
worktable_path
=
args
.
worktable_path
remove_nan
=
not
(
args
.
keep_nans
)
remove_nan
=
not
(
args
.
keep_nans
)
significance_treshold
=
args
.
significance_treshold
significance_treshold
=
float
(
args
.
significance_treshold
)
post_filtering
=
args
.
post_filtering
post_filtering
=
args
.
post_filtering
custom_loadings
=
args
.
custom_loadings
custom_loadings
=
args
.
custom_loadings
...
@@ -48,8 +48,11 @@ def w_create_worktable(args):
...
@@ -48,8 +48,11 @@ def w_create_worktable(args):
def
w_create_project_data
(
args
):
def
w_create_project_data
(
args
):
compute_worktable
(
args
)
compute_worktable
(
args
)
worktable_path
=
args
.
worktable_path
manhattan_plot_path
=
args
.
manhattan_plot_path
quadrant_plot_path
=
args
.
quadrant_plot_path
create_global_plot
(
worktable_path
,
manhattan_plot_path
)
create_global_plot
(
worktable_path
,
manhattan_plot_path
)
create_quadrant_plot
(
worktable_path
,
quadrant_plot_path
,
significance_treshold
=
significance_treshold
)
create_quadrant_plot
(
worktable_path
,
quadrant_plot_path
,
significance_treshold
=
float
(
args
.
significance_treshold
)
)
def
w_create_inittable
(
args
):
def
w_create_inittable
(
args
):
...
@@ -66,11 +69,6 @@ def w_create_inittable(args):
...
@@ -66,11 +69,6 @@ def w_create_inittable(args):
init_table_path
,
init_table_path
,
)
)
def
w_plot_manhattan
(
args
):
def
w_plot_manhattan
(
args
):
worktable_path
=
args
.
worktable_path
worktable_path
=
args
.
worktable_path
plot_path
=
args
.
plot_path
plot_path
=
args
.
plot_path
...
@@ -208,6 +206,12 @@ def get_parser():
...
@@ -208,6 +206,12 @@ def get_parser():
default
=
True
,
default
=
True
,
help
=
"
If a filtering to remove outlier will be applied (in this case the result of SNPs considered aberant will not appear in the worktable)
"
help
=
"
If a filtering to remove outlier will be applied (in this case the result of SNPs considered aberant will not appear in the worktable)
"
)
)
parser_create_wt
.
add_argument
(
"
--custom-loadings
"
,
required
=
False
,
help
=
"
path toward a csv file containing custom loading for sumZ tests
"
,
)
parser_create_wt
.
add_argument
(
"
--keep-nans
"
,
action
=
"
store_true
"
,
default
=
False
)
parser_create_wt
.
add_argument
(
"
--keep-nans
"
,
action
=
"
store_true
"
,
default
=
False
)
strategies
=
parser_create_wt
.
add_mutually_exclusive_group
()
strategies
=
parser_create_wt
.
add_mutually_exclusive_group
()
strategies
.
add_argument
(
"
--omnibus
"
,
action
=
"
store_true
"
,
default
=
True
)
strategies
.
add_argument
(
"
--omnibus
"
,
action
=
"
store_true
"
,
default
=
True
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment