def parseMRCHeader(filename=None, **kwargs):
    """Parse the MRC header from a file."""
    from ..EM.mrc import MRCHeader
    from os.path import exists, isfile
    if type(filename) == type(None):
        from .output import printError
        printError('The filename is wrong.')
        return None
    if exists(filename) and isfile(filename):
        return MRCHeader(filename=filename)
    else:
        from .output import printError
        printError("The filename doesn't exists or is not a file.")
