How to set options under PyRosetta

Member Site Forums PyRosetta PyRosetta – General How to set options under PyRosetta

Viewing 1 reply thread
  • Author
    Posts
    • #734
      Anonymous

        Hi there,

        How to set option values under PyRosetta? for example, hwo can I set such option “-holes:dalphaball /path/to/exec…” for PyRosetta. Usually such setting could be pass to Rosetta in command args.

        thanks,
        Lenny

      • #4833
        Anonymous

          PyRosetta use it’s own option set/get functions:
          void rosetta.core.set_string_option( OPTION_NAME, VALUE )
          VALUE rosetta.core.get_string_option( OPTION_NAME )

          Here a few usage examples:
          import rosetta
          rosetta.init()

          rosetta.core.set_string_option(‘in:file:frag3’, ‘my_frag3_file’)
          print rosetta.core.get_string_option(‘in:file:frag3’)

          rosetta.core.set_file_vector_option(‘in:file:s’, rosetta.Vector1())
          print rosetta.core.get_file_vector_option(‘in:file:s’)

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