Skip to content
Snippets Groups Projects
Commit 9dc76727 authored by Hanna  JULIENNE's avatar Hanna JULIENNE
Browse files

change the --keep-nans argument to --remove-nans to change defaults behaviour

parent f67a0800
Branches
No related tags found
2 merge requests!33change default handling of missing value : the server and the command line...,!28Update requirement, change default behaviour
...@@ -79,7 +79,7 @@ def compute_worktable(args): ...@@ -79,7 +79,7 @@ def compute_worktable(args):
init_table_path = absolute_path_of_the_file(args.init_table_path) init_table_path = absolute_path_of_the_file(args.init_table_path)
worktable_path = absolute_path_of_the_file(args.worktable_path, True) worktable_path = absolute_path_of_the_file(args.worktable_path, True)
selected_phenotypes = args.phenotypes selected_phenotypes = args.phenotypes
remove_nan = not (args.keep_nans) remove_nan = (args.remove_nans)
significance_treshold = float(args.significance_treshold) significance_treshold = float(args.significance_treshold)
post_filtering = bool(args.post_filtering) post_filtering = bool(args.post_filtering)
custom_loadings = args.custom_loadings custom_loadings = args.custom_loadings
...@@ -197,7 +197,7 @@ def get_parser(): ...@@ -197,7 +197,7 @@ def get_parser():
parser_create_pd.add_argument( parser_create_pd.add_argument(
"--worktable-path", required=True, help="path to the worktable file to generate" "--worktable-path", required=True, help="path to the worktable file to generate"
) )
parser_create_pd.add_argument("--keep-nans", action="store_true", default=True) parser_create_pd.add_argument("--remove-nans", action="store_true", default=False)
parser_create_pd.add_argument( parser_create_pd.add_argument(
"--manhattan-plot-path", "--manhattan-plot-path",
required=True, required=True,
...@@ -344,7 +344,7 @@ def get_parser(): ...@@ -344,7 +344,7 @@ def get_parser():
help="Number of region to load in memory at once", help="Number of region to load in memory at once",
) )
parser_create_wt.add_argument("--keep-nans", action="store_true", default=True) parser_create_wt.add_argument("--remove-nans", action="store_true", default=False)
parser_create_wt.add_argument( parser_create_wt.add_argument(
"--chromosome-number", "--chromosome-number",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment