Models#

Models can be viewed as sequence transforms or measures. They operate on a single entity—typically a biological sequence (or, in some cases, a 3D structure) - and map it to another representation or compute a value.

This distinguishes them from metrics: while a measure assigns a value to a single entity, a metric quantifies a relationship (e.g., distance or similarity) between two or more entities.

In practice, models transform biological sequences into feature representations or derive specific properties from them.

Overview#

The seqme library provides a suite of models that convert biological sequences into numerical representations. These models fall into two main categories:

  • Embedding models — map sequences to fixed-length vector representations.

  • Property models — compute scalar values or descriptors such as charge, weight, or hydrophobicity.

Additional third-party models are available at: szczurek-lab/seqme-thirdparty.

Models#

seqme.models.ESM2

Wrapper for the ESM2 protein/peptide embedding model.

seqme.models.ESMFold

ESMFold protein language model.

seqme.models.RNAFM

A language model trained on RNA sequences, which computes sequence-level embeddings by averaging token embeddings.

seqme.models.GENALM

GENA-LM is a family of Open-Source Foundational Models for Long DNA Sequences trained on human DNA sequence.

seqme.models.KmerFrequencyEmbedding

Computes normalized k-mer frequency embeddings for sequences.

seqme.models.AliphaticIndex

Aliphatic index of amino acid sequences.

seqme.models.Aromaticity

Aromaticity of amino acid sequences.

seqme.models.BomanIndex

Boman index, estimating binding potential to proteins.

seqme.models.Charge

Net charge of amino acid sequences at a given pH.

seqme.models.Gravy

GRAVY (hydropathy) score for amino acid sequences.

seqme.models.Hydrophobicity

Hydrophobicity using a selected scale.

seqme.models.HydrophobicMoment

Hydrophobic moment (i.e., amphiphilicity) for one or more amino acid sequences using a sliding-window approach.

seqme.models.InstabilityIndex

Instability index, predicting in vitro protein stability.

seqme.models.IsoelectricPoint

Isoelectric point of amino acid sequences.

seqme.models.ProteinWeight

Molecular weight of amino acid sequences.

seqme.models.LogP

Lipophilicity for SMILES sequences.

seqme.models.QED

Quantitative Estimate of Drug-likeness for SMILES sequences.

seqme.models.SAScore

Synthetic Accessibility Score (SA Score) for SMILES sequences.

seqme.models.MoleculeValidity

Chemical validity for SMILES sequences.

Miscellaneous#

These models perform special-purpose operations or combine multiple models.

seqme.models.ThirdPartyModel

Wrapper for loading and calling a third-party plugin model.

seqme.models.PCA

Utility projecting sequence embeddings onto principle components.

seqme.models.Ensemble

Combines multiple predictor functions into a weighted ensemble.

Supported sequence types#

At-a-glance matrix of all models and supported sequence types.

✓ — supported, ✗ — not supported