You are here

newbie question re pose syntax

3 posts / 0 new
Last post
newbie question re pose syntax
#1

Hello :

I am learning the basics of pyrosetta from this tutorial 

https://graylab.jhu.edu/pyrosetta/downloads/documentation/PyRosetta_Manual.pdf

but when I enter the code verbatim I get an error.

is  something wrong with the syntax they give?  trying to do this:

 

2.1 Exploring the Pose object To load a PDB file you have to first create an empty pose object, and then assign a PDB structure to that pose: >>my_pose = Pose() >>pose_from_pdb( my_pose, “test.pdb” )

 

 

but i get this error:

 

 

In [3]: my_pose = Pose()                                                                 

In [4]: pose_from_pdb( my_pose, "coords.pdb" )                                           
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-4-80299edb3231> in <module>
----> 1 pose_from_pdb( my_pose, "coords.pdb" )

TypeError: pose_from_pdb() takes 1 positional argument but 2 were given

 

Have I not set up python or pyrosetta correctly?

 

thank you!  - Amy

 

 

 

 

Category: 
Post Situation: 
Mon, 2019-04-15 12:50
Amy F

Hi, 

 

Yes, this has indeed changed.  The version of docs you showed is a very very old version, did google pull it up? I would use the tutorials as they are much more up-to-date.

http://www.pyrosetta.org/tutorials

 

Mon, 2019-04-15 14:21
jadolfbr

thank you!

Tue, 2019-04-16 06:29
Amy F