Exemple #1
0
 public Quantitation(int _quantitation_type, Labeling __label, LabelFree __lf, Quant_Advanced qad)
 {
     this.quantitation_type = _quantitation_type;
     this._labeling         = __label;
     this._lf            = __lf;
     this.quant_advanced = qad;
 }
Exemple #2
0
 public void CopyTo(LabelFree lf)
 {
     lf.lf_info_sample.Clear();
     for (int i = 0; i < this.lf_info_sample.Count; i++)
     {
         ObservableCollection <string> one_lf_info = new ObservableCollection <string>();
         for (int j = 0; j < this.lf_info_sample[i].Count; j++)
         {
             one_lf_info.Add(this.lf_info_sample[i][j]);
         }
         lf.lf_info_sample.Add(one_lf_info);
     }
 }
Exemple #3
0
 public void Reset()
 {
     this.quantitation_type            = (int)Quant_Type.Label_None;
     this._labeling.Multiplicity_index = 0;
     this.Labeling.setMultiplicity();
     this._labeling.Light_label.Clear();
     this._labeling.Medium_label.Clear();
     this._labeling.Heavy_label.Clear();
     #region Todo
     //Labelfree
     #endregion
     this._lf = new LabelFree();
     this.quant_advanced.Number_scans_half_cmtg               = 100;
     this.quant_advanced.Ppm_for_calibration                  = 0.0;
     this.quant_advanced.Ppm_half_win_accuracy_peak           = 10.0;
     this.quant_advanced.Number_hole_in_cmtg                  = 1; //index=1,value=2
     this.quant_advanced.Type_same_start_end_between_evidence = 0;
     this.quant_advanced.Ll_element_enrichment_calibration    = (int)LL_ELEMENT_ENRICHMENT_CALIBRATION.None;
 }
Exemple #4
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (obj.GetType() != this.GetType())
            {
                return(false);
            }
            LabelFree lf = obj as LabelFree;

            if ((System.Object)lf == null)
            {
                return(false);
            }
            if (this.lf_info_sample.Count != lf.lf_info_sample.Count)
            {
                return(false);
            }
            for (int i = 0; i < this.lf_info_sample.Count; i++)
            {
                if (this.lf_info_sample[i].Count != lf.lf_info_sample[i].Count)
                {
                    return(false);
                }
                for (int j = 0; j < this.lf_info_sample[i].Count; j++)
                {
                    if (!(this.lf_info_sample[i][j].Equals(lf.lf_info_sample[i][j])))
                    {
                        return(false);
                    }
                }
            }
            return(true);
        }