No read_resfile routine?

Member Site Forums PyRosetta PyRosetta – Scripts No read_resfile routine?

  • This topic has 3 replies, 3 voices, and was last updated 13 years ago by Anonymous.
Viewing 3 reply threads
  • Author
    Posts
    • #1104
      Anonymous

        Hello,

        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,

        Gail

      • #6337
        Anonymous

          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
          Anonymous

            So in PyRosetta you will need to:

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

          • #6342
            Anonymous

              Brilliant, thank you so much for your help.

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