diff --git a/rs_examples.py b/rs_examples.py index 1da79c2..eac63e9 100755 --- a/rs_examples.py +++ b/rs_examples.py @@ -475,8 +475,8 @@ def heat_shock_response(print_system=True,verify_rsc=True): r.add_reaction([("hsf",1)], [("hsp",1)], [("hsf3",1)]) r.add_reaction([("hsf",1),("hsp",1),("mfp",1)], [], [("hsf3",1)]) - r.add_reaction([("hsf3",1)], [("hsp",1),("hse",1)],[("hsf",1)]) - r.add_reaction([("hsp",1),("hsf3",1),("mfp",1)], [("hse",1)], [("hsf",1)]) + r.add_reaction([("hsf3",1)], [("hse",1),("hsp",1)],[("hsf",1)]) + r.add_reaction([("hsf3",1),("hsp",1),("mfp",1)], [("hse",1)], [("hsf",1)]) r.add_reaction([("hsf3",1),("hse",1)], [("hsp",1)], [("hsf3:hse",1)]) r.add_reaction([("hsp",1),("hsf3",1),("mfp",1),("hse",1)],[], [("hsf3:hse",1)]) r.add_reaction([("hse",1)], [("hsf3",1)], [("hse",1)]) @@ -487,8 +487,8 @@ def heat_shock_response(print_system=True,verify_rsc=True): r.add_reaction([("hsp:hsf",1),("temp",stress_temp)],[], [("hsf",1),("hsp",1)]) r.add_reaction([("hsp:hsf",1)], [("temp",stress_temp)],[("hsp:hsf",1)]) r.add_reaction([("hsp",1),("hsf3:hse",1)], [("mfp",1)], [("hse",1),("hsp:hsf",1)]) - r.add_reaction([("temp",stress_temp),("prot",1)], [], [("mfp",1),("prot",1)]) - r.add_reaction([("prot",1)], [("temp",stress_temp)],[("mfp",1),("prot",1)]) + r.add_reaction([("temp",stress_temp),("prot",1)], [], [("mfp",1),("prot",1)]) + r.add_reaction([("prot",1)], [("temp",stress_temp)], [("prot",1)]) r.add_reaction([("hsp",1),("mfp",1)], [], [("hsp:mfp",1)]) r.add_reaction([("mfp",1)], [("hsp",1)], [("mfp",1)]) r.add_reaction([("hsp:mfp",1)], [], [("hsp",1),("prot",1)]) @@ -504,7 +504,7 @@ def heat_shock_response(print_system=True,verify_rsc=True): c.add_state("1") # c.add_transition("0", [("prot",1), ("temp",35)], "1") c.add_transition("0", [("hsf",1),("prot",1),("hse",1),("temp",35)], "1") - c.add_transition("0", [("hse",1),("prot",1),("hsp:hsf",1),("temp",stress_temp)], "1") + #-> c.add_transition("0", [("hse",1),("prot",1),("hsp:hsf",1),("temp",stress_temp)], "1") # c.add_transition("0", [("hsp",1),("prot",1),("hsf3:hse",1),("mfp",1),("hsp:mfp",1),("temp",30)], "1") c.add_transition("1", [("cool",1)], "1") c.add_transition("1", [("heat",1)], "1") @@ -516,15 +516,15 @@ def heat_shock_response(print_system=True,verify_rsc=True): if print_system: rc.show() - prop_req = [("hsp",1),("prot",1),("hsf3:hse",1),("mfp",1),("hsp:mfp",1),("temp",30)] - prop_block = [("temp",stress_temp)] - prop = (prop_req,prop_block) - rs_prop = (state_translate_rsc2rs(prop_req),state_translate_rsc2rs(prop_block)) + # prop_req = [("hsp:hsf",1),("hse",1),("prot",1)] + # prop_block = [("temp",stress_temp)] + prop_req = [ ("mfp",1) ] + prop_block = [ ] + prop = (prop_req,prop_block) + rs_prop = (state_translate_rsc2rs(prop_req),state_translate_rsc2rs(prop_block)) if verify_rsc: smt_rsc = SmtCheckerRSC(rc) - # prop = ([("mfp",1)],[("temp",21)]) # no stress - #prop = ([("temp",36)],[]) # no stress smt_rsc.check_reachability(prop,max_level=40) else: orc = rc.get_ordinary_reaction_system_with_automaton() diff --git a/rssmt.py b/rssmt.py index c74bad6..37004ec 100755 --- a/rssmt.py +++ b/rssmt.py @@ -29,9 +29,8 @@ rsmc_banner = """ def process(): # rs_examples.run_counter_exp() - # rs_examples.chain_reaction(print_system=True) - # rs_examples.blood_glucose_regulation() - rs_examples.heat_shock_response() + rs_examples.chain_reaction(print_system=True) + # rs_examples.heat_shock_response() ################################################################## diff --git a/run_3d.sh b/run_3d.sh index b3f9fbe..1633d34 100755 --- a/run_3d.sh +++ b/run_3d.sh @@ -6,12 +6,12 @@ -for i in `seq 1 20` +for i in `seq 1 2 20` do #./rssmt.py $i | tee "out/result_$i.out" #echo "$i: $(tail -1 out/result_$i.out)" >> out/all.out echo $i - for j in `seq 1 20` + for j in `seq 1 2 20` do echo $i $j for t in 1 0