File: load_functions.rst

package info (click to toggle)
mdtraj 1.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 79,324 kB
  • sloc: python: 25,217; ansic: 6,266; cpp: 5,685; xml: 1,252; makefile: 192
file content (65 lines) | stat: -rw-r--r-- 1,391 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.. _loading:

Trajectory Reference
====================

Loading molecular dynamics trajectories is easy with MDTraj. ::

    >>> import mdtraj as md
    >>> t = md.load('trajectory.pdb')

The function :func:`mdtraj.load` will automatically detect the appropriate
format based on the filename extension. The supported formats are all
listed below in the format-specific loaders. The return value of
:func:`mdtraj.load` is an :class:`mdtraj.Trajectory` object.

While :func:`mdtraj.load` will read an entire trajectory into memory, other
functions like :func:`mdtraj.iterload` and :func:`mdtraj.open` are
available for working with trajectories in chunks, without loading them
entirely into memory all at once.

Internal representation
-----------------------

.. currentmodule:: mdtraj
.. autosummary::
    :toctree: api/generated/

    Trajectory
    Topology

Format-agnostic loading functions
---------------------------------

.. currentmodule:: mdtraj
.. autosummary::
    :toctree: api/generated/

    load
    iterload
    load_frame
    open
    join

Format-specific loading functions
---------------------------------

.. autosummary::
    :toctree: api/generated/

    load_lh5
    load_pdb
    load_xml
    load_arc
    load_dcd
    load_dtr
    load_hdf5
    load_netcdf
    load_trr
    load_xtc
    load_prmtop
    load_xyz
    load_lammpstrj
    load_hoomdxml

.. vim: tw=75