Items and Forms#

In MolSysMT, a fundamental distinction is made between a physical item and its data representation form:

  • Item: A concrete data container holding molecular information. An item can be a file path on disk (such as '181l.bcif.gz'), an in-memory Python object (such as an mdtraj.Trajectory instance), a web database identifier (such as '181L'), or a text string (such as an amino acid sequence).

  • Form: The standardized type tag or schema label that identifies how an item’s data is structured (such as 'file:bcif', 'molsysmt.MolSys', 'mdtraj.Trajectory', 'string:pdb_id').

Functions in MolSysMT inspect items dynamically to determine their form. You can query the form of any item using molsysmt.basic.get_form():

import molsysmt as msm

item = msm.systems['T4 lysozyme L99A']['181l.bcif.gz']
msm.get_form(item)
'file:bcif.gz'

Querying Supported Forms#

You can inspect all forms supported by your current environment using molsysmt.supported.forms(). Passing a specific form_type filters the catalog by category ('file', 'class', or 'string'):

# Query supported file forms
msm.supported.forms(form_type='file')

# Query supported Python class forms
msm.supported.forms(form_type='class')

# Query supported string forms
msm.supported.forms(form_type='string')

Catalog of Supported Forms#

The tables below provide the complete reference of supported forms categorized by representation type.

Files#

File forms represent molecular structures, topologies, or trajectories stored in disk files.

FormInfo
file:bcif
file:bcif.gz
file:cif
file:cif.gz
file:crdCHARMM card (CRD) file format with coordinates.
file:dcd
file:fastaFASTA sequence file format
file:groGromacs gro file format
file:h5
file:h5msm
file:inpcrdAMBER ASCII restart/inpcrd file format
file:mdcrdAMBER MDCRD coordinate/trajectory file format
file:mol2
file:molsys_yamlHuman-authored declarative YAML molecular system file.
file:pdbProtein Data Bank file format
file:pirPIR/NBRF sequence file format
file:prmtopAMBER parameter/topology file format
file:psfCHARMM Protein Structure File (PSF).
file:smiSMILES file format (.smi)
file:structures_yamlHuman-authored declarative YAML structures file.
file:topGROMACS topology file format
file:topology_yamlHuman-authored declarative YAML topology file.
file:trjpk
file:xtc
file:xyzMolSysMT ASCII XYZ coordinate file format
file:xyznpyXYZ file format like saved with Numpy

Classes#

Class forms represent in-memory Python objects from third-party libraries (such as MDTraj, PyTraj, MDAnalysis, OpenMM, and ParmEd) as well as native MolSysMT classes.

FormInfo
biopython.PDBStructure
biopython.Seq
biopython.SeqRecord
cupy_ndarray
MDAnalysis.AtomGroup
MDAnalysis.Topology
MDAnalysis.topology.PDBParser
MDAnalysis.Universe
mdtraj.AmberRestartFile
mdtraj.DCDTrajectoryFile
mdtraj.GroTrajectoryFile
mdtraj.HDF5TrajectoryFile
mdtraj.PDBTrajectoryFile
mdtraj.Topology
mdtraj.Trajectory
mdtraj.XTCTrajectoryFile
mmcif.PdbxContainers.DataContainer
molsysmt.CIFFileHandler
molsysmt.GROFileHandler
molsysmt.H5MSMFileHandler
molsysmt.MolecularMechanics
molsysmt.MolecularMechanicsDict
molsysmt.MolSys
molsysmt.MolSysBuilderEditable native molecular system builder.
molsysmt.MolSysDictDeclarative serializable molecular system dictionary.
molsysmt.PDBFileHandler
molsysmt.Structures
molsysmt.StructuresDict
molsysmt.Topology
molsysmt.TopologyDictDeclared, serializable topology representation.
molsysmt.ViewerJSON
molsysviewer.MolSysViewMolSysViewer visualization native object.
networkx.Graph
nglview.NGLWidget
openff.MoleculeOpenFF Toolkit Molecule
openff.TopologyOpenFF Toolkit Topology
openmm.AmberInpcrdFile
openmm.AmberPrmtopFile
openmm.CharmmCrdFile
openmm.CharmmPsfFile
openmm.Context
openmm.GromacsGroFile
openmm.GromacsTopFile
openmm.Modeller
openmm.PDBFile
openmm.Simulation
openmm.State
openmm.System
openmm.Topology
parmed.GromacsTopologyFile
parmed.Structure
pdbfixer.PDBFixer
pytraj.Topology
pytraj.Trajectory
rdkit.Mol
XYZ

Strings#

String forms represent character strings including web database accessions (such as 'pdb:id', 'uniprot:id'), raw record text (such as 'string:pdb_text'), and sequence strings (such as 'string:amino_acids_1').

FormInfo
string:alphafold_id
string:amino_acids_1
string:amino_acids_3
string:pdb_id
string:pdb_textProtein Data Bank file format
string:smilesSMILES (Simplified Molecular Input Line Entry System) string
string:uniprot_idUniProt accession number string