Browse code

Reverted back the scale bar annotation (no bp for small numbers)

Robert Ivánek authored on 05/01/2022 21:27:37
Showing 1 changed files

... ...
@@ -2624,7 +2624,8 @@ setMethod("drawGD", signature("AlignmentsTrack"), function(GdObject, minBase, ma
2624 2624
         tckText <- round(tckText, count + 1)
2625 2625
     }
2626 2626
     return(switch(as.character(exponent),
2627
-        "0" = sprintf("%s bp", tckText),
2627
+        "0" = sprintf("%i", as.integer(tckText)),
2628
+        #"0" = sprintf("%s bp", tckText),
2628 2629
         "3" = sprintf("%s kb", tckText),
2629 2630
         "6" = sprintf("%s mb", tckText),
2630 2631
         "9" = sprintf("%s gb", tckText),