Saltar al contenido
ModelPublicadoExterno
Descargar

Peptide VAE Amp

PeptideVAE is a Transformer-based Variational Autoencoder (VAE) designed for the analysis and design of antimicrobial peptides (AMPs). It leverages hyperbolic geometry (Poincaré ball) to learn a structured latent...

TipoOtherVersiónPytorch modelBcalidad

Fuente del modelo

Tipo
Other
Tamaño del archivo
1,14 MB
Versión
vPytorch model
Actualizado
9 oct 2026
Fuente
Hugging Face

Descripción de la fuente

PeptideVAE: Hyperbolic Antimicrobial Peptide Predictor

PeptideVAE is a Transformer-based Variational Autoencoder (VAE) designed for the analysis and design of antimicrobial peptides (AMPs). It leverages hyperbolic geometry (Poincaré ball) to learn a structured latent space where radial distance encodes antimicrobial potency (MIC).

Model Description

  • Architecture: Transformer Encoder-Decoder with Hyperbolic Projection.
  • Latent Space: 16-dimensional Poincaré ball (curvature $c=1.0$).
  • Input: Peptide sequences (length 10-50 AA).
  • Task: Regression (Log10 MIC prediction) and Sequence Generation.

Key Features

  • Biological Grounding: Stress-tested for sensitivity to physicochemical properties. Correctly predicts reduced activity when positive charge density is decreased (e.g., K $ ightarrow$ E mutation in LL-37).
  • Hyperbolic Hierarchy: Higher antimicrobial activity (lower MIC) correlates with specific radial positioning in the hyperbolic manifold.
  • Multimodal Embedding: Combines amino acid identity, 5-adic physicochemical groups, and standard AA properties.

Performance (5-Fold Cross-Validation)

MetricMean ValueMax (Best Fold)
Spearman $
ho$0.6330.760
Pearson $r$0.6180.749
MAE0.32 Log10 units0.25
Reconstruction100%100%

Usage

import torch
from peptide_vae import PeptideVAE

# Load model
model = PeptideVAE(latent_dim=16, hidden_dim=64)
checkpoint = torch.load("pytorch_model.bin", map_location="cpu")
model.load_state_dict(checkpoint["model_state_dict"])
model.eval()

# Encode sequence
seq = "LLGDFFRKSKEKIGKEFKRIVQRIKDFLRNLVPRTES"
with torch.no_grad():
    out = model.encode([seq])
    z_hyp = out['z_hyp']
    mic_pred = model.predict_mic(z_hyp)

print(f"Predicted Log10(MIC): {mic_pred.item():.4f}")

Citation

If you use this model in your research, please cite:

@software{peptide_vae_2026,
  author = {AI Whisperers},
  title = {PeptideVAE: Hyperbolic Antimicrobial Peptide Predictor},
  year = {2026},
  url = {https://huggingface.co/ai-whisperers/peptide-vae-amp}
}

Fuentes

1 fuente
Hugging FacePrincipalVersión 08bf852b20a7fafc48c6f0aa30638ded260009c0
huggingface.co/geestaltt/peptide-vae-amp/tree/08bf852b20a7fafc48c6f0aa30638ded260009c0

Verificado 9 oct

Artefactos del modelo

1 artefacto

pytorch_model.bin

bin · 1,14 MB · SHA-256 c0b64daa4549…e756 · Hugging Face

Download file

Extractos de fuentes

2 extractos

--- language: - en tags: - biology - bioinformatics - antimicrobial-peptides - vae - hyperbolic-geometry - protein-design license: other metrics: - spearmanr - pearsonr - mae --- # PeptideVAE: Hyperbolic Antimicrobial Peptide Predictor PeptideVAE is a Transformer-based Variational Autoencoder (VAE) designed for the analysis and design of antimicrobial peptides (AMPs). It leverages hyperbolic geometry (Poincaré ball) to learn a structured latent space where radial distance encodes antimicrobial potency (MIC). ## Model Description - **Architecture:** Transformer Encoder-Decoder with Hyperbolic Projection. - **Latent Space:** 16-dimensional Poincaré ball (curvature $c=1.0$). - **Input:** Peptide sequences (length 10-50 AA). - **Task:** Regression (Log10 MIC prediction) and Sequence Generation. ## Key Features - **Biological Grounding:** Stress-tested for sensitivity to physicochemical properties. Correctly predicts reduced activity when positive charge density is decreased (e.g., K $ ightarrow$ E mutation in LL-37). - **Hyperbolic Hierarchy:** Higher antimicrobial activity (lower MIC) correlates with specific radial positioning in the hyperbolic manifold. - **Multimodal Embedding:** Combines amino acid identity, 5-adic physicochemical groups, and standard AA properties. ## Performance (5-Fold Cross-Validation) | Metric | Mean Value | Max (Best Fold) | |--------|------------|-----------------| | Spearman $ ho$ | 0.633 | 0.760 | | Pearson $r$ | 0.618 | 0.749 | | MAE | 0.32 Log10 units | 0.25 | | Reconstruction | 100% | 100% | ## Usage ```python import torch from peptide_vae import PeptideVAE # Load model model = PeptideVAE(latent_dim=16, hidden_dim=64) checkpoint = torch.load("pytorch_model.bin", map_location="cpu") model.load_state_dict(checkpoint["model_state_dict"]) model.eval() # Encode sequence seq = "LLGDFFRKSKEKIGKEFKRIVQRIKDFLRNLVPRTES" with torch.no_grad(): out = model.encode([seq]) z_hyp = out['z_hyp'] mic_pred = model.predict_mic(z_hyp) print(f"Predicted Log10(MIC): {mic_pred.item():.4f}") ``` ## Citation If you use this model in your research, please cite: ```bibtex @software{peptide_vae_2026, author = {AI Whisperers}, title = {PeptideVAE: Hyperbolic Antimicrobial Peptide Predictor}, year = {2026}, url = {https://huggingface.co/ai-whisperers/peptide-vae-amp} } ```

Source context: 0 downloads · 0 likes · Repo geestaltt/peptide-vae-amp