def CheckResult( self,
                     result,
                     info1 = None,
                     info2 = None):
        """check if result is ok. The function below returns everything.
        return tuple of strings as result.
        """

        if (result.getLength() > 0):
            row_ali, col_ali = alignlib.writeAlignataCompressed( result )
            return map(str, (result.getScore(),
                             result.getLength(),
                             result.getNumGaps(),
                             alignlib.calculatePercentSimilarity( result ),
                             result.getRowFrom(), result.getRowTo(), row_ali,
                             result.getColFrom(), result.getColTo(), col_ali ) )
        else:
            return ("0",) * 12
        
##--------------------------------------------------------------------------------------
dataset/ETHPy150Open CGATOxford/cgat/legacy/ScopTester.py/Alignator.CheckResult/original