private static void addAdditionalInfo(TargetedResultDTO tr, TopDownTargetedResult result)
        {
            var r = (TopDownTargetedResultDTO)tr;

            r.PrsmList        = null;
            r.ChargeStateList = null;
            r.Quantitation    = result.ChromPeakSelected != null ? result.ChromPeakSelected.Height : 0;

            r.MatchedMassTagID = ((LcmsFeatureTarget)result.Target).FeatureToMassTagID;
            //r.ProteinName = "";
            //r.ProteinMass = 0.0;
            r.PeptideSequence         = result.Target.Code;
            r.MostAbundantChargeState = r.ChargeState;
            r.ChromPeakSelectedHeight = result.ChromPeakSelected != null ? result.ChromPeakSelected.Height : 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);
        }