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.0.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

evolocity-1.0.1-py3-none-any.whl (87.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: evolocity-1.0.1.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for evolocity-1.0.1.tar.gz
Algorithm Hash digest
SHA256 06589e9d5f98a782b24ae687954a6bfeafcd640223daf02c97c24de6ba40c2b2
MD5 29051fa4ed3ac98fec0e73cf68cc51b8
BLAKE2b-256 d9c0813c5d7da9345628706e840c5d320f712c56afa2262220844942dcb59e15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: evolocity-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 87.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for evolocity-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd869bfe929833efb51a8e2a2c32150e6fa0efe25d957bdf24ac462b9984beb4
MD5 1cd06243bc414f159ebe93eac01d534d
BLAKE2b-256 f04898dd23138e48e52712a4e3f43d4fa0bfba1c7e8db83573397771ec549040

See more details on using hashes here.

Supported by

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