pdb to cif #281
-
can gemmi library change a pdb file to a cif one?? I only saw in the gemmi documentation a change from cif to pdb with proteins like also this one (https://stackoverflow.com/questions/60168883/converting-segments-of-large-cif-files-to-smaller-pdb-files) whereas, I have a small crystal structure and want to change from the pdb to the cif. I have hundreds of pdb files; therefore I need to do it with python. I am really sorry if my question is trivial |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes, it can convert pdb file to mmCIF file. |
Beta Was this translation helpful? Give feedback.
Yes, it can convert pdb file to mmCIF file.
In Python, read the pdb file and write the obtained Structure to mmCIF file.
Or use
gemmi convert file.pdb file.cif
from the command line.