From 93880b6394c896805f0130998d29f32a97f36a31 Mon Sep 17 00:00:00 2001 From: McKay Date: Fri, 8 Mar 2024 14:00:16 -0700 Subject: [PATCH] refactored integer slice to iloc[] --- CRISPResso2/CRISPRessoPlot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRISPResso2/CRISPRessoPlot.py b/CRISPResso2/CRISPRessoPlot.py index 3bb3d43d..8da1d450 100644 --- a/CRISPResso2/CRISPRessoPlot.py +++ b/CRISPResso2/CRISPRessoPlot.py @@ -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