Rosettasurface in Pyrosetta 4

Member Site Forums PyRosetta PyRosetta – Applications Rosettasurface in Pyrosetta 4

  • This topic has 1 reply, 2 voices, and was last updated 3 years ago by Anonymous.
Viewing 1 reply thread
  • Author
    Posts
    • #3874
      Anonymous

        Greetings,

            I would like to dock a small protein on a metal surface. It may be similar simulations which has done by Jeff Gray’s group. But I found the code in surface_docking was written for pyrosetta 2 based on python 2.x . I have tried to transform the script to python3.. However, unknown errors appeared all the time.

            Can anyone tell me how to use these code in Pyrosetta4 (python3) or provide any detailed tutorial for surface_docking in Pyrosetta4? 

        Thanks very much!

        Hao

      • #16069
        Anonymous

          Generally the biggest and most tricky to solve difference is the imports. Unfortunately, to not have overly long variables, most scripts abuse the star import and as a result one cannot tell where anything came from. But generally one can see the traceback of a function not found and search the documentation for that and get its full path. The major issue is from the fact that stuff in `pyrosetta.rosetta.core` was in a different module `rosetta`. So in a pinch you could make the namespace pollution from the star import worse, by doing `from pyrosetta import *`, `from pyrosetta.rosetta import *` and , `from pyrosetta.rosetta.core import *`.

          Then for the generic issues like print as a statement etc. the python tool 2to3 will likely fix them —bar for the usual things like file -> io.IOBase and cmp in operations (?) etc.

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.