scripts/last-dotplot
changeset 941 f3f1ec72542f
parent 938 65969d4d464d
child 942 82b69208c878
     1.1 --- a/scripts/last-dotplot	Mon May 14 14:15:33 2018 +0900
     1.2 +++ b/scripts/last-dotplot	Mon May 28 14:53:43 2018 +0900
     1.3 @@ -239,12 +239,12 @@
     1.4      yield oldBeg, maxEnd
     1.5  
     1.6  def mergedRangesPerSeq(coverDict):
     1.7 -    for k, v in coverDict.iteritems():
     1.8 +    for k, v in coverDict.items():
     1.9          v.sort()
    1.10          yield k, list(mergedRanges(v))
    1.11  
    1.12  def coveredLength(mergedCoverDict):
    1.13 -    return sum(sum(e - b for b, e in v) for v in mergedCoverDict.itervalues())
    1.14 +    return sum(sum(e - b for b, e in v) for v in mergedCoverDict.values())
    1.15  
    1.16  def trimmed(seqRanges, coverDict, minAlignedBases, maxGapFrac, endPad, midPad):
    1.17      maxEndGapFrac, maxMidGapFrac = twoValuesFromOption(maxGapFrac, ",")