No read_resfile routine?

Member Site Forums PyRosetta PyRosetta – Scripts No read_resfile routine?

Viewing 3 reply threads
  • Author
    • #1104


        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,


      • #6337

          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).

        • #6338

            So in PyRosetta you will need to:

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

          • #6342

              Brilliant, thank you so much for your help.

          Viewing 3 reply threads
          • You must be logged in to reply to this topic.