changeset 12:aa2b737102dc draft

Uploaded
author greg
date Mon, 27 Mar 2023 22:14:56 +0000
parents da1c9c1be421
children b1a7e04e6371
files draw_amr_matrix.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/draw_amr_matrix.py	Mon Mar 27 19:41:30 2023 +0000
+++ b/draw_amr_matrix.py	Mon Mar 27 22:14:56 2023 +0000
@@ -192,7 +192,7 @@
             ofh.write("\nAfter processing deletions, amr_to_draw: %s\n" % str(amr_to_draw))
 
         ofh.write("\namr_to_draw.shape[0]: %s\n" % str(amr_to_draw.shape[0]))
-        if amr_to_draw.shape[0] > 0:
+        if amr_to_draw.shape[0] > 1:
             ofh.write("\nDrawing AMR matrix...\n")
             present_genes = amr_to_draw['gene'].unique()
             present_drugs = amr_to_draw['drug'].unique()