예제 #1
0
def getCodeChain(pdbCode, chain):
  fileName = grab_pdb.getCode(pdbCode)
  pdbD = pdb.pdbData(fileName)
  newPdbD = pdbD.getOneChain(chain)
  newPdbD.write(pdbCode + "." + chain + ".pdb")
예제 #2
0
def copyCode(pdbCode):
  fileName = grab_pdb.getCode(pdbCode)
  pdbD = pdb.pdbData(fileName)
  pdbD.write(pdbCode + ".-.pdb")