
Research
/Security News
Fake imToken Chrome Extension Steals Seed Phrases via Phishing Redirects
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.
scoring-matrices
Advanced tools
Dependency free, Cython-compatible scoring matrices to use with biological sequences.
scoring-matrices Dependency free, Cython-compatible scoring matrices to use with biological sequences.
Scoring Matrices are matrices used to score the matches and mismatches between two characters are the same position in a sequence alignment. Some of these matrices are derived from substitution matrices, which uses evolutionary modeling.
The scoring-matrices package is a dependency-free, batteries included library
to handle and distribute common substitution matrices:
ScoringMatrix is a Cython class that can be
inherited, and the matrix data can be accessed as either a raw pointer, or
a typed memoryview.scoring-matrices can be installed directly from PyPI,
which hosts some pre-built wheels for the x86-64 architecture (Linux/OSX/Windows)
and the Aarch64 architecture (Linux/OSX), as well as the code required to
compile from source with Cython:
$ pip install scoring-matrices
Otherwise, scoring-matrices is also available as a Bioconda
package:
$ conda install bioconda::scoring-matrices
ScoringMatrix class from the installed module:
from scoring_matrices import ScoringMatrix
blosum62 = ScoringMatrix.from_name("BLOSUM62")
x = blosum62[0, 0]
y = blosum62['A', 'A']
row_x = blosum62[0]
row_y = blosum62['A']
from scoring_matrices cimport ScoringMatrix
cdef ScoringMatrix blosum = ScoringMatrix.from_name("BLOSUM62")
cdef const float* data = blosum.data_ptr() # dense array
cdef const float** matrix = blosum.matrix_ptr() # array of pointers
ScoringMatrix weights as a typed memoryview
using the buffer protocol in more recents versions of Python:
from scoring_matrices cimport ScoringMatrix
cdef ScoringMatrix blosum = ScoringMatrix.from_name("BLOSUM62")
cdef const float[:, :] weights = blosum
Found a bug ? Have an enhancement request ? Head over to the GitHub issue tracker if you need to report or ask something. If you are filing in on a bug, please include as much information as you can about the issue, and try to recreate the same bug in a simple, easily reproducible situation.
Contributions are more than welcome! See
CONTRIBUTING.md
for more details.
This project adheres to Semantic Versioning and provides a changelog in the Keep a Changelog format.
This library is provided under the MIT License. Matrices were collected from the MMseqs2, Biopython and NCBI BLAST+ sources and are believed to be in the public domain.
This project was developed by Martin Larralde during his PhD project at the Leiden University Medical Center in the Zeller team.
FAQs
Dependency free, Cython-compatible scoring matrices to use with biological sequences.
We found that scoring-matrices demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.

Security News
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.