Skip to content
Snippets Groups Projects
Commit cd53f61e authored by Tim O'Donnell's avatar Tim O'Donnell
Browse files

fix

parent 1b309397
Branches
Tags
No related merge requests found
......@@ -252,8 +252,10 @@ class EncodableSequences(object):
3 * max_length.
"""
if allow_unsupported_amino_acids:
fill_value = amino_acid.AMINO_ACID_INDEX['X']
def get_amino_acid_index(a):
return amino_acid.AMINO_ACID_INDEX.get(a, "X")
return amino_acid.AMINO_ACID_INDEX.get(a, fill_value)
else:
get_amino_acid_index = amino_acid.AMINO_ACID_INDEX.__getitem__
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment