dotplot: change the undocumented input format
authorMartin C. Frith
Fri Jun 21 10:21:32 2019 +0900 (2019-06-21)
changeset 9810e184d90d5da
parent 980 27c26371226b
child 982 4f77b3fc0720
dotplot: change the undocumented input format
scripts/last-dotplot
     1.1 --- a/scripts/last-dotplot	Mon Apr 22 14:36:02 2019 +0900
     1.2 +++ b/scripts/last-dotplot	Fri Jun 21 10:21:32 2019 +0900
     1.3 @@ -120,8 +120,8 @@
     1.4              segments = []
     1.5          elif len(w) == 2 and qrySeqName and w[1].isdigit():
     1.6              qrySeqLen += int(w[1])
     1.7 -        elif len(w) == 3 and qrySeqName and w[1].isdigit() and w[2].isdigit():
     1.8 -            refSeqName, refSeqBeg, refSeqEnd = w[0], int(w[1]), int(w[2])
     1.9 +        elif len(w) == 4 and qrySeqName and w[1].isdigit() and w[3].isdigit():
    1.10 +            refSeqName, refSeqBeg, refSeqEnd = w[0], int(w[1]), int(w[3])
    1.11              size = abs(refSeqEnd - refSeqBeg)
    1.12              if refSeqBeg > refSeqEnd:
    1.13                  refSeqBeg = -refSeqBeg