Skip to main content

Prediction of amyloid propensity from amino acid sequences using ensemble deep learning and LLM models

Project description

AmyloDeep

AmyloDeep: pLM-based ensemble model for predicting amyloid propensity from the amino acid sequence

AmyloDeep is a Python package that uses ensemble model to predict amyloidogenic regions in protein sequences using a rolling window approach.

Features

  • Multi-model ensemble: Combines 5 different models for robust predictions
  • Rolling window analysis: Analyzes sequences using sliding windows of configurable size
  • Pre-trained models: Uses models trained on amyloid sequence databases
  • Calibrated probabilities: Includes probability calibration for better confidence estimates
  • Easy-to-use API: Simple Python interface and command-line tool
  • Streamlit web interface: Optional web interface for interactive predictions

Installation

From PyPI (recommended)

pip install amylodeep

From source

git clone https://github.com/AlisaDavtyan/protein_classification.git
cd amylodeep
pip install amylodeep

Quick Start

Python API

from amylodeep import predict_ensemble_rolling

# Predict amyloid propensity for a protein sequence
sequence = "MKTFFFLLLLFTIGFCYVQFSKLKLENLHFKDNSEGLKNGGLQRQLGLTLKFNSNSLHHTSNL"
result = predict_ensemble_rolling(sequence, window_size=6)

print(f"Average probability: {result['avg_probability']:.4f}")
print(f"Maximum probability: {result['max_probability']:.4f}")

# Access position-wise probabilities
for position, probability in result['position_probs']:
    print(f"Position {position}: {probability:.4f}")

Command Line Interface

# Basic prediction
amylodeep "MKTFFFLLLLFTIGFCYVQFSKLKLENLHFKDNSEGLKNGGLQRQLGLTLKFNSNSLHHTSNL"

# With custom window size
amylodeep "SEQUENCE" --window-size 10

# Save results to file
amylodeep "SEQUENCE" --output results.json --format json

# CSV output
amylodeep "SEQUENCE" --output results.csv --format csv

Model Architecture

AmyloDeep uses an ensemble of 5 models:

The models are combined using probability averaging, with some models using probability calibration (Platt scaling or isotonic regression) for better confidence estimates.

Requirements

  • Python >= 3.8
  • PyTorch >= 1.9.0
  • Transformers >= 4.15.0
  • NumPy >= 1.20.0
  • scikit-learn >= 1.0.0
  • XGBoost >= 1.5.0
  • jax-unirep >= 2.0.0
  • wandb >= 0.12.0

Main Functions

predict_ensemble_rolling(sequence, window_size=6)

Predict amyloid propensity for a protein sequence using rolling window analysis.

Parameters:

  • sequence (str): Protein sequence (amino acid letters)
  • window_size (int): Size of the rolling window (default: 6)

Returns: Dictionary containing:

  • position_probs: List of (position, probability) tuples
  • avg_probability: Average probability across all windows
  • max_probability: Maximum probability across all windows
  • sequence_length: Length of the input sequence
  • num_windows: Number of windows analyzed

Individual model classes for ESM and UniRep-based predictions.

This project is licensed under the MIT License - see the LICENSE file for details.

Citation

If you use AmyloDeep in your research, please cite:

@software{amylodeep2025,
  title={AmyloDeep: Prediction of amyloid propensity from amino acid sequences using deep learning},
  author={Alisa Davtyan},
  year={2025},
  url={https://github.com/AlisaDavtyan/protein_classification}
}

Support

For questions and support:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

amylodeep-0.2.8.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

amylodeep-0.2.8-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file amylodeep-0.2.8.tar.gz.

File metadata

  • Download URL: amylodeep-0.2.8.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for amylodeep-0.2.8.tar.gz
Algorithm Hash digest
SHA256 8bcac2eebc47d3b2c09dc9dc5440f740a75ac6bc2d802e5ec8206d6b6b5a5d28
MD5 164efc0bc3b87fbd18334194a091813c
BLAKE2b-256 adcd670ffa2f67594320fa16033d704df980dd77e84b9e2554935ba853b1ca2d

See more details on using hashes here.

File details

Details for the file amylodeep-0.2.8-py3-none-any.whl.

File metadata

  • Download URL: amylodeep-0.2.8-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for amylodeep-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c2bcc06b72c31b0f0f33d453865bb6385963c04b22066356ef764ba224d59b08
MD5 21852592997efa6f2b162c3c089a304d
BLAKE2b-256 977015b37a10a294f479e58cad0278638f80b58da24de269ad721c321f751bd8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page