-
Notifications
You must be signed in to change notification settings - Fork 0
Python Functions
Kelvin Li edited this page May 19, 2014
·
18 revisions
Reverse complement via BioPython
clotho.run2("py_biorc", ["atcgc"])
Importing a test Python module in src/main/python/lib/hello.py
:
clotho.run2("py_greet", [])
Bill Cao's PCR predictor (please fill in a better example here)
clotho.run2("py_pcr", ["aaaaaaaaaaaa", "tttttttttttt", "aaaaaaaaaaaaa"])
Returns its own code via a clotho.get
call
clotho.run2("py_selfie", [])
Modifies itself via a clotho.set
call
clotho.run2("py_selfsetter", [])
Makes a clotho.run
call which fails, and the Python function catches the resulting ClothoError
clotho.run2("py_error_recover", [])
Die at various stages of execution (should expect a run error and a clotho.say message)
clotho.run2("py_die_early", [])
clotho.run2("py_die_run", [])
Simulates Python process crashing really hard (shows that Clotho will cleanup properly)
clotho.run2("py_die_abrupt", [])