This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Biopython error: "ModuleNotFoundError: No module named 'Bio.SubsMat'"

Making import I am getting such an error:

from Bio.SubsMat import MatrixInfo 

"ModuleNotFoundError: No module named 'Bio.SubsMat'"

Would you be so kind to suggest something ? Googling does not seem to lead to the same error.

PS

Some time ago it was working okay, see e.g. Kaggle notebook: https://www.kaggle.com/code/shtrausslearning/biopython-bioinformatics-basics?scriptVersionId=97875973&cellId=1

biopython

1 answer

from Bio.Align import substitution_matrices

substitution_matrix = substitution_matrices.load('BLOSUM62')  # use matrix names to load

Log in to answer this question.