Metrics for evaluating biological sequence generation models.
Project description
seqme is a modular and highly extendable python library containing model-agnostic metrics for evaluating biological sequences.
Installation
You need to have Python 3.10 or newer installed on your system. To install the base package do:
$ pip install seqme
To also install domain-specific models, add extras specifiers. Read the docs for more information on the supported models.
Quick start
Install seqme and the protein language model, ESM-2.
$ pip install seqme[esm2]
Run in a Jupyter notebook:
import seqme as sm
sequences = {
"Random": ["MKQW", "RKSPL"],
"UniProt": ["KKWQ", "RKSPL", "RASD"],
"HydrAMP": ["MMRK", "RKSPL", "RRLSK", "RRLSK"],
}
cache = sm.ModelCache(
models={"esm2": sm.models.Esm2(
model_name="facebook/esm2_t6_8M_UR50D", batch_size=256, device="cpu")
}
)
metrics = [
sm.metrics.Uniqueness(),
sm.metrics.Novelty(reference=sequences["UniProt"], reference_name="UniProt"),
sm.metrics.FBD(reference=sequences["Random"], embedder=cache.model("esm2")),
]
df = sm.compute_metrics(sequences, metrics)
sm.show_table(df) # Note: Will only display the table in a notebook.
Read the docs for more tutorials and examples.
Citation
Preprint is coming soon.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file seqme-0.1.1.tar.gz.
File metadata
- Download URL: seqme-0.1.1.tar.gz
- Upload date:
- Size: 46.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e9bf5ae119cded997aef4dd6ab3e5ac66478915c65323347c7f3916c3c634e9
|
|
| MD5 |
0c4b869577a861a479f5fbbf15db4a17
|
|
| BLAKE2b-256 |
2dc9e0cd1e3884c7df6376edbf75472edadfee9ceab6839acd41ccf34a12fedb
|
Provenance
The following attestation bundles were made for seqme-0.1.1.tar.gz:
Publisher:
release.yml on szczurek-lab/seqme
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
seqme-0.1.1.tar.gz -
Subject digest:
8e9bf5ae119cded997aef4dd6ab3e5ac66478915c65323347c7f3916c3c634e9 - Sigstore transparency entry: 528594782
- Sigstore integration time:
-
Permalink:
szczurek-lab/seqme@02da21dd1e7082469d8578880e4afa8e407e27aa -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/szczurek-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@02da21dd1e7082469d8578880e4afa8e407e27aa -
Trigger Event:
release
-
Statement type:
File details
Details for the file seqme-0.1.1-py3-none-any.whl.
File metadata
- Download URL: seqme-0.1.1-py3-none-any.whl
- Upload date:
- Size: 54.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e949f7e524cdf0661ec068e210579cbfbd5b4291090e0d76bd2edaa457b12ec2
|
|
| MD5 |
9f4f2f32b4f28108ccb700e25f83d05a
|
|
| BLAKE2b-256 |
48ff2487ef17f099b6932a5d46f534deda74cc8ed2d076fdc869e0a92f7ef497
|
Provenance
The following attestation bundles were made for seqme-0.1.1-py3-none-any.whl:
Publisher:
release.yml on szczurek-lab/seqme
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
seqme-0.1.1-py3-none-any.whl -
Subject digest:
e949f7e524cdf0661ec068e210579cbfbd5b4291090e0d76bd2edaa457b12ec2 - Sigstore transparency entry: 528594797
- Sigstore integration time:
-
Permalink:
szczurek-lab/seqme@02da21dd1e7082469d8578880e4afa8e407e27aa -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/szczurek-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@02da21dd1e7082469d8578880e4afa8e407e27aa -
Trigger Event:
release
-
Statement type: