This repository contains the code used for the paper:
"Symmetry and force response of cohesin loop extrusion are determined by diffusion of its motor and anchor domains"
This repository provides:
- four LAMMPS input scripts corresponding to the four simulation videos in the paper
- one LAMMPS data file for the initial simulation configuration
- custom LAMMPS source files required for the simulations
The simulations were developed for LAMMPS 22Jul2025 on Linux.
Main files in this repository include:
-
F0.005_600_604.data
Initial system configuration -
in.flow_328678_DD14p5_MD14p5.lam -
in.flow_328701_DD14p5_MD14p5.lam -
in.flow_328708_DD14p5_MD14p5.lam -
in.flow_329079_DD14p5_MD24p5.lam
Example LAMMPS input scripts used for the simulations -
compute_nearest_dna.cpp -
compute_nearest_dna.h -
pair_morse_dynamic_window.cpp -
pair_morse_dynamic_window.h
Custom LAMMPS source files required by the input scripts
- Linux system
- LAMMPS 22Jul2025
- C++ compiler
make- optional: MPI if you want to build the MPI version
Place the LAMMPS 22Jul2025 source archive in your local working directory and unpack it:
tar -xzf lammps-22Jul2025.tar.gzCopy all custom .cpp and .h files from this repository into the src directory of LAMMPS:
cp *.cpp *.h /your/local/path/lammps-22Jul2025/src/Replace /your/local/path/ with your local path.
Go to the LAMMPS source directory:
cd /your/local/path/lammps-22Jul2025/srcClean old build files:
rm -rf Obj_mpi Obj_serial
rm -f lmp_mpi lmp_serialEnable the required package:
make yes-moleculeBuild the serial executable:
make serial -j8Optionally, also build the MPI executable:
make mpi -j8Open any simulation subdirectory or use any input file in this repository.
For example, to run a simulation on a single CPU core:
/your/local/path/lammps-22Jul2025/src/lmp_serial -in in.flow_328678_DD14p5_MD14p5.lamTo save the output to a log file:
/your/local/path/lammps-22Jul2025/src/lmp_serial -in in.flow_328678_DD14p5_MD14p5.lam | tee run.log- Replace all example paths with your local paths.
- The custom pair style and compute must be compiled into LAMMPS before running the input scripts.
- For testing and reproduction, running on 1 CPU core is sufficient.
- Using 1 or 2 CPU cores is recommended for simple runs.
To reproduce the simulations:
- install LAMMPS 22Jul2025
- copy the custom source files into the LAMMPS
srcfolder - compile LAMMPS
- run one of the provided
in.*.lamscripts with the provided data file
For questions about the code or simulations, please contact the repository author.