Exemple #1
0
 void BaseFeature::setWidth(BaseFeature::WidthType fwhm)
 {
   // !!! Dirty hack: as long as featureXML doesn't support a width field,
   // we abuse the meta information for this.
   // See also FeatureXMLFile::readFeature_().
   width_ = fwhm;
   setMetaValue("FWHM", fwhm);
 }
  void SpectrumSettings::unify(const SpectrumSettings & rhs)
  {
    // append metavalues (overwrite when already present)
    std::vector<UInt> keys;
    rhs.getKeys(keys);
    for (Size i = 0; i < keys.size(); ++i)
      setMetaValue(keys[i], rhs.getMetaValue(keys[i]));


    if (type_ != rhs.type_)
      type_ = UNKNOWN;                       // only keep if both are equal
    //native_id_ == rhs.native_id_ // keep
    comment_ += rhs.comment_;        // append
    //instrument_settings_ == rhs.instrument_settings_  // keep
    //acquisition_info_ == rhs.acquisition_info_
    //source_file_ == rhs.source_file_ &&
    precursors_.insert(precursors_.end(), rhs.precursors_.begin(), rhs.precursors_.end());
    products_.insert(products_.end(), rhs.products_.begin(), rhs.products_.end());
    identification_.insert(identification_.end(), rhs.identification_.begin(), rhs.identification_.end());
    data_processing_.insert(data_processing_.end(), rhs.data_processing_.begin(), rhs.data_processing_.end());
  }
Exemple #3
0
 void MRMFeature::addScore(const String & score_name, double score)
 {
   pg_scores_[score_name] = score;
   setMetaValue(score_name, score);
 }