โˆ 
๐ŸŒธ WateringHole Zola/Hugo (Live Rust + petalTongue)
Engine:markdown ยท petalTongue:true ยท loamSpine:true ยท coralReef:true

Protein Structure Prediction in Pure Rust โ€” A Sovereign AlphaFold Alternative

Protein Structure Prediction in Pure Rust โ€” A Sovereign AlphaFold AlternativeCNS/PNS Sovereign Index: 3.9 ratio1.0-1.2-1.0-0.8-0.6-0.4-0.2-0.00.20.40.60.81.01.2-0.50.00.51.01.52.02.5CNS/PNS Sovereign Index: 3.9 ratioLiving Document Structure-0.20.00.20.40.60.81.01.21.41.61.82.02.2-1000100200300400500600700Living Document Structure

Protein Structure Prediction in Pure Rust โ€” A Sovereign AlphaFold Alternative

Predicting Protein 3D Structure Without Python, Without Cloud, Without CUDA

The AlphaFold Bottleneck

AlphaFold2 revolutionized structural biology. But running it requires:

  • Python 3.8+ with TensorFlow/JAX
  • NVIDIA GPU with CUDA 11+
  • 8+ GB GPU memory (A100 recommended)
  • Docker or Singularity containers
  • Internet access for MSA databases (2.6 TB+)
  • Google Colab / cloud for most researchers

For a single researcher on commodity hardware, AlphaFold is practically inaccessible without cloud compute.

helixVision: Sovereign Protein Structure

helixVision is our approach to protein structure prediction using:

  • Pure Rust โ€” single binary, no Python runtime
  • WebGPU/WGSL โ€” runs on AMD, Intel, NVIDIA GPUs
  • Local-first โ€” all databases stored locally, no internet required at inference
  • SteamOS compatible โ€” runs on a Steam Deck

Architecture

Input: amino acid sequence (FASTA)
  โ”‚
  โ”œโ”€ MSA generation (local HHblits database)
  โ”œโ”€ Template search (local PDB mirror)
  โ”‚
  โ–ผ
coralReef (WGSL shader compilation)
  โ”‚
  โ”œโ”€ Attention layers (barraCuda GPU compute)
  โ”œโ”€ Structure module (torsion angle prediction)
  โ”œโ”€ Relaxation (molecular dynamics via barraCuda)
  โ”‚
  โ–ผ
Output: 3D coordinates (PDB/mmCIF)
  โ”‚
  โ”œโ”€ Confidence scoring (pLDDT per residue)
  โ”œโ”€ Provenance certificate (rhizoCrypt DAG)
  โ””โ”€ Visualization (petalTongue WebGL)

Key Innovations

1. WGSL Attention Kernels

Self-attention is the computational bottleneck. Our WGSL kernels implement multi-head attention with:

  • Fused softmax (no intermediate materialization)
  • f32 accumulation with f16 storage (mixed precision)
  • Workgroup-tiled matrix multiply for L1 cache efficiency

2. Deterministic Reproducibility

Every prediction includes a rhizoCrypt provenance certificate โ€” a Merkle tree of:

  • Input sequence hash
  • MSA database version
  • Model weights hash
  • GPU kernel source hashes
  • Random seed (if any)

Anyone can reproduce the exact result with the exact same inputs.

3. Local Database Management

nestGate (content-addressed storage) manages local mirrors of:

  • UniRef30 (for MSA)
  • PDB70 (for templates)
  • BFD (optional, for deeper MSAs)

Deduplication and B-tree indexing keep storage manageable on consumer SSDs.

Running on a Steam Deck

Yes, really. The Steam Deck has:

  • AMD Van Gogh APU with RDNA2 GPU (8 CUs)
  • 16 GB unified memory
  • Vulkan 1.3 support

For small proteins (<200 residues), helixVision produces predictions in minutes. For larger proteins, we distribute across multiple nodes via songBird mesh networking.

Research Papers

Comparison with Existing Tools

FeatureAlphaFold2ESMFoldColabFoldhelixVision
LanguagePythonPythonPythonRust
GPUCUDA onlyCUDA onlyCUDA onlyWebGPU (any)
OfflineโŒ (MSA)โœ…โŒโœ…
ReproduciblePartialPartialโŒโœ… (provenance)
Steam DeckโŒโŒโŒโœ…
LicenseApache 2.0MITMITAGPL-3.0

Status

helixVision is in active development. Current capabilities:

  • MSA generation and template search: โœ…
  • Evoformer attention: โœ… (WGSL kernels)
  • Structure module: ๐Ÿ”„ In progress
  • Relaxation: ๐Ÿ”„ In progress
  • End-to-end prediction: ๐Ÿ”œ

Links

---

*Published by ecoPrimals โ€” sovereign distributed scientific computing in Pure Rust.*