scripts/last-dotplot
changeset 856 d086361eabec
parent 855 09a9d7ef13ae
child 857 5e4e3f2cf68b
     1.1 --- a/scripts/last-dotplot	Wed May 17 18:29:32 2017 +0900
     1.2 +++ b/scripts/last-dotplot	Thu May 18 13:21:30 2017 +0900
     1.3 @@ -296,12 +296,14 @@
     1.4          b = max(beg, cropBeg)
     1.5          e = min(end, cropEnd)
     1.6          if b >= e: continue
     1.7 -        color = 255, 228, 255
     1.8 -        if len(w) > 8:
     1.9 -            color = tuple(map(int, w[8].split(",")))
    1.10 -        elif len(w) > 5:
    1.11 -            if   w[5] == "+": color = 255, 244, 244
    1.12 -            elif w[5] == "-": color = 244, 244, 255
    1.13 +        color = "#ffe4ff"
    1.14 +        if len(w) > 5:
    1.15 +            if len(w) > 8 and w[8].count(",") == 2:
    1.16 +                 color = "rgb(" + w[8] + ")"
    1.17 +            elif w[5] == "+":
    1.18 +                color = "#fff4f4"
    1.19 +            elif w[5] == "-":
    1.20 +                color = "#f4f4ff"
    1.21          yield seqName, b, e, color
    1.22  
    1.23  def isExtraFirstGapField(fields):