Commit cf85fe06 authored by Hanna  JULIENNE's avatar Hanna JULIENNE
Browse files

update code to adjust to pandas newest version

parent e52410d7
Pipeline #44973 passed with stages
in 1 minute and 4 seconds
......@@ -188,7 +188,8 @@ def impg_like_imputation(ld_file, ref_panel, zscore, window_size, buffer, lamb,
# keep only SNP with non negligible explained variance
snp_well_predicted = (batch_df.Var < 0.9)
batch_df_filt = batch_df.reindex[in_core_window & snp_well_predicted, zscore_results.columns]
batch_df_filt = batch_df.loc[(in_core_window & snp_well_predicted), zscore_results.columns]
zscore_results = pd.concat([zscore_results, batch_df_filt])
zscore_results = pd.concat([zscore_results, zt])
Markdown is supported
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