Exemple #1
0
 protected ChromInfoData(MeasuredResults measuredResults, int replicateIndex, ChromFileInfo chromFileInfo, ChromInfo chromInfo)
 {
     MeasuredResults = measuredResults;
     ReplicateIndex = replicateIndex;
     ChromFileInfo = chromFileInfo;
     ChromInfo = chromInfo;
 }
        static int GetOptStep(ChromInfo chromInfo)
        {
            var transitionChromInfo = chromInfo as TransitionChromInfo;

            if (transitionChromInfo != null)
            {
                return(transitionChromInfo.OptimizationStep);
            }
            var transitionGroupChromInfo = chromInfo as TransitionGroupChromInfo;

            if (transitionGroupChromInfo != null)
            {
                return(transitionGroupChromInfo.OptimizationStep);
            }
            return(0);
        }
Exemple #3
0
        static Annotations GetAnnotations(ChromInfo chromInfo)
        {
            var transitionGroupChromInfo = chromInfo as TransitionGroupChromInfo;

            if (transitionGroupChromInfo != null)
            {
                return(transitionGroupChromInfo.Annotations);
            }
            var transitionChromInfo = chromInfo as TransitionChromInfo;

            if (transitionChromInfo != null)
            {
                return(transitionChromInfo.Annotations);
            }
            return(null);
        }
Exemple #4
0
        private bool IsMatch(ChromInfo chromInfo, PeptideDocNode nodePep)
        {
            var key = new PeakTransitionGroupIdKey(nodePep.Id.GlobalIndex, chromInfo.FileId.GlobalIndex);

            if (!_featureDictionary.ContainsKey(key))
            {
                return(false);
            }
            var listFeatures = _featureDictionary[key];

            foreach (var features in listFeatures)
            {
                if (IsUnknownScore(features, _selectedCalculator))
                {
                    return(true);
                }
            }
            return(false);
        }
 private bool IsMatch(ChromInfo chromInfo, PeptideDocNode nodePep)
 {
     var key = new KeyValuePair<int, int>(nodePep.Id.GlobalIndex, chromInfo.FileId.GlobalIndex);
     if (!_featureDictionary.ContainsKey(key))
         return false;
     var listFeatures = _featureDictionary[key];
     foreach (var features in listFeatures)
     {
         if (IsUnknownScore(features, _selectedCalculator))
             return true;
     }
     return false;
 }
Exemple #6
0
 static Annotations GetAnnotations(ChromInfo chromInfo)
 {
     var transitionGroupChromInfo = chromInfo as TransitionGroupChromInfo;
     if (transitionGroupChromInfo != null)
     {
         return transitionGroupChromInfo.Annotations;
     }
     var transitionChromInfo = chromInfo as TransitionChromInfo;
     if (transitionChromInfo != null)
     {
         return transitionChromInfo.Annotations;
     }
     return null;
 }
Exemple #7
0
 public override void SetAnnotation(AnnotationDef annotationDef, object value)
 {
     ChangeChromInfo(EditDescription.SetAnnotation(annotationDef, value),
                     ChromInfo.ChangeAnnotations(ChromInfo.Annotations.ChangeAnnotation(annotationDef, value)));
 }