docs: def updateFgiAnnotationFromFi(fgiContainer, fiContainer, largerBetter):
      """ #TODO: docstring
  
      :param fgiContainer:
      :param fiContainer:
      :param largerBetter:
      """
      for fgi in listvalues(fgiContainer.container):
          annotations = list()
          for specfile, fiId in zip(fgi.specfiles, fgi.featureIds):
              fi = fiContainer.getItem(specfile, fiId)
              if not fi.isAnnotated:
                  continue
              annotations.append([fi.score, fi.peptide, fi.sequence])
          annotations.sort(reverse=largerBetter)
          if len(annotations) > 0:
              fgi.isAnnotated = True
              fgi.score = annotations[0][0]
              fgi.peptide = annotations[0][1]
              fgi.sequence = annotations[0][2]
          else:
              fgi.isAnnotated = False