def filterRow(row, fieldId, filters, kind):
    """
    returning True means this row will be filtered out [masked]
    returning False means the row will not be filtered out [pass filter]
    """
    if kind in ['vcf', 'vcf.gz']:
        for rowFilter in str(row[fieldId['FILTER']]).split(';'):
            if rowFilter not in filters:
                return True
                break
    if str(kind) == 'out':
        for rowFilter in str(row[fieldId['judgement']]).split(';'):
            if rowFilter not in filters:
                return True
                break
    return False
