This directory contains the supplementary material for the paper, which applies the methods in the paper to a JAK-STAT pathway model.
Before running the script wihtin this directory, run the pre-requisite script pre-requisite.sh
to prepare the environment:
cd supplement
bash pre-requisite.sh
Since the experimental data used in this analysis contained varying time points for different experimental conditions, several modifications to the BioMASS package as well as the model files were made. The pre-requisite script will clone the original BioMASS repository and copy the modified files to the appropriate locations.
The modifications are documented below.
The modifications in this file were made in mehods _plot_experimental_data_with_error_bars
(lines 345, 362) and _plot_experimental_data_without_error_bars
(lines 397, 414), indicated with comments showing the changes made.
A single modification (in line 39) was made in the problem.py
file for each model.
To allow for the varying time points for each experimental condition, the set_data
and get_timepoint
methods were defined using dictionaries, unlike in the models used in the main text.
def set_data(self) -> None:
...
self.experiments[self.obs_names.index("IL13_cell")] = {
"IL13_4": [1.71, 2.08, 2.37, 2.37, 2.88, 3.03, 3.10, 3.24, 3.61, 3.79, 3.17],
"IL13_20": [4.59, 4.74, 5.61, 5.54, 6.64, 6.96, 6.49, 5.69, 6.82, 6.60, 5.69],
}...
def get_timepoint(self, obs_name: str) -> List[int]:
if obs_name in self.obs_names:
if obs_name == "RacSurf":
return {
"IL13_4": [0, 10, 20, 30, 60, 90, 120],
}...
This directory contains the biomass models used in the supplement.
Includes the model files for the KEGG JAK-STAT model. The Text2Model file used to generate the model can be found in KEGG_JAK-STAT.txt
.
Includes the manually-reproduced model from a previous study (Raia et al., 2011). The corresponding Text2Model file can be found in Raia2011_original.txt
.
Note that the original model was not fully reproduced due to the differences in how the original model and Text2Model represent each reaction. Furthermore, parameter estimation was not conducted for the original model.
Includes the model reconstructed from the LLM's output. The corresponding Text2Model file used to generate the model can be found in Raia2011_reconst.txt
.
This directory contains the LLM prompt used in the supplement.
The original Text2Model output used in the supplement was obtained through OpenAI's Playground interface on 2023-04-07.
The prompt used is documented in original_prompt.txt
, and the output is documented in original_completion.txt
. Furthermore, the parameter settings used in the Playground interface are documented in openai_api_prompt.py
as a script that can be run to reproduce the results through OpenAI's API, however this was not the method used in the supplement.
This script can be used to generate the network visualizations and original Text2Model file for the KEGG JAK-STAT model. The script will create and output the results under out/
.