---
title: 'PTM-Psi: Cloud-Native PTM Simulation'
url: https://www.emergentmind.com/topics/ptm-psi
type: topic
---

# PTM-Psi: Cloud-Native PTM Simulation

Searching arXiv for recent papers on PTM-Psi and related protein PTM simulation workflows.
PTM-Psi denotes a computational framework for simulating post-translational modifications on protein structures and interactions, and in its cloud-native realization it is implemented as an asynchronous, loosely coupled workflow on Microsoft Azure Quantum Elements (AQE) for high-throughput investigation of combinatorial thiol PTMs. In the reported implementation, the existing PTM-Psi workflow was refactored into a cloud-native library integrating AlphaFold2, NWChem, GROMACS, and Python-based analysis tools, with dynamic resource allocation tailored to each stage of the simulation pipeline. The motivating use case is the computational investigation of a combinatorial explosion of thiol PTMs on an exemplary protein megacomplex critical to the Calvin-Benson cycle of light-dependent sugar production in cyanobacteria [2507.09014].

## 1. Definition and scope

Within the reported architecture, PTM-Psi is a workflow for structural modeling and simulation of PTM-dependent protein behavior, with explicit support for protein targets supplied either as a PDB structure or as a sequence for AlphaFold2. The cloud implementation is organized around a top-level Python driver that reads a user YAML or JSON description of the protein target, the list of thiol PTM sites and types, and the selected downstream analyses such as MD, TI, PCA, and KTN [2507.09014].

The framework is designed for a setting in which PTM state spaces grow combinatorially. That growth is formalized as
$$
N_{\rm inst}=\prod_{i=1}^s m_i,
$$
where $S$ is the set of cysteine sites, $|S|=s$, and each site $i$ admits $m_i$ distinct PTM chemistries. In the demonstration case, $s=3$ modules—GAP2, PRK, and CP12—with $m_{\rm GAP2}=3$, $m_{\rm PRK}=6$, and $m_{\rm CP12}=6$, implying $N_{\rm inst}=3\times 6\times 6=108$; the reported study ran a reduced 16-case set, while stating that the library will scale up to $N_{\rm inst}\gg 10^3$ without code changes [2507.09014].

This scope places PTM-Psi at the intersection of structural modeling, force-field generation for non-standard amino acids, all-atom MD, and multilevel trajectory analysis. A plausible implication is that PTM-Psi is intended less as a single simulation code than as an orchestration framework for heterogeneous computational tasks.

## 2. Cloud-native architecture

The defining architectural feature is an asynchronous, loosely coupled “flow-of-workflows.” Users interact through the Azure Quantum Elements Open OnDemand web client or through the AQE/Slurm command line. The workflow manager fans out $N$ independent sub-workflows, one per PTM-combination instance, by generating a unique subdirectory and a small Slurm job script for each instance [2507.09014].

Independence among instances is strict except for minimal internal ordering constraints. Each instance must finish structure preparation before force-field generation, and must finish MD before trajectory post-processing, PCA, KTN, or TI. Synchronization points are therefore limited largely to final scoring and aggregation of quantities such as $\Delta\langle PC1\rangle$ or free energies. The pipeline is described as “pleasingly parallel,” reflecting that no task $W_j$ depends on any other $W_{j'}$ for $j'\neq j$ [2507.09014].

Dynamic resource allocation is central. PTM-Psi inspects each sub-workflow step and dispatches it to the reported optimal hardware profile: AlphaFold2 on GPU-node partitions with CPU plus modest GPU; NWChem on large CPU-only nodes with 120 vCPU; GROMACS MD on GPU nodes with $8\times{\rm H100}$ per node linked by NVLink; and Python-based analysis on CPU-only or mixed nodes depending on memory and CPU load. Azure autoscaling through the AQE batch API spins nodes up or down according to Slurm queue depth, so that bursts such as 200 submitted GROMACS jobs trigger matching GPU-node allocation and subsequent release when the queue drains [2507.09014].

This architecture is explicitly intended to reduce operational complexity while lowering entry barriers to data interpretation with structural modeling for a redox proteomics mass spectrometry specialist.

## 3. Software stack and workflow decomposition

The refactored PTM-Psi library unifies four containerized engines under a single Python API, each shipped as an Apptainer/Singularity container [2507.09014].

**AlphaFold2** is wrapped as `ptmpsi.af2`. It accepts either a UniProt identifier or a FASTA sequence, writes a PDB to `structures/REF<i>/`, and launches through `af2-run.sh` with a request for 1 GPU and 8 CPU.

**NWChem** is wrapped as `ptmpsi.ffgen`. It consumes a PTM’d PDB and generates non-standard amino-acid parameters via DFT at B3LYP/6-31G\*, outputs Amber-style `.frcmod` and `.lib` files, and then translates them to a GROMACS `.top` through AmberTools.

**GROMACS** is wrapped as `ptmpsi.md`. The MD workflow is specified as full all-atom explicit-solvent MD with minimization, NVT/NPT equilibration, and 100 ns production. GPU resources are detected automatically via `gmx gpus`, and PME plus all bonded terms are offloaded to GPU where supported. The reported representative ensemble size is
$$
N_{\rm atom}\approx 8\times 10^5,\quad \Delta t=2\,\mathrm{fs},\quad 100\,\mathrm{ns}=5\times 10^7\,\mathrm{steps}.
$$

**The Python-based analysis module** is exposed as `ptmpsi.analysis`. It implements univariate metrics including radius of gyration, RMSD, RMSF, and DSSP-based secondary structure, together with multivariate PCA, kinetic transition network analysis, and thermodynamic integration. The data-flow is specified as trajectories (`*.xtc`) and topologies (`*.tpr`) through GROMACS `trjconv`, then into netCDF, then into the `ptmpsi.analysis` API, and finally into HDF5/Binder for combined PCA/KTN [2507.09014].

The orchestration layer itself is entirely in Python, invoking the containerized engines through `subprocess` and storing inputs and outputs in a directory tree keyed by a unique 8-digit PTM code.

## 4. Formal workflow model and scaling behavior

The meta-workflow is defined by one sub-workflow per PTM instance,
$$
W_j=\bigl(T_0\to T_1\to T_2\to T_3\to T_4\to T_5\to T_6\bigr)_j,
$$
with the stages
$T_0$ = structure import or AF2,  
$T_1$ = force-field generation (NWChem),  
$T_2$ = MD production (GROMACS),  
$T_3$ = trajectory postprocessing,  
$T_4$ = univariate metrics,  
$T_5$ = PCA ranking,  
$T_6$ = KTN and TI [2507.09014].

Because the $W_j$ are independent, they are submitted as Slurm job arrays with array size equal to $N_{\rm inst}$. Aggregation occurs only after all sub-workflows have produced outputs such as $\Delta\langle PC1\rangle$ and $\Delta G_{\rm TI}$.

The idealized time-to-solution model is reported as
$$
t(N;M)\approx \frac{N}{M\times R}\times t_{\rm unit},
$$
for $N$ independent simulations on $M$ identical nodes, each capable of running $R$ runs concurrently, where $t_{\rm unit}$ is the wall clock for one 100 ns trajectory at fixed resolution. Near-linear scaling is reported until Slurm queue saturation or I/O contention occurs. The throughput-versus-cost model is written as
$$
\text{Throughput}\ T(M)=\frac{M\times R}{t_{\rm unit}},
$$
and
$$
\text{Cost}(M)\approx M\times c_{\rm node}\times t_{\rm unit}.
$$
The reported “knee” of the curve for MD-only workloads is roughly 40 GPU nodes, beyond which cost grows faster than throughput [2507.09014].

A common simplification would be to interpret PTM-Psi scalability purely as a GPU acceleration problem. The reported formulation suggests instead that the dominant abstraction is orchestration of many independent, heterogeneously provisioned tasks.

## 5. Performance, throughput, and cost

For the cloud deployment, the reported GPU-MD throughput is 50 sub-workflows per hour per 10 GPU nodes, with 8 runs per node. Queue latency is reported as 2–5 minutes, versus 1–3 hours on the original on-prem cluster for comparable jobs, and average node utilization exceeds 90% once the job-array ramp-up completes. On a 40-node GPU partition, the reported sustained throughput is approximately 400 100 ns MDs per day; the original on-prem cluster, described as 16 Xeon E5 nodes with 4 GPUs total, produced approximately 40 100 ns MDs per day, i.e. 10× slower [2507.09014].

For the direct 16-case end-to-end comparison, the reported on-prem pipeline required 120 minutes of queue latency, 10 hours of MD runtime per case, 2 hours of analysis per case, and 7 days of total wall clock. The AQE cloud configuration with 40 GPUs reported 5 minutes of queue latency, 8 hours of MD runtime per case, 1 hour of analysis per case, and 24 hours of total wall clock, corresponding to a 7× end-to-end speedup [2507.09014].

The reported economic comparison gives an on-prem amortized cost of approximately \$30 USD per 100 ns MD plus analysis, versus AQE spot pricing of approximately \$12 USD per 100 ns MD plus analysis, a 2.5× cost reduction attributed to efficient autoscaling, GPU offloading, and the use of spot or preemptible nodes. At the per-case MD stage, the reported acceleration is more modest—1 to 1.25× faster on H100 than on on-prem V100—indicating that the end-to-end gain arises from the whole pipeline rather than from single-kernel acceleration alone [2507.09014].

This suggests that PTM-Psi on the cloud is best understood as a workflow-throughput system rather than merely a faster MD execution environment.

## 6. Reproducibility, extension, and scientific significance

The reported reproduction pathway is deliberately explicit. It consists of cloning the BSD-3-clause PTM-Psi repository from `https://github.com/pnnl/PTMPSI`, provisioning an Azure Quantum Elements account with quota for at least 40 GPU nodes and 20 CPU-only nodes, building or pulling the Apptainer images `af2.sif`, `nwchem.sif`, `gmx.sif`, and `ptmpsi_analysis.sif`, writing a single JSON configuration file, and launching the workflow with `ptmp-workflow run --config my_run.json --submit-array`. Progress is monitored through Open OnDemand or `squeue -u $USER` [2507.09014].

Upon completion, the aggregated `results.h5` file contains per-instance $\Delta\langle PC1\rangle$ from Eqn (18), $\Delta G_{\rm TI}$ from Eqn (28), and representative structures for KTN from Eqn (27). The framework is also described as extensible: new PTM chemistries such as sulfenic acid can be added by supplying appropriate NWChem driving scripts in `ptmpsi/models/`, and alternate MD engines such as AMBER or OpenMM can be incorporated through a 10–20 line Python adapter following the same Slurm-template conventions [2507.09014].

Scientifically, the reported significance of PTM-Psi lies in converting a combinatorially difficult PTM-structure problem into a scalable, cloud-scheduled ensemble workflow. In the terms of the source paper, the system transforms the pipeline for thiol PTM analysis to achieve high throughput by leveraging cloud services, expands the scope and capability of PTM-Psi simulations beyond current limitations, and lowers entry barriers to structural interpretation of redox proteomics data [2507.09014].

Source: https://www.emergentmind.com/topics/ptm-psi