def filter_cands_min_bio_pfams(cands, min_pfams, verbose=1):
    """
    Filter candidates by minimum number of biosynthetic pfams
    :param cands: Candidate DataFrame to filter
    :param min_pfams: Minimum number of biosynthetic pfams
    :param verbose: Verbosity
    :return: candidates filtered by minimum number of biosynthetic pfams
    """
    if cands.empty:
        return cands
    filtered = cands[cands['num_bio_domains'] >= min_pfams]
    if verbose:
        print('Filtered candidates by minimum of {} biosynthetic pfams, {}/{} remained.'.format(min_pfams, len(filtered), len(cands)))
    return filtered