@@ -42,8 +42,8 @@ def run_impute(
4242 conf_file = "../conf/minimal-configuration.json" ,
4343 project_dir_graph = "" ,
4444 project_dir_in_file = "" ,
45- hap_pop_pair = False ,
46- graph = None
45+ hap_pop_pair = False ,
46+ graph = None ,
4747):
4848
4949 configuration_file = conf_file
@@ -81,12 +81,24 @@ def run_impute(
8181 + json_conf .get ("edges_csv_file" ),
8282 "imputation_input_file" : project_dir_in_file
8383 + json_conf .get ("imputation_in_file" ),
84- "imputation_out_umug_freq_file" : full_path (output_dir , json_conf .get ("imputation_out_umug_freq_filename" )),
85- "imputation_out_umug_pops_file" : full_path (output_dir , json_conf .get ("imputation_out_umug_pops_filename" )),
86- "imputation_out_hap_freq_file" : full_path (output_dir , json_conf .get ("imputation_out_hap_freq_filename" )),
87- "imputation_out_hap_pops_file" : full_path (output_dir , json_conf .get ("imputation_out_hap_pops_filename" )),
88- "imputation_out_miss_file" : full_path (output_dir , json_conf .get ("imputation_out_miss_filename" )),
89- "imputation_out_problem_file" : full_path (output_dir , json_conf .get ("imputation_out_problem_filename" )),
84+ "imputation_out_umug_freq_file" : full_path (
85+ output_dir , json_conf .get ("imputation_out_umug_freq_filename" )
86+ ),
87+ "imputation_out_umug_pops_file" : full_path (
88+ output_dir , json_conf .get ("imputation_out_umug_pops_filename" )
89+ ),
90+ "imputation_out_hap_freq_file" : full_path (
91+ output_dir , json_conf .get ("imputation_out_hap_freq_filename" )
92+ ),
93+ "imputation_out_hap_pops_file" : full_path (
94+ output_dir , json_conf .get ("imputation_out_hap_pops_filename" )
95+ ),
96+ "imputation_out_miss_file" : full_path (
97+ output_dir , json_conf .get ("imputation_out_miss_filename" )
98+ ),
99+ "imputation_out_problem_file" : full_path (
100+ output_dir , json_conf .get ("imputation_out_problem_filename" )
101+ ),
90102 "factor_missing_data" : json_conf .get ("factor_missing_data" , 0.01 ),
91103 "loci_map" : json_conf .get (
92104 "loci_map" , {"A" : 1 , "B" : 3 , "C" : 2 , "DQB1" : 4 , "DRB1" : 5 }
@@ -180,7 +192,7 @@ def run_impute(
180192
181193 config ["full_loci" ] = "" .join (sorted (all_loci_set ))
182194 # Perform imputation
183- if graph == None :
195+ if graph == None :
184196 graph = Graph (config )
185197 graph .build_graph (
186198 config ["node_file" ], config ["top_links_file" ], config ["edges_file" ]
0 commit comments