Relaxation with PyRosetta

Member Site Forums PyRosetta PyRosetta – Applications Relaxation with PyRosetta

Viewing 1 reply thread
  • Author
    Posts
    • #1834
      Anonymous

        Hi,

        I would like to relax pdb structures with PyRosetta. I use commands

        pose=pose_from_pdb(file_pdb)
        relax = ClassicRelax()
        relax.apply(pose)

        but I have received the information about memory protection violation. Why is it happen and how can I relax my structures?

        Problem solved !

      • #9821
        Anonymous

          There’s a number of settings one can apply to various Rosetta movers, and not all of them get default values. You have to manually set the defaults, otherwise you get various errors. (The reason you don’t get decent error messages is that in the C++ Rosetta, the interface to ClassicRelax always sets these values, so it’s not typically an issue.)

          In your case, you haven’t set the scorefunction to the ClassicRelax object, and it doesn’t assume a default. Either pass a scorefunction to the constructor, or use the .set_scorefxn() method to set the scorefunction.

        • #12367
          Anonymous

            Dear rmoretti and peony,

             

            I hope this message reaches you since your discussion is 3 years old. Could you please paste your final relaxtion script after you fixed it? how did you use the .set_scorefxn() or what did you change to make it work?

             

            Thank you

             

            AC

          • #12888
            Anonymous

              Dear rmoretti and peony,

               

              I hope this message reaches you since your discussion is 3 years old. Could you please paste your final relaxtion script after you fixed it? how did you use the .set_scorefxn() or what did you change to make it work?

               

              Thank you

               

              AC

            • #13409
              Anonymous

                Dear rmoretti and peony,

                 

                I hope this message reaches you since your discussion is 3 years old. Could you please paste your final relaxtion script after you fixed it? how did you use the .set_scorefxn() or what did you change to make it work?

                 

                Thank you

                 

                AC

              • #12368
                Anonymous

                  from rosetta import *
                  from pyrosetta import *
                  init()
                  rel = rosetta.protocols.relax.FastRelax()

                   

                  (Note that without setting a scorefunction, the current Rosetta default scorefunction will be used.  In terms of PyRosetta/Rosetta, this was Talaris2014 up until this week.  It has just changed to REF2015, which went through a lot of benchmarking before it was decided to be the default.  http://pubs.acs.org/doi/abs/10.1021/acs.jctc.7b00125)

                   

                  From there, you can change different settings.  Use ipython or the ipython notebook, or the PyRosetta documentation to change it.  

                  rel.set_scorefxn() or something similar. 

                  rel. then hitting tab will give you the list of functions. Doing a ? at the end of the function will give you the info on the function. 

                   

                  http://graylab.jhu.edu/pyrosetta/downloads/documentation/pyrosetta4_online_format/PyRosetta4_Workshop5_StructureRefinement.pdf

                  This page is usually a good API reference for PyRosetta, but it is currently down.  I’ve Emailed Sergey to fix it. http://graylab.jhu.edu/PyRosetta.documentation/

                • #12889
                  Anonymous

                    from rosetta import *
                    from pyrosetta import *
                    init()
                    rel = rosetta.protocols.relax.FastRelax()

                     

                    (Note that without setting a scorefunction, the current Rosetta default scorefunction will be used.  In terms of PyRosetta/Rosetta, this was Talaris2014 up until this week.  It has just changed to REF2015, which went through a lot of benchmarking before it was decided to be the default.  http://pubs.acs.org/doi/abs/10.1021/acs.jctc.7b00125)

                     

                    From there, you can change different settings.  Use ipython or the ipython notebook, or the PyRosetta documentation to change it.  

                    rel.set_scorefxn() or something similar. 

                    rel. then hitting tab will give you the list of functions. Doing a ? at the end of the function will give you the info on the function. 

                     

                    http://graylab.jhu.edu/pyrosetta/downloads/documentation/pyrosetta4_online_format/PyRosetta4_Workshop5_StructureRefinement.pdf

                    This page is usually a good API reference for PyRosetta, but it is currently down.  I’ve Emailed Sergey to fix it. http://graylab.jhu.edu/PyRosetta.documentation/

                  • #13410
                    Anonymous

                      from rosetta import *
                      from pyrosetta import *
                      init()
                      rel = rosetta.protocols.relax.FastRelax()

                       

                      (Note that without setting a scorefunction, the current Rosetta default scorefunction will be used.  In terms of PyRosetta/Rosetta, this was Talaris2014 up until this week.  It has just changed to REF2015, which went through a lot of benchmarking before it was decided to be the default.  http://pubs.acs.org/doi/abs/10.1021/acs.jctc.7b00125)

                       

                      From there, you can change different settings.  Use ipython or the ipython notebook, or the PyRosetta documentation to change it.  

                      rel.set_scorefxn() or something similar. 

                      rel. then hitting tab will give you the list of functions. Doing a ? at the end of the function will give you the info on the function. 

                       

                      http://graylab.jhu.edu/pyrosetta/downloads/documentation/pyrosetta4_online_format/PyRosetta4_Workshop5_StructureRefinement.pdf

                      This page is usually a good API reference for PyRosetta, but it is currently down.  I’ve Emailed Sergey to fix it. http://graylab.jhu.edu/PyRosetta.documentation/

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