Code for simulations and analysis used in the manuscript "Proximal termination generates a transcriptional state that determines the rate of establishment of Polycomb silencing "
The file 20230117_autopathway_flc.cpp contains the source code for simulations of the stochastic model using the Gillespie SSA, written in C++.
The Gillespie SSA implementation uses a pseudo-random number generator from the GNU Scientific Library. The library needs to be linked during compilation.
The source code was compiled on a system running macOS 12.5, using the clang(LLVM) compiler using the following terminal command:
clang++ -Wall -pedantic 20230117_autopathway_flc.cpp -o 20230117_autopathway_flc -lgsl -lgslcblas
The resulting output file "20230117_autopathway_flc" can be executed using the following terminal command, including six user specified inputs separated by spaces:
./20230117_autopathway_flc <"Number of simulated trajectories"> <"Duration of individual simulation(number of cell cycles)"> <"FCA parameter"> <"FLD mediated demethylation probability per histone per proximal termination event"> <"Initial H3 state across locus (3/0/-1)"> <"Name tag for ouput files">
The code generates five output text files:
(1) parameter values
(2) type1a output showing fractional coverage of H3K27me3 and H3K4me1 at each timepoint, averaged over all simulated trajectories
(3) type1b output showing average frequency of proximal and distal termination events at hourly timepoints, averaged over all simulated trajectories
(4) type1c output showing switch-OFF times for all simulated trajectories ('0' indicates no switch-OFF)
(5) type1d output showing final (last time point) spatial profile of H3K27me3 and H3K4me1, averaged over all simulated trajectories. ('1' for presence, '0' for absence) at each H3 histone
The layout of the output files are as follows:
type1a
Column 1: Time
Column 2: H3K27me3 fractional coverage in nucleation region (averaged over all simulated trajectories)
Column 3: H3K27me3 fractional coverage over the whole locus (averaged over all simulated trajectories)
Column 4: H3K4me1 fractional coverage over the whole locus (averaged over all simulated trajectories)
type1b
Column 1: Time (intervals of 1h)
Column 2: Number of Proximal termination events in the previous 1h (averaged over all simulated trajectories)
Column 3: Number of Distal termination events in the previous 1h (averaged over all simulated trajectories)
type1c
Column 1: Switch-OFF times for all simulated trajectories
type1d
Column 1: Indices of H3 histones across the locus
Column 2: H3K27me3 status at the corresponding histones (averaged over all simulated trajectories), at the last timepoint of the simulation
Column 3: H3K4me1 status at the corresponding histones (averaged over all simulated trajectories), at the last timepoint of the simulation
Analysis code
The file analysis_280423.py contains the Python code used to analyse the simulation output
Model comparison to data
The comparison plots, such as those in Fig. 4 and Fig. 5 were made using Graphpad Prism version 10.1.0 for macOS
See main text and supplementary information for details of these comparisons.
Experimental datasets used in these comparisons are available on request
-
Notifications
You must be signed in to change notification settings - Fork 0
Code for simulations and analysis used in Menon et al., 2024, "Proximal termination generates a transcriptional state that determines the rate of establishment of Polycomb silencing "
License
gm1613/FLC_transcription_coupled_repression_model
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Code for simulations and analysis used in Menon et al., 2024, "Proximal termination generates a transcriptional state that determines the rate of establishment of Polycomb silencing "
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published