How yesint/molar works
MolAR is a Rust molecular modeling and molecular-dynamics analysis library, with Python bindings and companion force-field, command-line, membrane, and optional Gromacs-plugin packages. The main workflow is to read molecular structure or trajectory data into a system, select atoms, then analyze or modify the system and write results. The graph preserves documented capabilities such as periodic-boundary handling, SASA, fitting, and trajectory tasks. Several source modules were not sampled, so their documented roles are shown without speculative internal call relationships.
Main entry points: lib.rs Python API · topology.rs System and topology · io.rs Structure and trajectory I/O · selection.rs Atom selections
Components 28
Molecular core
- System and topology
molar/src/topology.rs - Atom model and storage
molar/src/atom.rs - Bond model and storage
molar/src/bond_storage.rs - Periodic box
molar/src/periodic_box.rs
Selection and analysis
- Atom selections
molar/src/selection.rs - Distance search
molar/src/distance_search.rs - Geometry and fitting
molar/src/measure.rs - SASA analysis
molar/src/sasa.rs - Secondary structure
molar/src/dssp.rs - Trajectory analysis tasks
molar/src/analysis_task.rs
Files and trajectories
- Structure and trajectory I/O
molar/src/io.rs - Gromacs TPR/CPT plugin
molar_gromacs/src/lib.rs
Modeling extensions
- Chemical perception
molar/src/perception.rs - SMILES chemistry
molar/src/smiles.rs - GAFF and charges
molar_ff/src/charge.rs - Amber mechanics
molar_ff/src/amber.rs - Membrane analysis
molar_membrane/src/lib.rs
User interfaces
- Molecular utilities
molar_bin/src/main.rs - Python API
molar_python/src/lib.rs - Python file interface
molar_python/src/file_handler.rs - Python selections
molar_python/src/selection.rs - Python system and state
molar_python/src/system.rs - Python atom access
molar_python/src/atom.rs - Python periodic box
molar_python/src/periodic_box.rs - Python force fields
molar_python/src/force_field.rs - Python topology and state
molar_python/src/topology_state.rs
Other components
- Molecular analyst
- Analysis or output
Connections 34
- Molecular analyst → Structure and trajectory I/O: opens files
README.md - Structure and trajectory I/O → System and topology: loads structures
README.md - System and topology → Atom model and storage: stores atoms
- System and topology → Bond model and storage: stores bonds
molar/src/bond_storage.rs - Molecular analyst → Atom selections: selects atoms
README.md - Atom selections → System and topology: binds to system
README.md - Molecular analyst → Distance search: searches distances
README.md - Molecular analyst → Geometry and fitting: measures and fits
README.md - Molecular analyst → SASA analysis: calculates SASA
README.md - Molecular analyst → Secondary structure: analyzes structure
README.md - Molecular analyst → Trajectory analysis tasks: runs trajectory tasks
README.md - Molecular analyst → Periodic box: uses PBC
README.md - Molecular analyst → Chemical perception: perceives chemistry
- Molecular analyst → SMILES chemistry: uses SMILES
- Molecular analyst → GAFF and charges: assigns types and charges
- Molecular analyst → Amber mechanics: uses Amber mechanics
- Molecular analyst → Membrane analysis: analyzes membranes
molar_membrane/src/lib.rs - Molecular analyst → Molecular utilities: runs utilities
molar_bin/src/main.rs - Molecular utilities → Structure and trajectory I/O: processes molecular files
- Molecular analyst → Python API: uses Python API
README.md - Python API → Python file interface: registers file API
molar_python/src/lib.rs - Python file interface → System and topology: reads and writes
molar_python/src/file_handler.rs - Python API → Python selections: registers selections
molar_python/src/lib.rs - Python API → Python system and state: registers systems
molar_python/src/lib.rs - Python API → Python atom access: registers atoms
molar_python/src/lib.rs - Python API → Python periodic box: registers boxes
molar_python/src/lib.rs - Python API → Python force fields: registers force fields
molar_python/src/lib.rs - Python API → Python topology and state: registers topology and state
molar_python/src/lib.rs - Molecular analyst → Gromacs TPR/CPT plugin: enables TPR/CPT support
README.md - Gromacs TPR/CPT plugin → Structure and trajectory I/O: provides optional format support
README.md - Structure and trajectory I/O → Analysis or output: writes files
README.md - Distance search → Analysis or output: returns pairs and distances
- Geometry and fitting → Analysis or output: produces measurements
- SASA analysis → Analysis or output: produces surface areas