Skip to content

Commit

Permalink
refactored integer slice to iloc[]
Browse files Browse the repository at this point in the history
  • Loading branch information
mbowcut2 authored and Colelyman committed Mar 11, 2024
1 parent 32f07a7 commit b3fbfdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRISPResso2/CRISPRessoPlot.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def plot_nucleotide_quilt(nuc_pct_df,mod_pct_df,fig_filename_root, custom_colors
sample_row_start = nNucs * i
y_start = nSamples - i

ins_pct = float(mod_pct_df_indexed.loc[sampleName,'Insertions_Left'][pos_ind-2])
ins_pct = float(mod_pct_df_indexed.loc[sampleName,'Insertions_Left'].iloc[pos_ind-2])

if ins_pct > min_plot_pct:
obs_pct = ins_pct * plotPct
Expand Down

0 comments on commit b3fbfdb

Please sign in to comment.