@classmethod
    def _parseTagValue(cls, tag, value):
        if cls._tagReservedFieldPrefixes in tag[0]:
            # user reserved fields... not really sure what to do here
            return value[0].encode(cls._encoding)
        elif tag in cls._tagIntegerFields:
            return int(value[0])
        elif tag in cls._tagStringFields:
            return value[0].encode(cls._encoding)
        elif tag in cls._tagIntegerArrayFields:
            return [int(integerString) for integerString in value]
        else:
            raise SamException("unrecognized tag '{}'".format(tag))
dataset/ETHPy150Open ga4gh/server/ga4gh/converters.py/SamLine._parseTagValue/swapped operands of `in`