file:h5#

Form adapter and capabilities for file:h5.

  • Technical Form Name: file:h5

  • Form Type: file

Added in version 1.0.0.

Overview#

file:h5 is a supported representation form in MolSysMT. Form adapter and capabilities for file:h5.

Supported attributes#

The file:h5 form container supports a total of 60 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, component_name, component_id, component_type

Topological

Chain Level

chain_index, chain_name, chain_id, chain_type

Topological

Molecule Level

molecule_index, molecule_name, molecule_id, molecule_type

Topological

Entity Level

entity_index, entity_name, entity_id, entity_type

Topological

Bonds & Connectivity

bond_index, bond_type, bond_order, bonded_atoms, n_bonds

Topological

Element Counts

n_atoms, n_groups, n_components, n_chains, n_molecules, n_entities, n_bonds, n_amino_acids, n_ions, n_waters, n_small_molecules, n_peptides, n_proteins, n_dnas, n_rnas, n_lipids, n_polysaccharides, n_saccharides

Structural

Coordinates & Conformations

structure_index, coordinates, velocities, n_structures

Structural

Periodic Box

box, box_shape, box_angles, box_lengths, box_volume

Structural

Trajectory Metadata

time, potential_energy, kinetic_energy, total_energy, temperature

Structural

Other Attributes

atom_index, n_atoms

Implemented operations#

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

Function / Module

Description

extract()

Extracts a subset of atoms, groups, or structures into a new file:h5 instance.

copy()

Creates an independent deep copy of the file:h5 object in memory.

add()

Adds elements from another system into an existing file:h5 instance.

merge()

Merges multiple systems into a single combined file:h5 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 file:h5.

is_form()

Returns True if the provided object is an instance of file:h5.

Supported conversions#

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

Target Form

Form Type

API Documentation

file:h5

file

to_file_h5()

file:h5msm

file

to_file_h5msm()

file:pdb

file

to_file_pdb()

mdtraj.HDF5TrajectoryFile

class

to_mdtraj_HDF5TrajectoryFile()

mdtraj.Topology

class

to_mdtraj_Topology()

mdtraj.Trajectory

class

to_mdtraj_Trajectory()

molsysmt.MolSys

class

to_molsysmt_MolSys()

molsysmt.Structures

class

to_molsysmt_Structures()

molsysmt.Topology

class

to_molsysmt_Topology()

nglview.NGLWidget

class

to_nglview_NGLWidget()

openmm.Topology

class

to_openmm_Topology()