import itertools


def combinate(listoffiles, combnum):
    """
    Makes a list of tuples with the N choose combnum options

    Parameters
    ----------
    listoffiles: list
        list of file names
    combnum: int
        combination number (N choose combnum)

    Returns
    -------
    combinedlist: list
        list of tuples with combnum-combinations of files
    """
    combinedlist = list(itertools.combinations(listoffiles, combnum))
    return combinedlist