41
MD simulations / Re: generate DNA pdb file for Gromacs
« Last post by xiangjun on September 13, 2025, 11:04:50 am »Quote
The DNA pdb file generated by X3DNA has only A T C G, but no terminal base, e.g. A3, A5, T3, T5, ...
How to use X3DNA generate a pdb file with terminal bases?
DSSR has superseded X3DNA, and it can be used to generate a PDB file with terminal bases as you requested. See the following example:
Code: [Select]
# Generate a regular B-DNA model with sequence (AAAAAATTTTTT; shortened as A6T6)
x3dna-dssr fiber --b-dna --seq=A6T6 -o=A6T6-BDNA.pdb
# Mutate residue name 5'-A on chains A and B from the detault 'A' to 'A5':
x3dna-dssr mutate --entry='num=1 to=A5' -i=A6T6-BDNA.pdb -o=A5-both.pdbA portion of the output PDB file A5-both.pdb is shown below:
REMARK PDB mutated using DSSR
REMARK DSSR mutate: A.A1 to A5
ATOM 1 P A5 A 1 -0.356 9.218 1.848 1.00 0.00 P
ATOM 2 OP1 A5 A 1 -0.311 10.489 2.605 1.00 0.00 O
ATOM 3 OP2 A5 A 1 -1.334 9.156 0.740 1.00 0.00 O
ATOM 4 O5' A5 A 1 1.105 8.869 1.295 1.00 0.00 O
ATOM 5 C5' A5 A 1 2.021 8.156 2.146 1.00 0.00 C
ATOM 6 C4' A5 A 1 2.726 7.072 1.355 1.00 0.00 C
ATOM 7 O4' A5 A 1 1.986 5.817 1.352 1.00 0.00 O
ATOM 8 C3' A5 A 1 2.952 7.370 -0.127 1.00 0.00 C
ATOM 9 O3' A5 A 1 4.210 6.832 -0.518 1.00 0.00 O
ATOM 10 C2' A5 A 1 1.848 6.598 -0.850 1.00 0.00 C
ATOM 11 C1' A5 A 1 1.913 5.344 0.016 1.00 0.00 C
ATOM 12 N9 A5 A 1 0.717 4.478 -0.101 1.00 0.00 N
ATOM 13 C8 A5 A 1 -0.592 4.850 -0.293 1.00 0.00 C
ATOM 14 N7 A5 A 1 -1.424 3.839 -0.355 1.00 0.00 N
ATOM 15 C5 A5 A 1 -0.609 2.726 -0.193 1.00 0.00 C
ATOM 16 C6 A5 A 1 -0.886 1.349 -0.163 1.00 0.00 C
ATOM 17 N6 A5 A 1 -2.111 0.835 -0.301 1.00 0.00 N
ATOM 18 N1 A5 A 1 0.154 0.505 0.016 1.00 0.00 N
ATOM 19 C2 A5 A 1 1.380 1.020 0.154 1.00 0.00 C
ATOM 20 N3 A5 A 1 1.767 2.294 0.144 1.00 0.00 N
ATOM 21 C4 A5 A 1 0.712 3.105 -0.035 1.00 0.00 C
ATOM 22 P A A 2 5.130 7.667 -1.527 1.00 0.00 P
ATOM 23 OP1 A A 2 5.914 8.669 -0.770 1.00 0.00 O
ATOM 24 OP2 A A 2 4.303 8.192 -2.635 1.00 0.00 O
Quote
In addition to the above question, is it possible to generate a pdb file that is fully compatible with Gromacs. Now there are some incompatible things. Such as Gromacs using DA, DT, DC, DG, rather than A, T, C, G.
I'm not sure the exact requirements for compatibility with Gromacs, but you can easily mutate 'A' to 'DA' etc using DSSR mutate subcommand as shown below:
Code: [Select]
x3dna-dssr mutate --entry='A:DA;T:DT' -i=A6T6-BDNA.pdb -o=DA-DT.pdbSee the DSSR User manual for more details.

Recent Posts