def checkRowIsAllType(row, col, typ):
    sample = 0
    while 1:
        if col.get("type_"+str(sample)) is None:
            if sample > 0:
                return True
            else:
                return False
        if row[col["type_"+str(sample)]] != typ:
            return False
        sample += 1
dataset/ETHPy150Open dnanexus/dx-toolkit/src/python/dxpy/scripts/dx_variants_to_vcf.py/checkRowIsAllType/original