A physics-based simulation platform of supercoiling-mediated regulation of gene expression.
Project description
TORCphysics: A Physical Model of DNA-Topology-Controlled Gene Expression
TORCphysics is a physics-based simulation framework to model gene expression regulated through DNA supercoiling. It simulates interactions between DNA-binding proteins such as RNA polymerases and topoisomerases, capturing both physical DNA properties and dynamics.
Transcription is modeled based on the twin-supercoiling domain model, and the simulation supports supercoiling-sensitive and non-sensitive promoters, as well as multi-stage binding kinetics. Outputs include transcription rates and time-series data, enabling direct comparisons with experimental results or kinetics inference via parameter search.
📦 Installation
Latest version from PyPI:
pip install torcphysics
TORCphysics paper version for reproducing results:
pip install git+https://github.com/Victor-93/TORCphysics.git@TORCphysics_paper
🚀 Quick Start
TORCphysics can be used from the command line or directly in Python scripts.
Each simulation requires four interconnected input files:
| Input | Description |
|---|---|
circuit.csv |
General information of gene circuit, such as open (linear, .e.g., chromosomal) or closed (circular e.g., plasmid) structure,and the initial superhelical density.. (Required) |
environment.csv |
List of DNA-binding molecules (e.g., RNAPs, topoisomerases, NAPs), that can bind particular DNA sites such as promoters or protein binding sites. |
sites.csv |
List of binding sites on the DNA (e.g., promoters, protein binding sites). |
enzymes.csv |
Initial state: DNA-bound molecules present at the beginning of the simulation. |
⚠️ Inputs warnings
The only required input to run a simulation iscircuit.csv. However, ifsites.csvis not provided, molecules from the environment will not bind to the DNA. Ifenvironment.csvis missing, no molecules will bind to the sites. Lastly, ifenzymes.csvis not provided, the simulation will start without any pre-bound molecules, but it will still run without issues.
🖥️ Command-Line Usage
Run a simulation with command:
TORCphysics -c circuit.csv -s sites.csv -e enzymes.csv -n environment.csv -o out -f 3000 -t 1.0 -r
This will simulate:
3000frames with1.0second time step of the system described by the csv files.- Outputs will be saved as dataframes and log files with prefix "out".
For more information type:
TORCphysics --help
🐍 Scripting Usage
TORCphysics can also be used via Python scripting for custom simulations:
from TORCphysics import Circuit
my_circuit = Circuit(
circuit_filename="circuit.csv",
sites_filename="sites.csv",
enzymes_filename="enzymes.csv",
environment_filename="environment.csv",
output_prefix="out",
frames=3000,
series=True,
continuation=False,
dt=1.0
)
my_circuit.print_general_information()
my_circuit.run()
📚 Examples
Example files and Jupyter notebooks are available in the Examples/ directory:
Example_1.ipynb— Single gene simulations and analysis.Example_2.ipynb— Multiple simulations with statistical analysis.Example_3.ipynb— Defining custom enzyme/site models using built-in models.
⚙️ Algorithms
Detailed documentation and algorithmic explanations coming soon on the Wiki
📖 Citation
If you use TORCphysics in your research, please cite the paper below:
TORCphysics paper coming soon!
📬 Contact
Questions or collaborations?
📧 V.VelascoBerrelleza@sheffield.ac.uk
🔓 License
This project is licensed under the GNU General Public License v3.0 (GPLv3).
See the LICENSE file for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file torcphysics-0.0.2.tar.gz.
File metadata
- Download URL: torcphysics-0.0.2.tar.gz
- Upload date:
- Size: 9.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.10.12 Linux/6.8.0-58-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b797274904c2e807ea56ebbbba05cc89754965fe40896dbc382b6cd734eecee9
|
|
| MD5 |
04b4582b9205e9ed7e930a7006817f75
|
|
| BLAKE2b-256 |
6b6cae230ca17e00b50dd825e1d86eb0486a6a610f43f12f92754bbfe3cc0e89
|
File details
Details for the file torcphysics-0.0.2-py3-none-any.whl.
File metadata
- Download URL: torcphysics-0.0.2-py3-none-any.whl
- Upload date:
- Size: 9.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.10.12 Linux/6.8.0-58-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0e6ee7f47bc5d09cf735a6cf276de1439c7cd3d9ae698d971241e6ddc9f05a8
|
|
| MD5 |
5f609440aa2eb886af6e10b0df963d7e
|
|
| BLAKE2b-256 |
c6deaafa359f993a120c671d0a4c58bec525780de8eb4e7501e0b60af9407351
|