コード例 #1
0
def main():
    datasetFile = 'rs126.fa'
    groupsFile = 'RS126/groups.txt'
    
    protDict = inOutFunctions.getProteinDict(datasetFile)
    groups = inOutFunctions.getGroups(groupsFile)
    
    
    #for sw in range(7, 16, 2):
    #    print 'sw = ' + str(sw)
    #    
    #    for x in range(7):
    sw, x = 13, 3
    for x in range(7):
        print x
        ann = nn3psp.make_NN(sw, protDict, groups, x)
        
        print nn3psp.test_NN(ann, sw, protDict, groups, x)
コード例 #2
0
        for q in ins:
            inputs_train.append(q)
        for q in outs:
            outputs_train.append(q)

    clf = svm.SVC(C=1.5, gamma=0.1)
    clf.fit(inputs_train, outputs_train)

    return clf


datasetFile = 'rs126.fa'
groupsFile = 'RS126/groups.txt'

protDict = inOutFunctions.getProteinDict(datasetFile)
groups = inOutFunctions.getGroups(groupsFile)
    


def test_SMV_2(clf, sw, dataset, groups, without, dssp):
    cq = 0
    cqp = 0
    cc = 0
    sov = 0
    q = 18
    qq = 0
    
    protCodes = []
    for s in groups[without]:
        protCodes.append(s)
コード例 #3
0
ファイル: temp.py プロジェクト: vladimirivkovic/sc2015project
# -*- coding: utf-8 -*-
"""
Created on Sat Feb 06 14:40:03 2016

@author: Vlado
"""

import inOutFunctions

protD = inOutFunctions.getProteinDict('rs126.fa')
gr = inOutFunctions.getGroups('RS126/groups.txt')

for g in gr:
    for p in g:
        if protD.has_key(p) == False:
            print p