當前位置: 首頁>>代碼示例>>Python>>正文


Python Executor.finish方法代碼示例

本文整理匯總了Python中Biskit.Executor.finish方法的典型用法代碼示例。如果您正苦於以下問題:Python Executor.finish方法的具體用法?Python Executor.finish怎麽用?Python Executor.finish使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Biskit.Executor的用法示例。


在下文中一共展示了Executor.finish方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: finish

# 需要導入模塊: from Biskit import Executor [as 別名]
# 或者: from Biskit.Executor import finish [as 別名]
    def finish( self ):
        """
        Overrides Executor method
        """
        Executor.finish( self )

        self.result = self.parse_result()

        ## if probe radius other than 1.4 A the relative surface exposure
        ## cannot be calculated, but allow this check to be a little flexible
        ## if we ate forced to slightly increase the radii to excape round off
        ## SurfaceRacer errors
        try:
            if round(self.probe, 1) == 1.4 and self.vdw_set == 1:
                self.__relExposure('MS')
                self.__relExposure('AS')
            else:
                EHandler.warning("No relative accessabilities calculated "+\
                                 "when using a prob radius other than 1.4 A"+\
                                 " or not using the Richards vdw radii set.")
        except KeyError, what:
            EHandler.warning("Missing standard accessibilities for some "+\
                             "atoms. No relative accesibilities calculated.")
            if 'relMS' in self.result: del self.result['relMS']
            if 'relAS' in self.result: del self.result['relAS']
開發者ID:ostrokach,項目名稱:biskit,代碼行數:27,代碼來源:SurfaceRacer.py

示例2: finish

# 需要導入模塊: from Biskit import Executor [as 別名]
# 或者: from Biskit.Executor import finish [as 別名]
    def finish( self ):
        """
        Overrides Executor method
        """
        Executor.finish( self )
        self.result = PDBModel( self.f_out )

        ## renumber atoms 
        self.result['serial_number'] = N.arange( len( self.result ) )
        ## rescue non-atom informations
        self.result.pdbCode = self.model.pdbCode
        self.result.info.update( self.model.info )
        self.result.residues.update( self.model.residues )
        self.result.info['reduce'] = 'hydrogens added/replaced by '\
            + self.version()
開發者ID:ostrokach,項目名稱:biskit,代碼行數:17,代碼來源:reduce.py

示例3: finish

# 需要導入模塊: from Biskit import Executor [as 別名]
# 或者: from Biskit.Executor import finish [as 別名]
    def finish( self ):
        """Called after a successful intervor run. Overrides Executor hook.
        """
        Executor.finish( self )
        f_so = self.f_prefix + '_intervor_SO.txt'
        f_fac= self.f_prefix + '_intervor_interface-IV.txt'

        facets = B.ProfileCollection()

        facets['so'] = N.array( self.__parseSO( f_so ), N.int32 )

        d = self.__parseFacets( f_fac )

        for k in d.keys():
            facets[ k ] = d.valuesOf( k )
            assert len(facets[k]) == len(facets['so']),\
                   'number of facet records and shelling order records dont match'

        self.result = facets

        self.__mapfacets2Atoms( facets )
開發者ID:graik,項目名稱:biskit,代碼行數:23,代碼來源:Intervor.py

示例4: finish

# 需要導入模塊: from Biskit import Executor [as 別名]
# 或者: from Biskit.Executor import finish [as 別名]
 def finish( self ):
     """
     @note: Overrides Executor method
     """
     Executor.finish( self )
     self.result = self.parse_foldx()
開發者ID:ostrokach,項目名稱:biskit,代碼行數:8,代碼來源:Fold_X.py

示例5: finish

# 需要導入模塊: from Biskit import Executor [as 別名]
# 或者: from Biskit.Executor import finish [as 別名]
 def finish( self ):
     """
     Overrides Executor method
     """
     Executor.finish( self )
     self.result = self.parse_whatif( )
開發者ID:graik,項目名稱:biskit,代碼行數:8,代碼來源:WhatIf.py

示例6: finish

# 需要導入模塊: from Biskit import Executor [as 別名]
# 或者: from Biskit.Executor import finish [as 別名]
 def finish( self ):
     """
     Overrides Executor method
     """
     Executor.finish( self )
     self.result = self.filterBlastHit( )
開發者ID:ostrokach,項目名稱:biskit,代碼行數:8,代碼來源:Blast2Seq.py

示例7: finish

# 需要導入模塊: from Biskit import Executor [as 別名]
# 或者: from Biskit.Executor import finish [as 別名]
 def finish( self ):
     """
     Overrides Executor method
     """
     Executor.finish( self )
     self.result = self.parse_tmalign( self.output )
開發者ID:ostrokach,項目名稱:biskit,代碼行數:8,代碼來源:tmalign.py

示例8: finish

# 需要導入模塊: from Biskit import Executor [as 別名]
# 或者: from Biskit.Executor import finish [as 別名]
 def finish( self ):
     """
     Overrides Executor method
     """
     Executor.finish( self )
     self.result = self.parseOutput()
開發者ID:ostrokach,項目名稱:biskit,代碼行數:8,代碼來源:delphi.py


注:本文中的Biskit.Executor.finish方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。