Пример #1
0
    def capNME( self, model, chain ):
        """
        Cap C-terminal of given chain.

        :param model: model
        :type  model: PDBMode
        :param chain: index of chain to be capped
        :type  chain: int        
        """
        cleaner = PDBCleaner( model, log=self.log, verbose=self.verbose )
        return cleaner.capNME( model, chain, breaks=True)
Пример #2
0
    def capNME( self, model, chain ):
        """
        Cap C-terminal of given chain.

        :param model: model
        :type  model: PDBMode
        :param chain: index of chain to be capped
        :type  chain: int        
        """
        cleaner = PDBCleaner( model, log=self.log, verbose=self.verbose )
        return cleaner.capNME( model, chain, breaks=True)
Пример #3
0
    def leapModel( self, hetatm=0, center=True ):
        """
        Get a clean PDBModel for input into leap.

        :param hetatm: keep HETATM records (default: 0)
        :type  hetatm: 1|0

        :return: model
        :rtype: PDBMod
        """
        m = self.m.clone()
        m.xplor2amber()

        cleaner = PDBCleaner( m, log=self.log, verbose=self.verbose )
        m = cleaner.process( keep_hetatoms=hetatm, amber=1 )

        m.renumberResidues( addChainId=1 )

        if center:
            self.centerModel( m )

        return m
Пример #4
0
    def leapModel( self, hetatm=0, center=True ):
        """
        Get a clean PDBModel for input into leap.

        :param hetatm: keep HETATM records (default: 0)
        :type  hetatm: 1|0

        :return: model
        :rtype: PDBMod
        """
        m = self.m.clone()
        m.xplor2amber()

        cleaner = PDBCleaner( m, log=self.log, verbose=self.verbose )
        m = cleaner.process( keep_hetatoms=hetatm, amber=1 )

        m.renumberResidues( addChainId=1 )

        if center:
            self.centerModel( m )

        return m
Пример #5
0
 def capTerminals(self):
     c = PDBCleaner(self.model, verbose=self.verbose)
     self.model = c.capTerminals(auto=self.autocap,
                                 capN=self.capN,
                                 capC=self.capC)