This example performs molecular Monte Carlo (MC) simulations on B-form double stranded deoxyribonucleic acids (B-DNA) to generate many structural configurations of a 60 base pair DNA structure.
The directionality for defining a flexible B-DNA region is based on the 5' to 3' direction of the first DNA segname in the flexible region definition.
Care must be taken to correctly include the matched DNA base pairs when defining a flexible region. The code may run when given misaligned input but the results will not be usable.
The starting structure must be a complete structure without missing residues. Atom and residue naming must be compatible with those defined in the CHARMM force field. See the pages on Structures and Force Fields and PDB Scan for further details.
Structures are generated by Markov Monte Carlo sampling of bend and twist moves of B-DNA represented using the bead-rod model based on the worm-like chain. Energetics of these moves are discussed further in this publication.
run name user defined folder name for storing the results.
reference pdb PDB file with atomic information and coordinates for the starting structure.
PSF Filename PSF file with topology information, must match the reference PDB file.
output file name Name of output DCD file containing the accepted structures.
number of trial attempts Number of Monte Carlo moves to attempt.
return to previous structure After this number of Monte Carlo moves fails to find an accepted configuration, re-load a previously accepted structure. If this value is set to 1, any failed step will backup to the previous configuration then attempt a new Monte Carlo move. For values greater than 1, a random structure form the previously accepted structures is selected. When the simulated system contains B-DNA, typically users should use a value of 1 to explore large variations from the starting configuration. If you think of the Monte Carlo simulation as a walk with the initial configuration as the starting location, a value of 1 would represent continuously walking away from that starting location, while a value greater than 1 would represent repeatedly returning to locations previously visited. The first option will typically be the quickest method for exploring configurations far from the starting structure, while the later option will more thoroughly explore configurations around the starting point.
temperature (K) Simulation temperature use for calculating energies from CHARMM force field parameters and calculating the screened Debye electrostatic energy.
number of flexible regions to vary An integer value indicating the number of regions to sample torsions. The value entered will dictate the number of further inputs to be created.
move direction This parameter applies to protein backbone, single-stranded nucleic acid (ssNA), and isopeptide bond torsions, but does not apply to B-DNA moves (the page on B-DNA directionality explains how to define the move direction for B-DNA). For protein and ssNA systems, forward and reverse respectively indicate that the moved residues will be those with a resid larger and smaller than those in the flexible region. For isopeptide systems, forward and reverse respectively indicate the moved residues will be those on the lysine and C-terminal sides of the isopeptide bond. The selected option must match the selection defined in the post region input.
flexible region Unique descriptor to define each flexible region (VMD like input).
post region Unique descriptor to define each flexible region (VMD like input).
max theta Maximum angle, in degrees, to sample in a single MC move. This input is specific to each region. The default values for protein and B-DNA are respectively 30 and 10 degrees. These values typically provide both a reasonable amount of both variation and acceptance.
overlap basis Select the basis atoms used in determining overlap. Available options are:
The notation used for defining flexible and post regions follows the notation used in VMD (this does not include shortcuts and generic options such as 'backbone', 'sidechain', 'nucleic', 'water', 'protein', etc). Every flexible B-DNA region should include the paired bases from 2 DNA segments. It is critically important to enter the correct residues for the DNA base pairing; misaligned input will produce nonsense results. As a general rule, do not include the first or last residue of a segment in a flexible region.

Illustration of the starting structure highlighting the flexible region in yellow (segname DNA1) and red (segname DNA2). The post region is highlighted using white (note that the directionality used to define the post region follows the 5' to 3' direction of the first DNA segment in the flexible region). The input definitions for this selection is as follows:
flexible region:
(segname DNA1 and resid >= 11 and resid <= 20) or (segname DNA2 and resid >= 101 and resid <= 110)
post region:
(segname DNA1 and resid > 20) or (segname DNA2 and resid < 101)


The output will indicate the location of the output files, acceptance and overlap statistics, and the file names of the inputs, log, and output DCD. Results are written to a new directory within the given "run name" as noted in the output. In addition, a plot of Rg versus structure number is shown (currently NOT implemented).
Several files are generated and saved to the <run name>/monte_carlo/ directory: a copy of the original input PDB and PSF files, the output DCD file containing accepted structures, a PDB and PSF file for each group, flexible region, and post region, the json inputs, and a log file. In this example, the dcd containing the generated structures accepted by the Monte Carlo algorithm is run_one/monte_carlo/c36_dsDNA60_one.dcd.
Illustration of the starting structure highlighting the first flexible region in yellow and the post region in white (this is the same as the previous example).
Illustration of the starting structure highlighting the second flexible region in red and the post region in orange.
Illustration of the starting structure highlighting both flexible regions. Notice that the second flexible region is contained in the post region of the first flexible region. The input definitions for this selection is as follows:
flexible regions in order:
(segname DNA1 and resid >= 11 and resid <= 20) or (segname DNA2 and resid >= 101 and resid <= 110)
(segname DNA1 and resid >= 31 and resid <= 45) or (segname DNA2 and resid >= 76 and resid <= 90)
post regions in order:
(segname DNA1 and resid > 20) or (segname DNA2 and resid < 101)
(segname DNA1 and resid > 45) or (segname DNA2 and resid < 76)


The output will indicate the location of the output files, acceptance and overlap statistics, and the file names of the inputs, log, and output DCD. Results are written to a new directory within the given "run name" as noted in the output. In addition, a plot of Rg versus structure number is shown (currently NOT implemented).
Several files are generated and saved to the <run name>/monte_carlo/ directory: a copy of the original input PDB and PSF files, the output DCD file containing accepted structures, a PDB and PSF file for each group, flexible region, and post region, the json inputs, and a log file. In this example, the dcd containing the generated structures accepted by the Monte Carlo algorithm is run_two/monte_carlo/c36_dsDNA60_two.dcd.

Illustration of the starting structure highlighting the flexible region in yellow with the post region shown in white. Notice that when designating a flexible near or at the end of a B-DNA segment, one should exclude the first (blue) and last (white) base pair. This prevent problems in the Monte Carlo sampling caused by the uniqueness of the end base pairs, which are only connected to one other base pair. The input definitions for this selection is as follows:
flexible regions:
(segname DNA1 and resid >= 2 and resid <= 59) or (segname DNA2 and resid >= 62 and resid <= 119)
post regions:
(segname DNA1 and resid > 59) or (segname DNA2 and resid < 62)


The output will indicate the location of the output files, acceptance and overlap statistics, and the file names of the inputs, log, and output DCD. Results are written to a new directory within the given "run name" as noted in the output. In addition, a plot of Rg versus structure number is shown (currently NOT implemented).
Several files are generated and saved to the <run name>/monte_carlo/ directory: a copy of the original input PDB and PSF files, the output DCD file containing accepted structures, a PDB and PSF file for each group, flexible region, and post region, the json inputs, and a log file. In this example, the dcd containing the generated structures accepted by the Monte Carlo algorithm is run_all/monte_carlo/c36_dsDNA60_all.dcd.
input files
output files
Notice that for all of these examples, the end DNA base pair and protein residue was excluded from the flexible region. This prevent problems in the Monte Carlo Sampling caused by the uniqueness of the end bases/residue which only have half the normal connections.
| Protein Backbone | B-DNA | Single Stranded Nucleic Acid Backbone | Isopeptide Bond | |
|---|---|---|---|---|
| HIV-1 Gag Matrix Protein | X | |||
| Full HIV-1 Gag Protein | X | |||
| Diubiquitin | X | |||
| rpoS mRNA | X | |||
| Linear strand of B-DNA | X | |||
| Nucleosome Core Particle | X | X | ||
| Tetranucleosome | X | X |