last-dotplot: read BED-like files more robustly
authorMartin C. Frith
Fri Jul 31 15:26:58 2020 +0900 (11 days ago)
changeset 1078579d74b5066f
parent 1077 5209deca661c
child 1079 5aaae537a930
last-dotplot: read BED-like files more robustly
scripts/last-dotplot
     1.1 --- a/scripts/last-dotplot	Fri Jul 31 15:24:44 2020 +0900
     1.2 +++ b/scripts/last-dotplot	Fri Jul 31 15:26:58 2020 +0900
     1.3 @@ -593,6 +593,8 @@
     1.4      for line in myOpen(fileName):
     1.5          w = line.split()
     1.6          if not w: continue
     1.7 +        if not w[1].isdigit():
     1.8 +            w = w[1:]
     1.9          seqName = w[0]
    1.10          if seqName not in rangeDict: continue
    1.11          seqRanges = rangeDict[seqName]