pydruglogics.model.ModelPredictions module
- class pydruglogics.model.ModelPredictions.ModelPredictions(boolean_models=None, perturbations=None, model_outputs=None, synergy_method='bliss', model_directory=None, attractor_tool=None, attractor_type=None)
Bases:
object
Initializes the ModelPredictions class. :param boolean_models: List of BooleanModel instances. :param perturbations: List of perturbations to apply. :param model_outputs: Model outputs for evaluating the predictions. :param observed_synergy_scores: List of observed synergy scores. :param synergy_method: Method to check for synergy. Possible values: ‘hsa’ or ‘bliss’. :param model_directory: Directory from which to load models. (Needed only when there is no Evolution result.) :param attractor_tool: Tool to calculate attractors in models. (Needed only when loads models from directory.) :param attractor_type: Type to calculate attractors in models. (Needed only when loads models from directory.)
- get_prediction_matrix()
- property predicted_synergy_scores
- run_simulations(parallel=True, cores=4)
Runs simulations on the Boolean Models with the perturbations, either in parallel or serially. :param parallel: Whether to run the simulations in parallel By default, True. :param cores: The number of CPU cores to use for parallel execution By default, 4. :return: None
- save_to_file_predictions(base_folder='./results/predictions')