I am trying to extract individual chains from a pdb file using the edPDB module. In python I load the module then:
>>> edPDB.xpdb.write_pdb(structure='1ES7.pdb',filename='1ES7_B2.pdb', chain='B')
to which I get the following error:
edPDB.write_pdb: INFO Setting the chain id for ALL atoms to 'B' Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.6/dist-packages/GromacsWrapper-0.1.15_dev-py2.6.egg/edPDB/xpdb.py", line 194, in write_pdb for c in structure.get_chains(): AttributeError: 'str' object has no attribute 'get_chains'
Anyone else have this problem? Is there another way to do this using Python?