pdb_cpp.data package

Submodules

pdb_cpp.data.blosum module

Load and cache substitution matrices bundled with pdb_cpp.

pdb_cpp.data.blosum.get_blosum62()[source]

Return a cached BLOSUM62 matrix.

Returns:
dict

Mapping of (aa1, aa2) to substitution score.

pdb_cpp.data.blosum.load_blosum(path=None)[source]

Load a BLOSUM substitution matrix from a file.

Parameters:
pathstr, optional

Path to the matrix file. Defaults to blosum62.txt in this package.

Returns:
dict

Mapping of (aa1, aa2) to substitution score.

pdb_cpp.data.res_dict module

Module contents

Bundled data files used by pdb_cpp.

This package exposes substitution matrices and residue lookup data consumed by the public alignment and analysis helpers.