当前位置: 首页>>代码示例>>Python>>正文


Python EDrestraint.makeEDrestraintFromMap方法代码示例

本文整理汇总了Python中restraints.EDrestraint.makeEDrestraintFromMap方法的典型用法代码示例。如果您正苦于以下问题:Python EDrestraint.makeEDrestraintFromMap方法的具体用法?Python EDrestraint.makeEDrestraintFromMap怎么用?Python EDrestraint.makeEDrestraintFromMap使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在restraints.EDrestraint的用法示例。


在下文中一共展示了EDrestraint.makeEDrestraintFromMap方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: calcCC

# 需要导入模块: from restraints import EDrestraint [as 别名]
# 或者: from restraints.EDrestraint import makeEDrestraintFromMap [as 别名]
def calcCC(crdlist,pts,mapfile,esmin,esmax):
    crdlist1 = VecVecFloat(crdlist)
    pis = VecInt( range(crdlist1.size()) )
    from restraints import EDrestraint
    er  = EDrestraint.makeEDrestraintFromMap(pis, "Xranker", mapfile, esmin, esmax, esmax)
    xcorr = EDrestraint.findBadfit1(mtzfn, f1label, pts, ptinds)
    print "xcor",xcorr,resids[ri]
    return xcorr
开发者ID:swanandgore,项目名称:rappertk,代码行数:10,代码来源:emrefine.py

示例2: getTime

# 需要导入模块: from restraints import EDrestraint [as 别名]
# 或者: from restraints.EDrestraint import makeEDrestraintFromMap [as 别名]
def getTime(sf,pdb):
    xrayRestGen = []
    prot = protein(pdb, read_hydrogens=0, read_waters=0, read_hets=0)
    res, resids, resnums, resns, chids, inscodes, pts = prot2res.readProtRes(prot)
    esmin, esmax, esmean, rcmult, xscoreCutoff = .000, 5., .0, 5, 0.9
    pis = VecInt(resids.keys())
    er = EDrestraint.makeEDrestraintFromMap(pis, "Xranker", phasedmtz, esmin, esmax, smax)
    score = er.scoreAll(VecVecFloat(pts))
    print score
开发者ID:swanandgore,项目名称:rappertk,代码行数:11,代码来源:stumpTESTING.py

示例3: score

# 需要导入模块: from restraints import EDrestraint [as 别名]
# 或者: from restraints.EDrestraint import makeEDrestraintFromMap [as 别名]
 def score(s, crdlist, pis=None) :
     crdlist1 = VecVecFloat(crdlist)
     #print "-----------------------------------"
     #for ci in range(crdlist1.size()) :
     #    print crdlist1[ci][0] , crdlist1[ci][0] , crdlist1[ci][0]
     if not pis : pis = VecInt( range(crdlist1.size()) )
     else : pis = VecInt( range(pis) )
     if re.compile("\.map$").search(s.phasedmtz) :
         er = EDrestraint.makeEDrestraintFromMap(pis, "Xranker", s.phasedmtz, s.esmin, s.esmax, s.esmax)
     else :
         er = EDrestraint.makeEDrestraintFromMTZ(pis, "Xranker", s.phasedmtz, s.fplabel, s.fclabel, s.philabel, s.maptype, s.esmin, s.esmax, s.esmax)
     return -1*er.scoreAround(crdlist1)
开发者ID:swanandgore,项目名称:rappertk,代码行数:14,代码来源:xcheck.py

示例4: generateMAP

# 需要导入模块: from restraints import EDrestraint [as 别名]
# 或者: from restraints.EDrestraint import makeEDrestraintFromMap [as 别名]
 def generateMAP(s, blist, aiSC) :
     print s.mapfn, s.min, s.max, s.mean
     erlist = []
     for b in blist :
         bop = b.getOP()
         edrIP = []
         for i in range(bop.size()) :
             if aiSC[bop[i]] != -1 : edrIP.append(bop[i])
         rstr = "XEnvelopeRestraint on op of %s" % b.name()
         print s.mapfn, s.min, s.max, s.mean
         erlist.append( EDrestraint.makeEDrestraintFromMap(VecInt(edrIP), rstr, s.mapfn, s.min, s.max, s.mean) )
     return erlist
开发者ID:swanandgore,项目名称:rappertk,代码行数:14,代码来源:prepareChain.py

示例5: createXEnvelopeRestraints

# 需要导入模块: from restraints import EDrestraint [as 别名]
# 或者: from restraints.EDrestraint import makeEDrestraintFromMap [as 别名]
def createXEnvelopeRestraints(blist, mapfile, aiSC) :
    from restraints import EDrestraint
    erlist = []
    for b in blist :
        bop = b.getOP()
        edrIP = []
        for i in range(bop.size()) :
            if aiSC[bop[i]] != -1 : edrIP.append(bop[i])
        rstr = "XEnvelopeRestraint on op of %s" % b.name()
        esmin, esmax, esmean, rcmult = .000, 5., .0, 5
        erlist.append( EDrestraint.makeEDrestraintFromMap(VecInt(edrIP), rstr, mapfile,esmin, esmax, esmean) )
    return erlist
开发者ID:swanandgore,项目名称:rappertk,代码行数:14,代码来源:betaBuilderAK.py

示例6: createXEnvelopeRestraintsCA

# 需要导入模块: from restraints import EDrestraint [as 别名]
# 或者: from restraints.EDrestraint import makeEDrestraintFromMap [as 别名]
def createXEnvelopeRestraintsCA(blist, mapfile, aiSC) :
    from restraints import EDrestraint
    erlist = []
    for b in blist :
        bop = b.getOP()
        edrIP = []
        if "Pept" in b.name() or "anchor" in b.name(): 
            for i in range(bop.size()) :
                print bop[i]
                #if aiSC[bop[i]] != -1 :
                edrIP.append(bop[i])
                rstr = "XEnvelopeRestraint on op of %s" % b.name()
            esmin, esmax, esmean, rcmult = .000, 5., .0, 5
            erlist.append( EDrestraint.makeEDrestraintFromMap(VecInt(edrIP), rstr, mapfile,esmin, esmax, esmean) )
        else :
            print "DDD", b.name() 
            continue

    return erlist
开发者ID:swanandgore,项目名称:rappertk,代码行数:21,代码来源:betaBuilderAK.py

示例7: createXEnvelopeRestraints2

# 需要导入模块: from restraints import EDrestraint [as 别名]
# 或者: from restraints.EDrestraint import makeEDrestraintFromMap [as 别名]
def createXEnvelopeRestraints2(blist, mapfile, aiSC,ncDummies) :
    from restraints import EDrestraint
    erlist = []
    
    print "aiSC",aiSC
    print "NCD",ncDummies
    for b in blist :
        bop = b.getOP()
        edrIP = []
        rstr = "XEnvelopeRestraint on op of %s" % b.name()
        print rstr
        for i in range(bop.size()) :
            print i , bop[i]

            if aiSC[bop[i]] != -1 :
                edrIP.append(bop[i])

        esmin, esmax, esmean, rcmult = .000, 5., .0, 5
        erlist.append( EDrestraint.makeEDrestraintFromMap(VecInt(edrIP), rstr, mapfile,esmin, esmax, esmean) )
    return erlist
开发者ID:swanandgore,项目名称:rappertk,代码行数:22,代码来源:betaBuilderAK.py

示例8: main

# 需要导入模块: from restraints import EDrestraint [as 别名]
# 或者: from restraints.EDrestraint import makeEDrestraintFromMap [as 别名]

#.........这里部分代码省略.........
            ml.cellsym = None

            #ml.ranker = None
            
            if cycle >= 14 and cycle <= 19 : 
                restraintList = ssList

            if cycle > 19 and cycle <= 30 : 
                restraintList = []
                
            else : ## for cycle > 30 , loose cm will come into play
                restraintList = ssList + resList
                



            #if cycle >= 15 and cycle <=25: 
            #    ml.ranker.rankGivenEnsemble =  None
            #else :
            #    ml.ranker.rankGivenEnsemble =  1
            if options.debug == 1:
                erlist = []
                for k, v in res.items():
                    resmcpts = []  ;                    resscpts = []
                    for a , b in v.items():
                        if a in [' CA ', ' N  ',' C  ',' O  '] : 
                            resmcpts.append(b)
                            descr1 = "ED on %s ca"%resids[k] 
                        
                        else:
                            resscpts.append(b)
                            descr2 = "ED on %s sc"%resids[k]
                    if len(resmcpts) !=0 :
                        erlist.append( EDrestraint.makeEDrestraintFromMap(VecInt(resmcpts), descr1, options.map, esmin, esmax, esmean) )
                    if len(resscpts) !=0 :                    
                        erlist.append( EDrestraint.makeEDrestraintFromMap(VecInt(resscpts), descr2, options.map, esmin, esmax, esmean) )
                        
                for er in erlist :
                    print er.describe();
                    print er.satisfied(VecVecFloat(pts))
                    print "========================="
                for sr in resList :
                    print sr.describe();sr.satisfied(VecVecFloat(pts))
                    
                for sr in ssList :
                    print sr.describe();sr.satisfied(VecVecFloat(pts))

                sys.exit()

            nb,notbuilt = ml.run('CA',restraintList,0)




            
    ### preFinal round to rebuild helices that have become loopxs

                
    loops , looptypes, midloops, badloops = [],[],[],[]
    for hh in  helices:
        hstart = hh[1][0]
        hstop = hh[1][1]
        loops.append([hstart,hstop])
        looptypes.append("loop")
        midloops.append(None)
                
开发者ID:swanandgore,项目名称:rappertk,代码行数:69,代码来源:emrefine.py


注:本文中的restraints.EDrestraint.makeEDrestraintFromMap方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。