Пример #1
0
 private bool massTagListContainsMassTag(List <TargetBase> filteredList, TargetBase targetMassTag)
 {
     foreach (var mt in filteredList)
     {
         if (mt.ID == targetMassTag.ID && mt.ChargeState == targetMassTag.ChargeState)
         {
             return(true);
         }
     }
     return(false);
 }
Пример #2
0
 protected TargetBase(TargetBase copiedTarget)
 {
     ChargeState      = copiedTarget.ChargeState;
     Code             = copiedTarget.Code;
     ElutionTimeUnit  = copiedTarget.ElutionTimeUnit;
     EmpiricalFormula = copiedTarget.EmpiricalFormula;
     ID = copiedTarget.ID;
     IsotopicProfile        = copiedTarget.IsotopicProfile?.CloneIsotopicProfile();
     IsotopicProfileLabeled = copiedTarget.IsotopicProfileLabeled?.CloneIsotopicProfile();
     MZ                    = copiedTarget.MZ;
     ModCount              = copiedTarget.ModCount;
     ModDescription        = copiedTarget.ModDescription;
     MonoIsotopicMass      = copiedTarget.MonoIsotopicMass;
     NormalizedElutionTime = copiedTarget.NormalizedElutionTime;
     ObsCount              = copiedTarget.ObsCount;
     ScanLCTarget          = copiedTarget.ScanLCTarget;
     MsLevel               = copiedTarget.MsLevel;
 }
Пример #3
0
        public TargetedResultBase CreateMassTagResult(TargetBase massTag)
        {
            TargetedResultBase result;

            switch (ResultType)
            {
            case Globals.ResultType.BASIC_TARGETED_RESULT:
                result = new MassTagResult(massTag);
                break;

            case Globals.ResultType.N14N15_TARGETED_RESULT:
                result = new N14N15_TResult(massTag);
                break;

            case Globals.ResultType.O16O18_TARGETED_RESULT:
                result = new O16O18TargetedResultObject(massTag);
                break;

            case Globals.ResultType.SIPPER_TARGETED_RESULT:
                result = new SipperLcmsTargetedResult(massTag);
                break;

            case Globals.ResultType.TOPDOWN_TARGETED_RESULT:
                result = new TopDownTargetedResult(massTag);
                break;

            case Globals.ResultType.DEUTERATED_TARGETED_RESULT:
                result = new DeuteratedTargetedResultObject(massTag);
                break;

            default:
                result = new MassTagResult(massTag);
                break;
            }

            this.MassTagResultList.Add(massTag, result);
            result.MSFeatureID = MSFeatureCounter;
            result.Score       = 1;
            result.Run         = this.Run;

            this.MSFeatureCounter++;
            return(result);
        }
Пример #4
0
        public TargetedResultBase GetTargetedResult(TargetBase target)
        {
            if (target == null)
            {
                throw new NullReferenceException("Tried to get the TargetResult, but Target is null");
            }

            if (MassTagResultList.ContainsKey(target))
            {
                CurrentTargetedResult = MassTagResultList[target];
                return(CurrentTargetedResult);
            }
            else
            {
                var result = CreateMassTagResult(target);   // this creates the appropriate type and adds it to the MassTagResultList and increments the MSFeatureID number
                CurrentTargetedResult = result;
                return(result);
            }
        }
Пример #5
0
 protected TargetedResultBase(TargetBase target)
 {
     this.Target               = target;
     this.IsotopicProfile      = new IsotopicProfile();
     this.ChromPeakQualityList = new List <ChromPeakQualityData>();
 }
Пример #6
0
 public MassTagResult(TargetBase target) : base(target)
 {
 }
Пример #7
0
 public N14N15_TResult(TargetBase target) : base(target)
 {
 }