def _min_filter(path_data, min_genes, min_transcripts):
    """
    Return `True` is path_data has more than min_genes and min_transcripts.
    """
    if min_genes > 1:
        if len(path_data.Genes) < min_genes:
            return False
    if min_transcripts > 1:
        if len(path_data.Transcripts) < min_transcripts:
            return False
    return True