Core
mdna.nucleic
¶
load(traj=None, frames=None, sequence=None, chainids=[0, 1], circular=None, filename=None, top=None, stride=None)
¶
Load DNA representation from either base step mean reference frames/spline frames or an MDtraj trajectory.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
traj |
object
|
MDtraj trajectory containing the DNA structure. If provided, the frames and sequence arguments are ignored. (default: None) |
None
|
frames |
array
|
Base step mean reference frames of shape (n_bp, n_timesteps, 4, 3) or (n_bp, 4, 3). If provided, the traj and sequence arguments are ignored. (default: None) |
None
|
sequence |
str
|
DNA sequence. If provided, the traj and frames arguments are ignored. (default: None) |
None
|
chainids |
list
|
Chain IDs of the DNA structure. (default: [0,1]) |
[0, 1]
|
circular |
bool
|
Flag indicating if the DNA structure is circular/closed. If not provided, it will be determined based on the input data. (default: None) |
None
|
filename |
str
|
The filename or filenames of the trajectory. If provided, the traj and frames arguments are ignored. (default: None) |
None
|
top |
str
|
The topology file of the trajectory. (default: None) |
None
|
stride |
int
|
The stride of the trajectory. (default: None) |
None
|
Returns:
Name | Type | Description |
---|---|---|
Nucleic |
object
|
DNA structure object. |
Notes
- The
traj
argument is prioritized over frames and sequence. - If the
filename_or_filenames
argument is provided, the other arguments are ignored, except for thetop
andstride
arguments andchainids
.
Example
Load a DNA structure from a trajectory