predict.py
def predict_lines(args):
    '''Return previous format of a list of strings corresponding to the output lines of a prediction file'''
    predictions = predict(args)
    lines = []
    for line in predictions[0]:
        l = ''
        for val in line[:-1]:
            l += '%f '%val
        l += '| %s' % line[-1]
        lines.append(l)
    if predictions[1] != None:
        lines.append('# AUC %f\n'%predictions[1])
    if predictions[2] != None:
        lines.append('# rmsd %f\n'%predictions[2])
    if predictions[3] != None:
        lines.append('# pearsonr %f\n'%predictions[3])
    return lines
Return previous format of a list of strings corresponding to the output lines of a prediction file
Return previous format of a list of strings corresponding to the output lines of a prediction file
Return previous format of a list of strings corresponding to the output lines of a prediction file
def predict_lines(args):
    predictions = predict(args)
    lines = []
    for line in predictions[0]:
        l = ''
        for val in line[:-1]:
            l += '%f '%val
        l += '| %s' % line[-1]
        lines.append(l)
    if predictions[1] != None:
        lines.append('# AUC %f\n'%predictions[1])
    if predictions[2] != None:
        lines.append('# rmsd %f\n'%predictions[2])
    if predictions[3] != None:
        lines.append('# pearsonr %f\n'%predictions[3])
    return lines
def predict_lines ( args ) : predictions = predict ( args ) lines = [ ] for line in predictions [ 0 ] : l = '' for val in line [ : - 1 ] : l += '%f ' % val l += '| %s' % line [ - 1 ] lines . append ( l ) if predictions [ 1 ] != None : lines . append ( '# AUC %f\n' % predictions [ 1 ] ) if predictions [ 2 ] != None : lines . append ( '# rmsd %f\n' % predictions [ 2 ] ) if predictions [ 3 ] != None : lines . append ( '# pearsonr %f\n' % predictions [ 3 ] ) return lines
Return previous format of a list of strings corresponding to the output lines of a prediction file
Return previous format of a list of strings corresponding to the output lines of a prediction file
'''Return previous format of a list of strings corresponding to the output lines of a prediction file'''
args