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
Post Situation:
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
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(['a', 'b']))
print rosetta.core.get_file_vector_option('in:file:s')