You are here

How to set options under PyRosetta

2 posts / 0 new
Last post
How to set options under PyRosetta
#1

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: 
Thu, 2011-01-06 18:11
lennylv

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

Sat, 2011-01-15 18:33
Sergey