Skip to content

How to read a saved pdb instead of retrieving from rcsb #286

Answered by padix-key
ssunidhi asked this question in Q&A
Discussion options

You must be logged in to vote

Instead of pdbx.get_structure(pdbx.PDBxFile.read(rcsb.fetch("1JEY", "cif"))) you can use the structure.io.pdb.PDBFile class, e.g.:

pdb_file = pdb.PDBFile.read("path/to/your/file")
structure = pdb.get_structure(pdb_file, model=1)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by padix-key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants