can you please give me an advice how to convert .cif files into .pdb preferably using python?
Thanks in advance! Best, Balint Biro
Bioinformatics Stack Exchange is a question and answer site for researchers, developers, students, teachers, and end users interested in bioinformatics. It only takes a minute to sign up.
Sign up to join this communitycan you please give me an advice how to convert .cif files into .pdb preferably using python?
Thanks in advance! Best, Balint Biro
As @Michael said PyMOL can do this. PyMOL is not only an app, but also a python package —installed via conda not via the regular download (you can have both).
import pymol2
with pymol2.PyMOL() as pymol:
pymol.cmd.load(infile,'myprotein')
pymol.cmd.save(infile.replace('.cif', '.pdb'), selection='myprotein')
This runs the parallelisable instance, so you can have that context manager block running on how many threads or processes you fancy.
with
statement starts, thats why you have the error. You need a certain degree of coding proficiency.
$\endgroup$