Commit d8571017 authored by Hanna  JULIENNE's avatar Hanna JULIENNE

oredering index

parent cdef9454
Pipeline #44874 passed with stages
in 1 minute and 5 seconds
......@@ -35,6 +35,11 @@ def realigned_zfiles_on_panel(ref_panel, zscore):
inter_id = zscore.index.intersection(ref_panel.index)
zscore = zscore.loc[inter_id]
sub_ref_panel = ref_panel.loc[inter_id]
print(sub_ref_panel.head())
print(zscore.head())
zscore.sort_index(inplace=True)
sub_ref_panel.sort_index(inplace=True)
allele_inverted = (sub_ref_panel['Ref_all'] != zscore.A0)
zscore.loc[allele_inverted, "A0"] = sub_ref_panel.loc[allele_inverted].Ref_all
......
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