You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.
Greetings. I want to use blosum 62 instead of blosum50. i have imported blosum62 using following way
from Bio.SubsMat import MatrixInfo as matlist
blosum62 = matlist.blosum62
but i am getting following error
ValueError: One of the sequences contains a character that is not contained in the substitution matrix. Are you using an appropriate substitution matrix for your sequence type (e.g., a nucleotide substitution matrix does not make sense for aligning protein sequences)? Does your sequence contain invalid characters? The offending character(s) is: P, H.
code
from skbio.sequence import Protein
from skbio.alignment import TabularMSA
seq_1 = TabularMSA([seq1])
seq_2 = TabularMSA([seq2])
nw_matrix, traceback_matrix = _compute_score_and_traceback_matrices(
seq_1, seq_2, 1, 1,blosum62)
sequences are as follows.
seq_1=seq1 = Protein("HEAGAWGHEE")
seq_2 = Protein("PAWHEAE")
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Greetings. I want to use blosum 62 instead of blosum50. i have imported blosum62 using following way
but i am getting following error
ValueError: One of the sequences contains a character that is not contained in the substitution matrix. Are you using an appropriate substitution matrix for your sequence type (e.g., a nucleotide substitution matrix does not make sense for aligning protein sequences)? Does your sequence contain invalid characters? The offending character(s) is: P, H.
code
sequences are as follows.
seq_1=seq1 = Protein("HEAGAWGHEE")
seq_2 = Protein("PAWHEAE")
The text was updated successfully, but these errors were encountered: