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


parent 5ab52154
......@@ -49,7 +49,6 @@ def generate_sparse_matrix(plink_ld, ref_chr_df):
mat_ld = pd.DataFrame(sym, index=mat_ld.index, columns=mat_ld.columns)
re_index = ref_chr_df.loc[mat_ld.index].sort_values(by="pos").index
mat_ld = mat_ld.loc[re_index, re_index]
# mat_ld = pd.DataFrame(np.maximum(mat_ld.values, mat_ld.values.transpose()), index=un_index, columns=un_index)
mat_ld = mat_ld.to_sparse()
return mat_ld
#mat_ld.to_pickle(path_ld_mat,, compression='gzip')
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