Commit 334f61a0 authored by Hanna  JULIENNE's avatar Hanna JULIENNE
Browse files

Update save_output.py

parent 3a03bac4
Pipeline #61487 failed with stage
in 26 seconds
...@@ -12,7 +12,7 @@ def save_output_by_chromosome(mgwas, ImpG_output_Folder, my_study): ...@@ -12,7 +12,7 @@ def save_output_by_chromosome(mgwas, ImpG_output_Folder, my_study):
mgwas_copy.dropna(subset=["computed_z"], how="any", inplace=True) mgwas_copy.dropna(subset=["computed_z"], how="any", inplace=True)
print(mgwas_copy.index.unique()) print(mgwas_copy.index.unique())
for chrom in mgwas_copy.index.unique(): for chrom in mgwas_copy.index.unique():
print(mgwas_copy.loc[chrom])
mgwas_chr = pd.DataFrame({ mgwas_chr = pd.DataFrame({
'rsID': mgwas_copy.loc[chrom].snp_id, 'rsID': mgwas_copy.loc[chrom].snp_id,
'pos': mgwas_copy.loc[chrom].pos, 'pos': mgwas_copy.loc[chrom].pos,
......
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