def _getTargetIds(self, header):
        # this seems to be how pysam sets the target ids
        targetIds = collections.defaultdict(int)
        targetId = 0
        if header in 'SQ':
            headerLines = header['SQ']
            for headerLine in headerLines:
                refName = headerLine['SN']
                targetIds[refName] = targetId
                targetId += 1
        return targetIds
dataset/ETHPy150Open ga4gh/server/ga4gh/converters.py/SamConverter._getTargetIds/swapped operands of `in`