Skip to main content

To use Evo2 easily in HPC

Project description

EasyEvo2

Python 3.11+ pypi License: MIT

A Python toolkit for easily using Evo2 models in bioinformatics workflows, particularly in HPC environments.

Description

EasyEvo2 provides a simplified interface to Evo2 foundation models for sequence embedding. It enables biologists and bioinformaticians to efficiently extract embeddings from DNA, RNA, or protein sequences without extensive deep learning expertise. It's specially designed to work well in High-Performance Computing (HPC) environments.

Installation

# Install from PyPI
pip install easyevo2

# Or install from source
git clone https://github.com/ylab-hi/EasyEvo2.git
cd EasyEvo2
pip install .

# Or use self-contain and monolithic installation
wget https://raw.githubusercontent.com/ylab-hi/EasyEvo2/refs/heads/main/easyevo2.pyz
python easyevo2.pyz embed input.fa

Usage

Basic Usage

# Embed sequences from a FASTA file using the default model (evo2_7b)
easyevo2 embed input.fa

# Specify a different model
easyevo2 embed input.fa --model-type evo2_40b

# Extract embeddings from a specific layer
easyevo2 embed input.fa --layer-name blocks.28.mlp.l3 --layer-name  blocks.28.mlp.l3

# Use CPU instead of GPU
easyevo2 embed input.fa --device cpu

# Save to a specific output file
easyevo2 embed input.fa --output my_embeddings

Development

This project uses a Makefile to automate common development tasks:

# Show available commands
make help

# Run tests
make test

# Lint code
make lint

# Format code
make format

# Build package
make build

License

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

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

easyevo2-0.1.1.tar.gz (52.3 kB view details)

Uploaded Source

Built Distribution

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

easyevo2-0.1.1-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file easyevo2-0.1.1.tar.gz.

File metadata

  • Download URL: easyevo2-0.1.1.tar.gz
  • Upload date:
  • Size: 52.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.17

File hashes

Hashes for easyevo2-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7ae76990ded5c466c2ca84990ac3b17f455fd6261b6802146c10d2098f17f5b6
MD5 5cec7e65a2dae94181f0942121d4e230
BLAKE2b-256 12350cd1551e240e9e1f301f88bc4d0cbcac6615c0e122dbd165c33783c92187

See more details on using hashes here.

File details

Details for the file easyevo2-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: easyevo2-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.17

File hashes

Hashes for easyevo2-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 deade31c0776f78ea48e14cc36947826295f07a093af962be9acb029e8bd6994
MD5 6cf6785b5c0784271dbe973c3a855ac6
BLAKE2b-256 f97d752d0132313d454a4fee93dd709a5af09bd11ec0cb01b3c5186f5890aa6a

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