localpdb/plugins/utils/MakeMultimer.py
def parseMolecule(self):
        '''
        extract all chains from a pdb file. Problem: HETATM records may or may
        not have a chain identifiers.
        we will look at handling those unnamed hetero atoms again later, once
        we get a better feel for the entire thing.
        '''
        atom_lines = []
        for line in self.pdb_lines:
            if line.startswith('ATOM') and self.testAtom(line):
                atom_lines.append(line)
            elif line.startswith('HETATM') and self.testHetatm(line):
                atom_lines.append(line)
        chains = {}
        for al in atom_lines:
            atom = Atom(al)
            chains.setdefault(atom.chain, []).append(atom)

        return chains

        extract all chains from a pdb file. Problem: HETATM records may or may
        not have a chain identifiers.
        we will look at handling those unnamed hetero atoms again later, once
        we get a better feel for the entire thing.
        
extract all chains from a pdb file. Problem: HETATM records may or may
not have a chain identifiers.
we will look at handling those unnamed hetero atoms again later, once
we get a better feel for the entire thing.
extract all chains from a pdb file . Problem : HETATM records may or may not have a chain identifiers . we will look at handling those unnamed hetero atoms again later once we get a better feel for the entire thing .
def parseMolecule(self):
        atom_lines = []
        for line in self.pdb_lines:
            if line.startswith('ATOM') and self.testAtom(line):
                atom_lines.append(line)
            elif line.startswith('HETATM') and self.testHetatm(line):
                atom_lines.append(line)
        chains = {}
        for al in atom_lines:
            atom = Atom(al)
            chains.setdefault(atom.chain, []).append(atom)
        return chains
def parseMolecule ( self ) : atom_lines = [ ] for line in self . pdb_lines : if line . startswith ( 'ATOM' ) and self . testAtom ( line ) : atom_lines . append ( line ) elif line . startswith ( 'HETATM' ) and self . testHetatm ( line ) : atom_lines . append ( line ) chains = { } for al in atom_lines : atom = Atom ( al ) chains . setdefault ( atom . chain , [ ] ) . append ( atom ) return chains
extract all chains from a pdb file.
extract all chains from a pdb file .
'''
        extract all chains from a pdb file. Problem: HETATM records may or may
        not have a chain identifiers.
        we will look at handling those unnamed hetero atoms again later, once
        we get a better feel for the entire thing.
        '''
self