nodes: 0, module; 1, function_definition; 2, function_name:prepareSiiImport; 3, parameters; 4, block; 5, identifier:siiContainer; 6, identifier:specfile; 7, identifier:path; 8, identifier:qcAttr; 9, identifier:qcLargerBetter; 10, identifier:qcCutoff; 11, identifier:rankAttr; 12, identifier:rankLargerBetter; 13, expression_statement; 14, if_statement; 15, expression_statement; 16, expression_statement; 17, expression_statement; 18, expression_statement; 19, expression_statement; 20, comment:"""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()`
      """; 21, comparison_operator:specfile not in siiContainer.info; 22, block; 23, else_clause; 24, assignment; 25, assignment; 26, assignment; 27, assignment; 28, assignment; 29, identifier:specfile; 30, attribute; 31, expression_statement; 32, block; 33, subscript; 34, identifier:qcAttr; 35, subscript; 36, identifier:qcLargerBetter; 37, subscript; 38, identifier:qcCutoff; 39, subscript; 40, identifier:rankAttr; 41, subscript; 42, identifier:rankLargerBetter; 43, identifier:siiContainer; 44, identifier:info; 45, call; 46, raise_statement; 47, subscript; 48, string; 49, subscript; 50, string; 51, subscript; 52, string; 53, subscript; 54, string; 55, subscript; 56, string; 57, attribute; 58, argument_list; 59, call; 60, attribute; 61, identifier:specfile; 62, string_content:qcAttr; 63, attribute; 64, identifier:specfile; 65, string_content:qcLargerBetter; 66, attribute; 67, identifier:specfile; 68, string_content:qcCutoff; 69, attribute; 70, identifier:specfile; 71, string_content:rankAttr; 72, attribute; 73, identifier:specfile; 74, string_content:rankLargerBetter; 75, identifier:siiContainer; 76, identifier:addSpecfile; 77, identifier:specfile; 78, identifier:path; 79, identifier:Exception; 80, argument_list; 81, identifier:siiContainer; 82, identifier:info; 83, identifier:siiContainer; 84, identifier:info; 85, identifier:siiContainer; 86, identifier:info; 87, identifier:siiContainer; 88, identifier:info; 89, identifier:siiContainer; 90, identifier:info; 91, string; 92, string_content:...
code: 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