def outputRates( result, options ):

    trained_model = result.getModel()

    pis = trained_model.evaluateTerminalFrequencies()
    matrices = trained_model.evaluateRateMatrix()
    terminals = pis.keys()

    for terminal in terminals:
        Q, distance = RateEstimation.getDistanceGTR( pis[terminal], matrices[terminal] )
        options.stdout.write("\t%s" % (options.value_format % distance ) )
        
##-----------------------------------------------------------------------------------
##-----------------------------------------------------------------------------------
##-----------------------------------------------------------------------------------
Handle editing keystrokes.  Remove leading zeros.
dataset/ETHPy150Open CGATOxford/cgat/obsolete/xrate_blocks.py/outputRates--crossover with--dataset/ETHPy150Open AnyMesh/anyMesh-Python/example/urwid/widget.py/IntEdit.keypress