@@ -18,7 +18,7 @@ def create_model(args):
1818
1919 with open (args .indra_statements , 'rb' ) as f :
2020 export_to_ISI (add_conditional_probabilities (construct_CAG_skeleton (
21- ltake (5 , filter (isSimulable , pickle .load (f ))))), args .model_dir )
21+ ltake (args . n_statements , filter (isSimulable , pickle .load (f ))))), args .model_dir )
2222
2323
2424def execute_model (args ):
@@ -75,14 +75,17 @@ def add_arg(arg: str, help: str, type: Any, default: Any) -> None:
7575 action = "store_true" )
7676
7777 add_arg ('indra_statements' , 'Pickle file containing INDRA statements' , str ,
78- Path (__file__ ).parents [0 ]/ 'data' / 'eval_indra_assembled .pkl' )
78+ Path (__file__ ).parents [0 ]/ 'data' / 'sample_indra_statements .pkl' )
7979
8080 parser .add_argument ('--execute_model' , help = 'Execute DBN and sample time '
8181 'evolution sequences' , action = "store_true" )
8282
8383 add_arg ('dt' , 'Time step size' , partial (positive_real , 'dt' ), 1.0 )
8484
85- add_arg ('steps' , "Number of time stepsto take" ,
85+ add_arg ('n_statements' , 'Number of INDRA statements to take from the'
86+ 'pickled object containing them' , partial (positive_int , 'n_statements' ), 5 )
87+
88+ add_arg ('steps' , "Number of time steps to take" ,
8689 partial (positive_int , 'steps' ), 5 )
8790
8891 add_arg ('samples' , "Number of sequences to sample" ,
0 commit comments