This app works on DNA only (with the K⁺/Na⁺ of G-quadruplex channels). To map and backmap a complex with proteins, run the ηθDNA scripts in a terminal (Command line tab), with AMBER and SIRAH. AA = all-atom.
AA structure
Paste a PDB instead
DNA chains (DA/DC/DG/DT) are mapped; water and crystal ions are dropped, except
the K⁺/Na⁺ in a G-quadruplex channel. Protein chains are not mapped: complexes are built with
build_dna_protein.py in a terminal.
Examples
G-quadruplex channel
Cations in the input channel (crystal K⁺/Na⁺) are kept at their positions and nothing else is added.
Build options (for the command and the package)
Coarse-grained structure
Strands
Then, on your computer
The topology needs tleap and SIRAH: the package holds the CG PDB and a build.sh that runs
python build_dna.py system/system_cg.pdb --cg-input -o system/system bash system/run_md.sh system
ηθDNA is a coarse-grained (CG) DNA force field with near-atomic resolution and explicit
electrostatics, compatible with the SIRAH
force field and the AMBER engine
(pmemd.cuda).
- Backbone. The backbone conformational energy is a 2D correction map (CMAP) fitted to the experimental η–θ map of DNA, mined from 3,862 X-ray structures of naked DNA and protein–DNA complexes at ≤ 2.5 Å.
- Glycosidic torsion. χ is refitted per base against PDB-mined populations.
- Base pairing. Specific Lennard-Jones off-diagonal terms for Watson–Crick, Hoogsteen and sugar-edge contacts.
Together they reproduce canonical and non-canonical motifs: A/B-DNA, Z-DNA, G-quadruplexes, Holliday junctions, hairpins, nucleosomal and circular DNA. Water and ions are SIRAH's (WT4, NaW, KW, ClW), and proteins can be added with SIRAH's protein model.
The name comes from the two pseudo-torsions the all-atom backbone is contracted to (Duarte & Pyle, 1998), which play the role of φ/ψ for proteins:
- η: C4′(i−1)–P(i)–C4′(i)–P(i+1)
- θ: P(i)–C4′(i)–P(i+1)–C4′(i+1)
Beads
Each nucleotide keeps its phosphorus, its C4′ and the heavy atoms of the base that carry its pairing
and stacking: they keep their positions, and the bead takes the atom's name with the base letter.
Charges are those of the CG library (params/dna_vf.lib); every nucleotide carries −1 on its P bead.
Residue names
DGX DAX DTX DCX | internal nucleotide |
GX5 AX5 TX5 CX5 | 5′ end of a strand (no phosphate) |
GX3 AX3 TX3 CX3 | 3′ end of a strand |
DG1 DA1 DT1 DC1 | "repeat" variant: the 2nd, 4th… of a run of identical internal bases. Its atom types differ,
so that AMBER can tell apart the η and θ torsions of the run (params/repeat.lib). |
KW4 NW4 | K⁺ and Na⁺ in a G-quadruplex channel (bare-ion radii towards the channel beads) |
Force field (ηθDNA 1.0)
Version 1.0 is the model developed as v18 (v18T29 + 3pB + KW4/NW4). On top of the tleap topology, the build applies, in this order:
- CMAP η/θ per base, and CMAP φ/χ per base; the proper torsions on the central P–K and K–N bonds are set to zero.
- Junction angles K–N–base, N–K–P and K–P–K at k = 20.
- Guanine: P–K–N / N–K–P(i+1) angles and the C4′–N9–N3 / C4′–N9–N7 angles of its glycosidic junction (“kn5”).
- C4′ chirality improper P(i)–N–K–P(i+1).
- Z typing, from the input geometry: a syn G with a Z backbone, and the C next to it, get the Z values of their junction angles and the Z-specific η/θ grids.
- “3pB” torsions base(i)–N(i)–K(i)–P(i+1), except on Z-typed nucleotides.
The water is SIRAH's WT4, with NaCl 0.15 M on top of neutralization by default; a G-quadruplex always gets channel cations. Production runs carry a flat-bottom restraint on the Watson–Crick H-bonds of the terminal base pairs.
Backmapping
The CG beads give the base atoms, C4′ and P of every nucleotide. The rest of the sugar and backbone is
placed by internal coordinates (NeRF) from a template. Each nucleotide is built with every template and keeps
the one that best fits the beads it does not copy. G-quadruplex channel cations come back as K⁺/Na⁺; water and
bulk ions are not reconstructed. In a terminal, backmap_dna.py also rebuilds SIRAH proteins with
SIRAH's own recipe (this app skips them).
References
- da Rosa G, Grille L, Dans PD. J. Chem. Inf. Model. (2024): the experimental η–θ map of DNA and its catalogue of conformational basins, which ηθDNA is fitted to reproduce.
- Grille L et al. RNA (2023): the η–θ map of RNA revisited.
- Duarte CM, Pyle AM. Stepping through an RNA structure: a novel approach to conformational analysis. J. Mol. Biol. (1998).
- SIRAH: Dans PD et al. J. Chem. Theory Comput. (2010) for DNA; Darré L et al. J. Chem. Theory Comput. (2010) for WT4 water.
Authors of ηθDNA: Gabriela da Rosa, Leandro Grille and Pablo D. Dans (Dans Lab, CENUR Litoral Norte, Universidad de la República, and Institut Pasteur de Montevideo), with Adrián Roitberg (University of Florida).
The same code runs from a terminal, with the steps that need AmberTools and SIRAH (the topology, the simulation, the hydrogens of a backmapped trajectory) and without the browser's limits. Download the tools, or only the ηθDNA 1.0 parameters for a pipeline of your own.
Loading…
Install
unzip etathetadna-tools.zip && cd etathetadna-tools python -m venv .venv && .venv/bin/pip install -r requirements.txt # numpy, parmed, pdb2pqr export SIRAH_HOME=/path/to/sirah # SIRAH (www.sirahff.com), not bundled # AmberTools on PATH: tleap and cpptraj to build and backmap, sander for the backmap minimization, # pmemd / pmemd.cuda to run the simulations (run_md.sh) .venv/bin/pip install pytest && SIRAH_HOME=... .venv/bin/python -m pytest tests # optional check
| Python 3.8 or later with NumPy and ParmEd | every tool |
| AMBERTools | tleap (build, hydrogens), cpptraj (frames of a trajectory), sander (backmap minimization); pmemd or pmemd.cuda for the simulations |
SIRAH (--sirah-dir or SIRAH_HOME) | build_dna.py and build_dna_protein.py: water, ions and, for complexes, the protein |
| pdb2pqr | build_dna_protein.py only (protonation states of the protein) |
Quick start
python build_dna.py examples/1bna.pdb -o out/1bna/1bna # map + topology + decks + run_md.sh bash out/1bna/run_md.sh 1bna # EM -> EQ -> 10 x 100 ns, resume-safe python backmap_dna.py out/1bna/1bna.prmtop out/1bna -o out/1bna_aa/1bna --n-frames 50 python build_dna.py examples/4ocb_CG.pdb --cg-input --salt 3.0 -o out/4ocb/4ocb # Z-DNA from a CG PDB python build_dna_protein.py complex.pdb -o out/complex/complex # DNA + SIRAH protein
One system per output directory: the deck names are fixed, and rebuilding into a directory removes the
decks and disang.rst the new build does not write.
This page runs the mapping and backmapping code of the ηθDNA tools in your browser (Python compiled to WebAssembly with Pyodide). Your files are read on your computer and never sent anywhere. The steps that need AmberTools or SIRAH are handed over as small packages to run on your computer.
| In the browser | DNA only: AA → CG mapping, G-quadruplex channel cations, heavy-atom backmapping (DNA and channel cations), reading AMBER trajectories |
| On your computer | the CG topology (tleap + SIRAH + the ηθDNA parameters), the simulation,
the hydrogens and minimization of a backmapped frame (tleap + sander), re-solvation, and everything with
proteins: build_dna_protein.py and backmap_dna.py |
Tutorial: from a crystal to a CG simulation and back
- In Map, press the 1BNA example, then Map to ηθDNA. The beads appear over the crystal; the strands, the net charge and any issue are listed under it.
- Download build package. On a computer with AmberTools and SIRAH, unzip it and run
bash 1bna/build.sh: it writes the topology, the AMBER decks andrun_md.sh. - Run the simulation with
bash 1bna/run_md.sh 1bna(it resumes where it stopped). - In Backmap, choose prmtop + coordinates and give it
1bna.prmtopandmd.nc. Pick how many frames, press Backmap, and download the AA PDB, or the package that adds the hydrogens.
Map: AA → CG
- Input: a PDB with DNA in
ATOMrecords (DA/DC/DG/DT). Each chain becomes a strand; a TER record also ends one. Modified nucleotides (HETATM, e.g. 5-bromo-dU) are not mapped and break the strand: rename them to the parent base first. - G-quadruplexes: tetrads are found by their Hoogsteen pairs; the channel gets one cation per site (between tetrads by default) unless the input already has K⁺/Na⁺ in it.
- Protein–DNA complexes: the app works on DNA only, and only the DNA of a complex would be mapped. Build them
with
build_dna_protein.pyin a terminal (pdb2pqr protonation and SIRAH'scgconv.plfor the protein).
Backmap: CG → AA
- CG PDB: from the Map tab, from
convert_dna.py, or frames written by cpptraj (oneMODELper frame). The links between residues are found as tleap makes them, within each TER segment. - prmtop + coordinates: the CG topology of the run and an AMBER NetCDF trajectory (
md.nc), a restart (.rst7/.inpcrd) or a PDB in the same atom order. This is the exact route ofbackmap_dna.py. - Output: one PDB with the heavy atoms of every frame (DNA and channel cations; SIRAH protein residues are
skipped,
backmap_dna.pyrebuilds them), and the template each nucleotide took. The hydrogenation package adds hydrogens and runs the same 150-step vacuum minimization asbackmap_dna.py, then writes one prmtop and one trajectory.
Command line
The tools, the ηθDNA 1.0 parameters and every option of build_dna.py, build_dna_protein.py,
backmap_dna.py and run_md.sh are in the Command line tab.
Limits of the web app
- Up to 100 frames per backmap run, and files that fit in the browser's memory (the trajectory is read frame by frame).
- DNA only: complexes with proteins are mapped and backmapped with the scripts, in a terminal.
- Backmapped frames have heavy atoms only, unminimized: they are a starting point for the hydrogenation package or for your own minimization.