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

fix

parent 3e5fbee3
No related branches found
No related tags found
No related merge requests found
from six import callable
import pandas
from . import amino_acid
......@@ -72,7 +74,10 @@ class AlleleEncoding(object):
"allele_representations",
encoding_name)
if cache_key not in self.encoding_cache:
if ":" in encoding_name:
if callable(encoding_name):
vector_encoded = encoding_name(self)
assert len(vector_encoded)== len(self.allele_to_sequence)
elif ":" in encoding_name:
# Apply transform
(transform_name, rest) = encoding_name.split(":", 2)
preliminary_encoded = self.allele_representations(rest)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment