Skip to content

Processing Pipeline Details

ProMaya utilizes a robust Nextflow pipeline to scale protein-protein interaction predictions from single pairs to massive, multi-protein screening campaigns.

Pipeline Architecture

The workflow parses input PDB structures, manages deep learning inference through the ProMaya architecture, and orchestrates supplementary structural biology analysis.

ProMaya Nextflow Pipeline Architecture
The complete ProMaya data processing workflow. The pipeline ingests protein structures via a samplesheet, executes multi-modal feature extraction and HGT inference in parallel, optionally computes disorder profiles, and aggregates all results into a unified predictions table.

Workflow Execution Steps

Depending on the configuration flags provided, the pipeline executes the following high-level operations:

  1. Input Parsing (splitCsv): The pipeline begins by reading the user-provided samplesheet.csv, splitting the dataset, and generating an independent parallel execution channel for every protein pair.

  2. Core Inference (PREDICT_PPI): For each pair, Nextflow provisions a containerized environment (or Conda environment) and executes the core ProMaya architecture. This single module encapsulates the full structural multi-modal pipeline:

  3. Feature Extraction: Generates atomic graphs, residue graphs, surface point clouds, and extracts ProtTrans-650M language model embeddings.
  4. Multimodal Alignment: Fuses the multi-scale representations through a 4-stage bidirectional cross-attention mechanism.
  5. HGT Encoder: Passes the fused graph through 4 Heterogeneous Graph Transformer layers to capture complex topological dependencies.
  6. Cross-Protein Interaction: Computes interaction probabilities using multi-scale cross-protein attention.
  7. Classification: Outputs final interaction scores using a hybrid Neural-XGBoost layer.

  8. Interpretability Extraction (Optional): If --gradcam true is active, the PREDICT_PPI step computes backward passes to extract multi-scale attributions (Atom, Residue, Surface), outputting detailed TSVs and rendering 3D attribution hotspots (via PyMOL).

  9. Intrinsic Disorder Scan (DISORDER_ANALYSIS): (Optional: triggered by --run_disorder true). Nextflow intelligently extracts unique PDB files from the samplesheet and runs an IUPred2A/MetaPredict structural disorder scan exactly once per protein, saving compute resources.

  10. Data Aggregation (AGGREGATE_RESULTS): Once all parallel PREDICT_PPI tasks complete, the pipeline collects every individual probability.tsv and merges them into a single, sorted master_predictions.tsv file, serving as the primary screening output.

Deterministic Output Management

To guarantee reproducibility and safe caching (-resume), ProMaya manages the raw output of the prediction scripts. While the internal python script generates timestamped output directories (to prevent collisions during manual execution), the Nextflow wrapper deliberately flattens these into stable, pair-specific directories (e.g., results/predictions/<pair_id>).