# Path: kipoiseq/utils.py
# DNA = ("A", "C", "G", "T")


from typing import Any
from kipoiseq.utils import DNA
from copy import deepcopy
from six import string_types
import numpy as np
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function



# sequence -> array

def _get_alphabet_dict(alphabet):
    return {l: i for i, l in enumerate(alphabet)}


def _get_index_dict(alphabet):
    return {i: l for i, l in enumerate(alphabet)}


def one_hot2token(arr):
    return arr.argmax(axis=2)



# Path: kipoiseq/utils.py
# DNA = ("A", "C", "G", "T")


# Path: kipoiseq/transforms/functional.py
from typing import Any
from kipoiseq.utils import DNA
from copy import deepcopy
from six import string_types
import numpy as np

from __future__ import division
from __future__ import absolute_import
from __future__ import print_function



# sequence -> array

def _get_alphabet_dict(alphabet):
    return {l: i for i, l in enumerate(alphabet)}


def _get_index_dict(alphabet):
    return {i: l for i, l in enumerate(alphabet)}


def one_hot2token(arr):
    return arr.argmax(axis=2)



def one_hot2string(arr, alphabet=DNA):