chemistry-analysis-tools is a collection of lightweight utilities for molecular-file processing, partial-charge analysis, structural inspection, and molecular-simulation trajectory analysis. The repository brings together small research tools that are useful in computational-chemistry workflows without treating them as a single monolithic software package.
The repository currently covers three recurring tasks:
- Molecular-file processing — formatting MOL2 files and modifying atom-level partial charges
- Chemistry-aware comparison and inspection — comparing partial charges and identifying lipid-residue ranges in PDB structures
- Molecular-simulation analysis — radial-density, hydration-shell, and interfacial-orientation analyses for GROMACS-compatible trajectories
Formats a MOL2 file using the Open Babel command-line tool and writes a cleaned output MOL2 file.
python mol2_formatter.py input.mol2 -o output_formatted.mol2
Computes per-atom charge differences between metal-bound, metal-unbound, and metal-only MOL2 files using the Open Babel Python bindings.
python mol2_charge_diff.py bound.mol2 unbound.mol2 metal.mol2
By default, the script writes a text report named charge_difference.txt.
Applies atom-specific partial-charge values to a MOL2 structure using Open Babel and writes a modified MOL2 file.
Inspects a PDB structure to identify the residue-number range associated with the lipid bilayer for the residue names encoded by the script.
The scripts/ directory contains trajectory-analysis utilities built around explicit, reproducible inputs and outputs:
radial_density.py— radial density / mass-envelope analysiswater_counts_by_radius.py— solvent counts within radial shellsorientation_delta_r.py— interfacial orientation metrics relative to a nanoparticle center of mass
These scripts are intended for adaptation to GROMACS-compatible trajectories using tools such as MDAnalysis. Supporting notes in docs/ describe methods, reproducibility considerations, and the separation of code from unpublished or restricted research data.
chemistry-analysis-tools/
├── LipidStructureAnalyzer.py
├── mol2_formatter.py
├── mol2_charge_diff.py
├── mol2-partial-charge-modifier.py
├── scripts/
│ ├── radial_density.py
│ ├── water_counts_by_radius.py
│ └── orientation_delta_r.py
├── docs/
├── examples/
├── environment.yml
└── requirements.txt
Core MOL2 utilities:
- Python 3.10+
- Open Babel command-line tool (
obabel) where required - Open Babel Python bindings where required
Trajectory-analysis utilities:
- NumPy
- pandas
- matplotlib
- MDAnalysis
Install the Python analysis dependencies with:
pip install -r requirements.txt
or create the conda environment:
conda env create -f environment.yml conda activate chemistry-analysis-tools
The repository keeps analysis logic separate from unpublished production trajectories, collaborator-owned datasets, proprietary simulation inputs, and manuscript-sensitive raw results. Examples should use toy, public, or sanitized data that demonstrate the workflow without exposing restricted research material.
GitHub Actions performs automated Python syntax checks on repository changes. Individual utilities should still be validated against the scientific assumptions and file conventions of the system being analyzed before use in production research.
If a utility from this repository contributes to published work, cite the repository together with the version or commit hash used.
This project is released under the MIT License. See LICENSE for details.