Skip to main content

Evolutionary velocity with protein language models

Project description

Evolocity implements evolutionary velocity (evo-velocity), which models a protein sequence landscape as an evolutionary “vector field” by using the local evolutionary predictions enabled by language models to enable global evolutionary insight.

'Evolocity overview'

Evo-velocity uses the change in languge model likelihoods to estimate directionality between two biological sequences. Then, over an entire sequence similarity network, this procedure is used to direct network edges. Finally, network diffusion analysis can identify roots, order sequences in pseudotime, and identify mutations driving the velocity.

Evolocity is a fork of the scVelo tool for RNA velocity and relies on many aspects of the Scanpy library for high-dimensional biological data analysis. Like Scanpy and scVelo, evolocity makes use of anndata, an extremely convenient way to store and organize biological data.

Quick Start

Installation

You should be able to install evolocity using pip:

python -m pip install evolocity

API example

Below is a quick Python example of using evolocity to load and analyze sequences in a FASTA file.

import evolocity as evo
import scanpy as sc

# Load sequences and compute language model embeddings.
fasta_fname = 'data.fasta'
adata = evo.pp.featurize_fasta(fasta_fname)

# Construct sequence similarity network.
evo.pp.neighbors(adata)

# Run evolocity analysis.
evo.tl.velocity_graph(adata)

# Embed network and velocities in two-dimensions and plot.
sc.tl.umap(adata)
evo.tl.velocity_embedding(adata)
evo.pl.velocity_embedding_grid(adata)
evo.pl.velocity_embedding_stream(adata)

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

evolocity-1.1.tar.gz (73.7 kB view details)

Uploaded Source

Built Distribution

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

evolocity-1.1-py3-none-any.whl (87.2 kB view details)

Uploaded Python 3

File details

Details for the file evolocity-1.1.tar.gz.

File metadata

  • Download URL: evolocity-1.1.tar.gz
  • Upload date:
  • Size: 73.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for evolocity-1.1.tar.gz
Algorithm Hash digest
SHA256 cf80bf4aec45304834e3bce5c5e8c2746d45e09c5533a8fbd3316fa6e3055783
MD5 1273230dd932b7105d40f28c20074ec4
BLAKE2b-256 230e1cc2e229d0f40d4b9726f565b0eebe1830ded3e085681385ef068d0564a4

See more details on using hashes here.

File details

Details for the file evolocity-1.1-py3-none-any.whl.

File metadata

  • Download URL: evolocity-1.1-py3-none-any.whl
  • Upload date:
  • Size: 87.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for evolocity-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d74845fa45437521ba0a686201393d5bc10834d07494a5dacf4c422bc1fcc21f
MD5 81d78f7fdc8443a9d711f079ff9d2fe9
BLAKE2b-256 120a0abb50d560aa15105533e17728d4fb54f421a3c360f9a5f3a0a5587f4b9a

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