Skip to content

Commit

Permalink
fix pandas merge bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hermanzhaozzzz committed Aug 15, 2023
1 parent 596198b commit 52984ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bioat/target_seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,8 @@ def plot_agct(x):
bmat_table = ls_bmat_table[0]

for df_bmat in ls_bmat_table[1:]:
df_tmp = pd.merge(df_tmp, df_bmat, on='chr_index', how='outer')
suffixes = (f'_{df_tmp.iloc[0, -1]}', f'_{df_bmat.iloc[0, -1]}')
df_tmp = pd.merge(df_tmp, df_bmat, on='chr_index', how='outer', suffixes=suffixes)

ls_columns = ['chr_index']
for label in label_panel:
Expand Down

0 comments on commit 52984ea

Please sign in to comment.