Skip to content

Commit

Permalink
Save chunk shape after dropping duplicates (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
endast authored Oct 27, 2023
1 parent fab2fb7 commit 21758ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deeprvat/annotations/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -934,8 +934,8 @@ def process_chunk_addids(chunk, variants):
}
)
key_cols = ["chrom", "pos", "ref", "alt"]
chunk_shape = chunk.shape
chunk.drop_duplicates(subset=key_cols, inplace=True)
chunk_shape = chunk.shape
chunk = pd.merge(chunk, variants, on=key_cols, how="left", validate="1:1")

try:
Expand Down

0 comments on commit 21758ce

Please sign in to comment.