def getCodeChain(pdbCode, chain): fileName = grab_pdb.getCode(pdbCode) pdbD = pdb.pdbData(fileName) newPdbD = pdbD.getOneChain(chain) newPdbD.write(pdbCode + "." + chain + ".pdb")
def copyCode(pdbCode): fileName = grab_pdb.getCode(pdbCode) pdbD = pdb.pdbData(fileName) pdbD.write(pdbCode + ".-.pdb")