scripts/last-dotplot
changeset 858 93d47bb8527f
parent 857 5e4e3f2cf68b
child 859 1ecdbf2ddb78
     1.1 --- a/scripts/last-dotplot	Thu May 18 14:01:30 2017 +0900
     1.2 +++ b/scripts/last-dotplot	Thu May 18 14:03:43 2017 +0900
     1.3 @@ -298,13 +298,16 @@
     1.4          if b >= e: continue
     1.5          layer = 900
     1.6          color = "#ffe4ff"
     1.7 -        if len(w) > 5:
     1.8 -            if len(w) > 8 and w[8].count(",") == 2:
     1.9 -                 color = "rgb(" + w[8] + ")"
    1.10 -            elif w[5] == "+":
    1.11 -                color = "#fff4f4"
    1.12 -            elif w[5] == "-":
    1.13 -                color = "#f4f4ff"
    1.14 +        if len(w) > 4:
    1.15 +            if w[4] != ".":
    1.16 +                layer = float(w[4])
    1.17 +            if len(w) > 5:
    1.18 +                if len(w) > 8 and w[8].count(",") == 2:
    1.19 +                    color = "rgb(" + w[8] + ")"
    1.20 +                elif w[5] == "+":
    1.21 +                    color = "#fff4f4"
    1.22 +                elif w[5] == "-":
    1.23 +                    color = "#f4f4ff"
    1.24          yield layer, color, seqName, b, e
    1.25  
    1.26  def isExtraFirstGapField(fields):