Commit 8baaed07 authored by Hanna  JULIENNE's avatar Hanna JULIENNE
Browse files

remove filter in impg_like_imputation

parent 1090c897
Pipeline #52584 passed with stages
in 1 minute and 33 seconds
......@@ -182,8 +182,8 @@ def impg_like_imputation(ld_file, ref_panel, zscore, window_size, buffer, lamb,
in_core_window = in_region(batch_df.pos, start_core_window, end_core_window)
# keep only SNP with non negligible explained variance
snp_well_predicted = (batch_df.Var < 0.9)
batch_df_filt = batch_df.loc[(in_core_window & snp_well_predicted), zscore_results.columns]
#snp_well_predicted = (batch_df.Var < 0.9)
batch_df_filt = batch_df.loc[(in_core_window), zscore_results.columns]
zscore_results = pd.concat([zscore_results, batch_df_filt])
except (ValueError, KeyError, TypeError) as e:
print("Inversion failed for window {0} - {1}".format(start_windows,end_windows ))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment