diff options
Diffstat (limited to 'examples/evol/1_freeratio.py')
-rw-r--r-- | examples/evol/1_freeratio.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/evol/1_freeratio.py b/examples/evol/1_freeratio.py index f1f345e..f00892d 100644 --- a/examples/evol/1_freeratio.py +++ b/examples/evol/1_freeratio.py @@ -23,13 +23,13 @@ tree = EvolTree ("data/S_example/measuring_S_tree.nw") print (tree) -input ('\n tree loaded, hit some key.\n') +eval(input ('\n tree loaded, hit some key.\n')) print ('Now, it is necessary to link this tree to an alignment:') tree.link_to_alignment ('data/S_example/alignment_S_measuring_evol.fasta') -input ('\n alignment loaded, hit some key to see.\n') +eval(input ('\n alignment loaded, hit some key to see.\n')) tree.show() @@ -38,28 +38,28 @@ we will run free-ratio model that is one of models available through function run_model: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ''') -print (tree.run_model.__doc__ +'\n+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++') +print(tree.run_model.__doc__ +'\n+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++') tree.run_model ('fb.example') -input ('free-ratio model runned, all results are store in a Model object.') +eval(input ('free-ratio model runned, all results are store in a Model object.')) fb = tree.get_evol_model('fb.example') print ('Have a look to the parameters used to run this model on codeml: ') -print (fb.get_ctrl_string()) -input ('hit some key...') +print(fb.get_ctrl_string()) +eval(input ('hit some key...')) print ('Have a look to run message of codeml: ') -print (fb.run) -input ('hit some key...') +print(fb.run) +eval(input ('hit some key...')) print ('Have a look to log likelihood value of this model, and number of parameters:') -print ('lnL: %s and np: %s' % (fb.lnL, fb.np)) -input ('hit some key...') +print('lnL: %s and np: %s' % (fb.lnL, fb.np)) +eval(input ('hit some key...')) -input ('finally have a look to two layouts available to display free-ratio:') +eval(input ('finally have a look to two layouts available to display free-ratio:')) tree.show() # have to import layou |