当前位置: 首页>>代码示例>>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;未经允许,请勿转载。