from ..domain import GeneId
from ..domain import GeneIdList
from ..mapper import BaseMapper


class GeneIdMapper(BaseMapper):
    pattern = 'GENE_ID='

    def to_entity(self, string: str) ->GeneId:
        return GeneId([gene for gene in string.split(self.pattern)[-1].
            split(',')])

    def to_entity_list(self, string: str) ->GeneIdList:
        return GeneIdList([self.to_entity(s) for s in string.split(';')[0].
            split('&')])

c0b1973f3873ba7c2d831813644618d611f192e0
<mask token>


class GeneIdMapper(BaseMapper):
    <mask token>

    def to_entity(self, string: str) ->GeneId:
        return GeneId([gene for gene in string.split(self.pattern)[-1].
            split(',')])
    <mask token>

<mask token>


class GeneIdMapper(BaseMapper):
    <mask token>

    def to_entity(self, string: str) ->GeneId:
        return GeneId([gene for gene in string.split(self.pattern)[-1].
            split(',')])

    def to_entity_list(self, string: str) ->GeneIdList:
        return GeneIdList([self.to_entity(s) for s in string.split(';')[0].
            split('&')])

<mask token>


class GeneIdMapper(BaseMapper):
    pattern = 'GENE_ID='

    def to_entity(self, string: str) ->GeneId:
        return GeneId([gene for gene in string.split(self.pattern)[-1].
            split(',')])

    def to_entity_list(self, string: str) ->GeneIdList:
        return GeneIdList([self.to_entity(s) for s in string.split(';')[0].
            split('&')])

from ..domain import GeneId
from ..domain import GeneIdList
from ..mapper import BaseMapper


class GeneIdMapper(BaseMapper):
    pattern = 'GENE_ID='

    def to_entity(self, string: str) ->GeneId:
        return GeneId([gene for gene in string.split(self.pattern)[-1].
            split(',')])

    def to_entity_list(self, string: str) ->GeneIdList:
        return GeneIdList([self.to_entity(s) for s in string.split(';')[0].
            split('&')])
