opencadd.structure.superposition.sequences.matrices

opencadd.structure.superposition.sequences.matrices(name)[source]

A SubstitutionMatrix maps each possible pairing of a symbol of a first alphabet with a symbol of a second alphabet to a score (int)

Parameters

name (string) – Name of the matrix which is loaded from the internal matrix database. If the name of Substitution Matrix could not be found, the default SubstitutionMatrix will be BLOSUM62.

Returns

The class uses a 2-D (m x n) ndarray, where each element stores the score for a symbol pairing, indexed by the symbol codes of the respective symbols in an m-length alphabet 1 and an n-length alphabet 2

Return type

SubstitutionMatrix