Topology#

Form adapter and capabilities for pytraj.Topology.

  • Technical Form Name: pytraj.Topology

  • Form Type: class

Added in version 1.0.0.

Overview#

pytraj.Topology is a supported representation form in MolSysMT. Form adapter and capabilities for pytraj.Topology.

Supported attributes#

The pytraj.Topology form container supports a total of 15 attributes:

Category

Subcategory / Level

Supported Attributes

Topological

Atom Level

atom_index, atom_name, atom_id, atom_type

Topological

Group Level

group_index, group_name, group_id, group_type

Topological

Component Level

component_index

Topological

Molecule Level

molecule_index, molecule_name, molecule_id, molecule_type

Topological

Bonds & Connectivity

bond_index, inner_bonded_atoms

Structural

Other Attributes

atom_index

Implemented operations#

The form adapter module molsysmt.form.pytraj_Topology implements the following functions and modules:

Function / Module

Description

extract()

Extracts a subset of atoms, groups, or structures into a new pytraj.Topology instance.

copy()

Creates an independent deep copy of the pytraj.Topology object in memory.

add()

Adds elements from another system into an existing pytraj.Topology instance.

merge()

Merges multiple systems into a single combined pytraj.Topology object.

append_structures()

Appends new coordinate frames or trajectories to the structures container.

get_topological_attributes

Module containing getters for topological attributes.

get_structural_attributes

Module containing getters for structural attributes.

set

Module containing setters for updating coordinates, box dimensions, or attributes in-place.

iterators

Module providing iterators for streaming trajectory frames and structures.

has_attribute()

Checks whether a specific attribute name is supported by pytraj.Topology.

is_form()

Returns True if the provided object is an instance of pytraj.Topology.

Supported conversions#

The following table lists all direct conversion functions implemented in molsysmt.form.pytraj_Topology:

Target Form

Form Type

API Documentation

molsysmt.Topology

class

to_molsysmt_Topology()

pytraj.Topology

class

to_pytraj_Topology()

pytraj.Trajectory

class

to_pytraj_Trajectory()