Skip to content

Commit 9a2e7b0

Browse files
author
ig13470
committed
first reaction added
1 parent 101a65e commit 9a2e7b0

File tree

8 files changed

+10860
-221
lines changed

8 files changed

+10860
-221
lines changed

models/ecoli/processes/metabolism_new_pathway.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def initialize(self, sim, sim_data):
2929
# Get constants
3030
self.nAvogadro = sim_data.constants.n_avogadro.asNumber(1 / units.mmol)
3131
self.cellDensity = sim_data.constants.cell_density.asNumber(units.g / units.L)
32-
print(sim_data.process.metabolism_new_pathway.__dir__())
32+
3333
#check if there is a new metabolic pathway to be added
3434
if hasattr(sim_data.process.metabolism_new_pathway, 'molecule_names'):
3535
self.new_pathway = True

reconstruction/ecoli/dataclasses/process/metabolism_new_pathway.py

+100-218
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"id" "stoichiometry" "direction" "catalyzed_by" "forward_rate" "reverse_rate" "kcat" "km"
2-
"rxnvio1" {"OXYGEN-MOLECULE[CCO-CYTOSOL]": -1, "TRP[CCO-CYTOSOL]": -1, "CPD-11890[CCO-CYTOSOL]": 1, "HYDROGEN-PEROXIDE[CCO-CYTOSOL]": 1, "PROTON[CCO-CYTOSOL]": 1} "L2R" ["NG-VioA-MONOMER"] 3000000 0 3.38 31
2+
"rxnvio1" {"TRP[CCO-CYTOSOL]": -1, "OXYGEN-MOLECULE[CCO-CYTOSOL]": -1, "CPD-11890[CCO-CYTOSOL]": 1, "HYDROGEN-PEROXIDE[CCO-CYTOSOL]": 1, "PROTON[CCO-CYTOSOL]": 1} "L2R" ["NG-VioA-MONOMER"] 3000000 0 3.38 31

runscripts/fireworks/fw_queue.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def log_info(message):
340340
print(message)
341341

342342

343-
OUT_DIRECTORY = filepath.makedirs(filepath.ROOT_PATH, "out")
343+
OUT_DIRECTORY = filepath.makedirs("/user/work/ig13470/out/vioAE")
344344
CACHED_SIM_DATA_DIRECTORY = os.path.join(filepath.ROOT_PATH, "cached")
345345
SUBMISSION_TIME = filepath.timestamp()
346346

runscripts/fireworks/vioae.sh

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Author: Joshua Rees, [email protected]
2+
# Affiliation: Genome Design Group, Life Sciences, University of Bristol
3+
# Run Using: BlueCrystal Supercomputer and the PBS Queue System
4+
# Last Updated: 2019-12-10
5+
6+
# Experiment - Testing qadapter settings, and WildType analysis of single and multi-generation simulations
7+
# See https://github.com/CovertLab/WholeCellEcoliRelease/tree/master/runscripts/paper for other options
8+
# UPDATE - using scripts from https://github.com/CovertLab/WholeCellEcoliRelease/tree/master/runscripts/jenkins
9+
10+
## To Run
11+
# chmod u+x FireWorksBox_1.sh
12+
# ./FireWorksBox_1.sh
13+
14+
## Initialise the Database (is this really the only way to do this?)
15+
cd /user/home/ig13470/wcm_2023_vio/wcEcoli/wholecell/fireworks
16+
lpad -l my_launchpad.yaml reset
17+
18+
## Pre Simulation Requirements
19+
cd /user/home/ig13470/wcm_2023_vio/wcEcoli
20+
21+
##Compile Cython code
22+
make clean compile
23+
24+
# Set the $PYTHONPATH:
25+
export PYTHONPATH="/user/home/ig13470/wcm_2023_vio/wcEcoli"
26+
27+
## Create and Add FireWorks to the Launchpad
28+
cd /user/home/ig13470/wcm_2023_vio/wcEcoli/wholecell/fireworks/
29+
30+
# Set the $PYTHONPATH:
31+
# export PYTHONPATH="$PWD:$PYTHONPATH"
32+
# export PYTHONPATH=.
33+
34+
DESC="new_gene_expression" PLOTS="aaCounts" \
35+
VARIANT="new_gene_expression" FIRST_VARIANT_INDEX=2 LAST_VARIANT_INDEX=8 \
36+
CACHED_SIM_DATA=0 PARALLEL_PARCA=1 SEED=0 \
37+
SINGLE_DAUGHTERS=0 N_GENS=2 N_INIT_SIMS=1 \
38+
NEW_GENES="vioAE_meta" \
39+
LAUNCHPAD_FILE='/user/home/ig13470/wcm_2023_vio/wcEcoli/wholecell/fireworks/my_launchpad.yaml' \
40+
python /user/home/ig13470/wcm_2023_vio/wcEcoli/runscripts/fireworks/fw_queue.py
41+
42+
DESC="new_gene_expression" PLOTS="aaCounts" \
43+
VARIANT="new_gene_expression" FIRST_VARIANT_INDEX=2 LAST_VARIANT_INDEX=8 \
44+
CACHED_SIM_DATA=0 PARALLEL_PARCA=1 SEED=0 \
45+
SINGLE_DAUGHTERS=0 N_GENS=2 N_INIT_SIMS=1 \
46+
NEW_GENES="vioAE" \
47+
LAUNCHPAD_FILE='/user/home/ig13470/wcm_2023_vio/wcEcoli/wholecell/fireworks/my_launchpad.yaml' \
48+
python /user/home/ig13470/wcm_2023_vio/wcEcoli/runscripts/fireworks/fw_queue.py
49+
50+
## Launch Rockets to collect the FireWorks (created by fw_queue.py) from the Launchpad (MongoDB hosted on MLab via Heroku) and run them on the Queue (BlueCrystal)
51+
nohup qlaunch -r -l my_launchpad.yaml -w my_fworker.yaml -q my_qadapter.yaml rapidfire --nlaunches infinite --sleep 30 --maxjobs_queue 100

wholecell/fireworks/my_launchpad.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
logdir: '/user/home/ig13470/wcm_2023_vio/fw'
2+
authsource: admin
3+
host: mongodb+srv://ioana:[email protected]/?retryWrites=true&w=majority
4+
name: 'fireworks'
5+
ssl: True
6+
username: 'ioana'
7+
password: '3dHgK7Va72mCcoqP'
8+
port: 27017

wholecell/fireworks/my_qadapter.yaml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
logdir: /user/home/ig13470/wcm_2023_vio/fw/logs
2+
_fw_name: CommonAdapter
3+
_fw_q_type: SLURM
4+
rocket_launch: rlaunch -w /user/home/ig13470/wcm_2023_vio/wcEcoli/wholecell/fireworks/my_fworker.yaml -l /user/home/ig13470/wcm_2023_vio/wcEcoli/wholecell/fireworks/my_launchpad.yaml singleshot
5+
job_name: 'wcEcoli'
6+
walltime: '01:00:00'
7+
account: 'EMAT022602'
8+
mail_user: '[email protected]'
9+
mail_type: FAIL # Warning, this will generate a LOT of emails. I'd suggest setting up a filter, e.g. if you use Outlook select one and tag "Always move to Other"
10+
ntasks: 1
11+
nodes: 2
12+
#cpus_per_task: 1
13+
mem_per_cpu: 5G # You need to set a memory limit on BC4 or your job will be rejected. 4G is recommended in the model docs for running in Docker containers
14+
pre_rocket: null
15+
post_rocket: null
16+
17+
18+
19+
20+
21+
#logdir: /user/home/ig13470/fw/logs/qadapter
22+
#_fw_name: CommonAdapter
23+
#_fw_q_type: SLURM
24+
#rocket_launch: rlaunch -w /user/home/ig13470/wholecell3/wcEcoli/wholecell/fireworks/my_fworker.yaml -l /user/home/ig13470/wholecell3/wcEcoli/wholecell/fireworks/my_launchpad.yaml singleshot
25+
#queue: serial
26+
#account: null
27+
#job-name: 'wcecoli'
28+
#time: '06:00:00'
29+
#mem: 4500
30+
#mail_user: '[email protected]'
31+
#mail_type: ALL
32+
#ntasks: 1
33+
#cpus-per-task: 1
34+
35+
36+
37+
#SBATCH --nodes=$${nodes}
38+
##SBATCH --ntasks=$${ntasks}
39+
##SBATCH --ntasks-per-node=$${ntasks_per_node}
40+
##SBATCH --ntasks-per-core=$${ntasks_per_core}
41+
##SBATCH --core-spec=$${core_spec}
42+
##SBATCH --exclude=$${exclude_nodes}
43+
##SBATCH --cpus-per-task=$${cpus_per_task}
44+
##SBATCH --gres=$${gres}
45+
##SBATCH --qos=$${qos}
46+
##SBATCH --time=$${walltime}
47+
##SBATCH --time-min=$${time_min}
48+
##SBATCH --partition=$${queue}
49+
##SBATCH --account=$${account}
50+
##SBATCH --job-name=$${job_name}
51+
##SBATCH --license=$${license}
52+
##SBATCH --output=$${job_name}-%j.out
53+
##SBATCH --error=$${job_name}-%j.error
54+
##SBATCH --constraint=$${constraint}
55+
##SBATCH --signal=$${signal}
56+
##SBATCH --mem=$${mem}
57+
##SBATCH --mem-per-cpu=$${mem_per_cpu}
58+
##SBATCH --mail-type=$${mail_type}
59+
##SBATCH --mail-user=$${mail_user}
60+
#

0 commit comments

Comments
 (0)