Esempio n. 1
0
 public GroupComparisonSelector(PeptideGroupDocNode protein, PeptideDocNode peptide, IsotopeLabelType labelType,
                                int?msLevel, GroupIdentifier groupIdentifier)
 {
     Protein         = protein;
     Peptide         = peptide;
     LabelType       = labelType;
     MsLevel         = msLevel;
     GroupIdentifier = groupIdentifier;
 }
Esempio n. 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)));
        }
Esempio n. 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)));
        }
Esempio n. 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)));
        }