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