Skip to content

Commit

Permalink
Don't lose some pairs!
Browse files Browse the repository at this point in the history
  • Loading branch information
Phlya committed Dec 2, 2022
1 parent ea98bce commit 3d4d338
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pairtools/lib/dedup.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def _dedup_stream(
s2=s2,
unmapped_chrom=unmapped_chrom,
)
df_marked = df_marked.loc[prev_i:, :].reset_index(drop=True)
df_marked = df_marked.iloc[prev_i:, :].reset_index(drop=True)
mask_duplicated = df_marked["duplicate"]
if mark_dups:
df_marked.loc[mask_duplicated, "pair_type"] = "DD"
Expand All @@ -177,7 +177,6 @@ def _dedup_stream(
# Re-define carryover pairs:
df_prev_nodups = df_nodups.tail(carryover).reset_index(drop=True)
prev_i = len(df_prev_nodups)

yield df_marked


Expand Down

0 comments on commit 3d4d338

Please sign in to comment.