def filter_gq(records, name, min_gq):
    for record in records:
        if 'GQ' in record.format:
            gq = record.samples[name]['GQ']
            if gq is not None and gq < min_gq:
                continue
        yield record
dataset/ETHPy150Open bioinformed/vgraph/vgraph/match.py/filter_gq/original