예제 #1
0
 public GroupComparisonSelector(PeptideGroupDocNode protein, PeptideDocNode peptide, IsotopeLabelType labelType,
                                int?msLevel, GroupIdentifier groupIdentifier)
 {
     Protein         = protein;
     Peptide         = peptide;
     LabelType       = labelType;
     MsLevel         = msLevel;
     GroupIdentifier = groupIdentifier;
 }
예제 #2
0
        public GroupIdentifier GetGroupIdentifier(SrmSettings settings, ChromatogramSet chromatogramSet)
        {
            AnnotationDef annotationDef =
                settings.DataSettings.AnnotationDefs.FirstOrDefault(a => a.Name == ControlAnnotation);

            if (annotationDef == null)
            {
                return(default(GroupIdentifier));
            }
            return(GroupIdentifier.MakeGroupIdentifier(chromatogramSet.Annotations.GetAnnotation(annotationDef)));
        }
예제 #3
0
        public GroupIdentifier GetGroupIdentifier(AnnotationCalculator annotationCalculator, ChromatogramSet chromatogramSet)
        {
            AnnotationDef annotationDef =
                annotationCalculator.SrmDocument.Settings.DataSettings.AnnotationDefs.FirstOrDefault(a => a.Name == ControlAnnotation);

            if (annotationDef == null)
            {
                return(default(GroupIdentifier));
            }
            return(GroupIdentifier.MakeGroupIdentifier(annotationCalculator.GetReplicateAnnotation(annotationDef, chromatogramSet)));
        }
예제 #4
0
        public GroupIdentifier GetControlGroupIdentifier(SrmSettings settings)
        {
            if (string.IsNullOrEmpty(ControlAnnotation))
            {
                return(default(GroupIdentifier));
            }
            AnnotationDef annotationDef =
                settings.DataSettings.AnnotationDefs.FirstOrDefault(a => a.Name == ControlAnnotation);

            if (annotationDef == null)
            {
                return(default(GroupIdentifier));
            }
            return(GroupIdentifier.MakeGroupIdentifier(annotationDef.ParsePersistedString(ControlValue)));
        }