def CalculateMatches( self ):
        """calculate all-vs-all alignments.
        """

        if not self.mAlignanda:
            self.GetAlignanda()
            
        if self.mLogLevel >= 1:
            print "# --> calculating alignments for %i entries" % len(self.mAlignanda)
            print "# --> starting at:", Tools.GetTimeStamp()

        nalignanda = len(self.mAlignanda)
        
        for a1 in range(self.startAt, nalignanda-1):
            if self.mLogLevel >= 1:
                print "# %5i/%5i at %s" % (a1, nalignanda, Tools.GetTimeStamp())
                sys.stdout.flush()
                
            for a2 in range(a1+1,nalignanda):
                
                if 3 >= self.mLogLevel:
                    print "#    aligning to %i" % (a2), self.mInformation[a2]
                    sys.stdout.flush()

                result = alignlib.makeAlignataVector()

                self.mAlignator.Align( self.mAlignanda[a1], self.mAlignanda[a2], result )

                info = self.mAlignator.CheckResult( result, self.mInformation[a1], self.mInformation[a2] )
                
                if info:
                    r = tuple(self.mInformation[a1]) + tuple(self.mInformation[a2]) + tuple(info)
                    print string.join(r, "\t" )
                
                sys.stdout.flush()
                
            self.mAlignanda[a1].Release()
            self.mAlignanda[a1] = None
            
        if self.mLogLevel >= 1:
            print "# --> finished at:", Tools.GetTimeStamp()

    ##--------------------------------------------------------------------------------------
dataset/ETHPy150Open CGATOxford/cgat/legacy/ScopTester.py/ScopTester.CalculateMatches/swapped operands of `>=`