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

Uploaded Source

Built Distribution

evolocity-1.0-py3-none-any.whl (87.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: evolocity-1.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for evolocity-1.0.tar.gz
Algorithm Hash digest
SHA256 7662546390a3eedc479bc4da370fa6025e93a928b9932de07d11a644e1cbe083
MD5 33fb4390d9a1c326a0df756ce1ff83c1
BLAKE2b-256 dab489ff6732f85bf80281aa0d6221ff5196c6e1a7bf40e1b5f53facaa0919b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: evolocity-1.0-py3-none-any.whl
  • Upload date:
  • Size: 87.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for evolocity-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c31aa9558791246ff3ebb7727bf4311c874165a67a78aaa160b733c9b059d1f
MD5 c0696d1bd8a5bb5feba5d6f57b66bbfb
BLAKE2b-256 f5fb51bdcdeed67e7934adc97d3c727aaf7906d6ab0db1175c7e5184af8c59a9

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