Skip to content

Commit

Permalink
fix: _annotate_ancestries drop default fields before join
Browse files Browse the repository at this point in the history
  • Loading branch information
ireneisdoomed committed Apr 13, 2023
1 parent dec2cf4 commit dce0e76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/otg/dataset/study_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ def _annotate_ancestries(
europeans_deconvoluted, on="projectId", how="outer"
)

self.df = self.df.join(parsed_ancestry_lut, on="projectId", how="left")
self.df = self.df.drop("discoverySamples", "replicationSamples").join(
parsed_ancestry_lut, on="projectId", how="left"
)
return self

def _annotate_sumstats_info(
Expand Down

0 comments on commit dce0e76

Please sign in to comment.