You are here

No read_resfile routine?

4 posts / 0 new
Last post
No read_resfile routine?


I've been trying to run the Packing and Design tutorial with a view to writing my own Packing/Design routine. I'm following the pdf posted on the PyRosetta website and the errata page. There doesn't appear to be a read_resfile routine for either standard_packer_task (as per the original instructions) or create_packer_task (listed in the errata).

I get "AttributeError: 'PackerTask_' object has no attribute 'read_resfile'"

I'm running the latest Windows native build PyRosetta build. Any help gratefully appreciated.

Many thanks,


Post Situation: 
Mon, 2011-11-28 08:45

The function got moved. Try the python equivalent of core::pack::task::parse_resfile(pose, task, filename). (Without a filename, it will use the option system instead; you can also feed a raw resfile string instead of a filename with parse_resfile_string).

Mon, 2011-11-28 10:54

So in PyRosetta you will need to:

import rosetta.core.pack.task
rosetta.core.pack.task.parse_resfile(pose, task, filename)

Mon, 2011-11-28 11:34

Brilliant, thank you so much for your help.

Tue, 2011-11-29 01:39