liveBook · Manning

Position probability matrix

As explained in Build AI Drug Discovery Pipelines

A position probability matrix records the probability of each amino acid at each sequence position.

A position probability matrix (PPM) records the probability of each amino acid at every sequence position. It begins with a position frequency matrix (PFM), which counts residues across a filtered multiple sequence alignment. Conserved positions concentrate counts in one amino-acid row; variable positions distribute counts across several rows. section 11.3.2

Pseudocount smoothing converts counts into probabilities while preventing zeros that can cause downstream numerical problems. The coefficient B balances observed counts against amino-acid background frequencies: larger B gives the prior more influence, which is useful for shallow alignments. Each sequence position becomes a 20-dimensional evolutionary feature vector. section 11.3.2

Protein feature construction

A Python workflow computes the PPM from an alignment, transposes it so positions are rows, and concatenates it with one-hot and residue-property features to form a 54-dimensional protein feature matrix.

How Build AI Drug Discovery Pipelines covers it

How deep it goes
Explains counts, smoothing, priors, and feature assembly, but stops short of full downstream model training.
Examples
Uses filtered alignment files, amino-acid count matrices, probability vectors, and concatenated 54-dimensional protein features.
What it assumes
Assumes a filtered multiple sequence alignment and an amino-acid alphabet, while defining counts, probabilities, priors, and smoothing.
What you can do after
Build protein feature matrices from alignments and combine evolutionary profiles with sequence and residue-property features.
How it connects
Connects multiple sequence alignment, position frequency matrix, pseudocount smoothing, background frequencies, and protein feature matrices.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build AI Drug Discovery Pipelines. The section links point to the parts of the book it draws on.