Check there is enough SNPs in the file (with minimum).

    :param fileName: the name of the file.
    :param minimumNumber: the minimum number of markers that needs to be in the
                          file.

    :type fileName: str
    :type minimumNumber: int

    :returns: ``True`` if there is enough markers in the file, ``False``
              otherwise.

    Reads the number of markers (number of lines) in a file.

def checkNumberOfSNP(fileName, minimumNumber):
    """Check there is enough SNPs in the file (with minimum).

    :param fileName: the name of the file.
    :param minimumNumber: the minimum number of markers that needs to be in the
                          file.

    :type fileName: str
    :type minimumNumber: int

    :returns: ``True`` if there is enough markers in the file, ``False``
              otherwise.

    Reads the number of markers (number of lines) in a file.

    """
    nbSNP = 0
    try:
        with open(fileName, 'r') as inputFile:
            for line in inputFile:
                nbSNP += 1
    except IOError:
        msg = "{}: no such file".format(fileName)
        raise ProgramError(msg)

    if nbSNP < minimumNumber:
        return False
    return True