Prepares the ``siiContainer`` for the import of peptide spectrum matching
    results. Adds entries to ``siiContainer.container`` and to
    ``siiContainer.info``.

    :param siiContainer: instance of :class:`maspy.core.SiiContainer`
    :param specfile: unambiguous identifier of a ms-run file. Is also used as
        a reference to other MasPy file containers.
    :param path: folder location used by the ``SiiContainer`` to save and load
        data to the hard disk.
    :param qcAttr: name of the parameter to define a ``Sii`` quality cut off.
        Typically this is some sort of a global false positive estimator,
        for example a 'false discovery rate' (FDR).
    :param qcLargerBetter: bool, True if a large value for the ``.qcAttr`` means
        a higher confidence.
    :param qcCutOff: float, the quality threshold for the specifed ``.qcAttr``
    :param rankAttr: name of the parameter used for ranking ``Sii`` according
        to how well they match to a fragment ion spectrum, in the case when
        their are multiple ``Sii`` present for the same spectrum.
    :param rankLargerBetter: bool, True if a large value for the ``.rankAttr``
        means a better match to the fragment ion spectrum.

    For details on ``Sii`` ranking see :func:`applySiiRanking()`

    For details on ``Sii`` quality validation see :func:`applySiiQcValidation()`

def prepareSiiImport(siiContainer, specfile, path, qcAttr, qcLargerBetter,
                     qcCutoff, rankAttr, rankLargerBetter):
    """Prepares the ``siiContainer`` for the import of peptide spectrum matching
    results. Adds entries to ``siiContainer.container`` and to
    ``siiContainer.info``.

    :param siiContainer: instance of :class:`maspy.core.SiiContainer`
    :param specfile: unambiguous identifier of a ms-run file. Is also used as
        a reference to other MasPy file containers.
    :param path: folder location used by the ``SiiContainer`` to save and load
        data to the hard disk.
    :param qcAttr: name of the parameter to define a ``Sii`` quality cut off.
        Typically this is some sort of a global false positive estimator,
        for example a 'false discovery rate' (FDR).
    :param qcLargerBetter: bool, True if a large value for the ``.qcAttr`` means
        a higher confidence.
    :param qcCutOff: float, the quality threshold for the specifed ``.qcAttr``
    :param rankAttr: name of the parameter used for ranking ``Sii`` according
        to how well they match to a fragment ion spectrum, in the case when
        their are multiple ``Sii`` present for the same spectrum.
    :param rankLargerBetter: bool, True if a large value for the ``.rankAttr``
        means a better match to the fragment ion spectrum.

    For details on ``Sii`` ranking see :func:`applySiiRanking()`

    For details on ``Sii`` quality validation see :func:`applySiiQcValidation()`
    """
    if specfile not in siiContainer.info:
        siiContainer.addSpecfile(specfile, path)
    else:
        raise Exception('...')

    siiContainer.info[specfile]['qcAttr'] = qcAttr
    siiContainer.info[specfile]['qcLargerBetter'] = qcLargerBetter
    siiContainer.info[specfile]['qcCutoff'] = qcCutoff
    siiContainer.info[specfile]['rankAttr'] = rankAttr
    siiContainer.info[specfile]['rankLargerBetter'] = rankLargerBetter