is there any possibility to create a pose from a pdb style string in pyrosetta?
from the “PyMOLPyrosettaServer.py” script I can see that pymol can be made to listen for a pdb string sent from pyrosetta. i would like to go in the other direction directly passing a pdb string to pyrosetta in order to generate a pose. is this possible? and if so what is the necessary code for this?
i know that one can generate a pose from a pdb file but i would like to skip this step in order to save the time it costs to read/write from/to disk.
It’s possible but there’s no single method to call to get it that I am aware of. In C++, look at the file src/core/import_pose/import_pose.cc, around line 196. This code has just read a file in above it (utility::slurp) and then hands the file contents (a PDB string as you request) off to a function createFileData, then a function build_pose from that FileData. I guess you can work on the python from there?