예제 #1
0
 public Schema(ISessionFactory sessionFactory, DataSettings dataSettings)
 {
     _sessionFactory = sessionFactory;
     _annotationDefNames = new HashSet<string>();
     if (dataSettings != null)
     {
         foreach (var annotationDef in dataSettings.AnnotationDefs)
         {
             _annotationDefNames.Add(AnnotationDef.GetKey(annotationDef.Name));
         }
     }
 }
예제 #2
0
 public bool Equals(DataSettings other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(ArrayUtil.EqualsDeep(other._annotationDefs, _annotationDefs) &&
            ArrayUtil.EqualsDeep(other._groupComparisonDefs, _groupComparisonDefs) &&
            Equals(ViewSpecList, other.ViewSpecList) &&
            Equals(PanoramaPublishUri, other.PanoramaPublishUri) &&
            Equals(DocumentGuid, other.DocumentGuid));
 }
예제 #3
0
 public SrmSettings ChangeDataSettings(DataSettings prop)
 {
     return ChangeProp(ImClone(this), im => im.DataSettings = prop);
 }
예제 #4
0
        public SrmSettings(string name, PeptideSettings peptideSettings, TransitionSettings transitionSettings, DataSettings dataSettings, DocumentRetentionTimes documentRetentionTimes)
            : base(name)
        {
            PeptideSettings = peptideSettings;
            TransitionSettings = transitionSettings;
            DataSettings = dataSettings;
            DocumentRetentionTimes = documentRetentionTimes;

            // Create cached calculator instances
            CreatePrecursorMassCalcs();
            CreateFragmentMassCalcs();
        }
예제 #5
0
 public bool Equals(DataSettings other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return ArrayUtil.EqualsDeep(other._annotationDefs, _annotationDefs)
            && ArrayUtil.EqualsDeep(other._groupComparisonDefs, _groupComparisonDefs)
            && Equals(ViewSpecList, other.ViewSpecList)
            && Equals(PanoramaPublishUri, other.PanoramaPublishUri)
            && Equals(DocumentGuid, other.DocumentGuid);
 }
예제 #6
0
 public DataSettings GetDataSettings(DataSettings dataSettings)
 {
     var selectedViews = new HashSet<string>(chooseViewsControl.CheckedViews
         .Where(viewName=>viewName.GroupId.Equals(PersistedViews.MainGroup.Id))
         .Select(viewName=>viewName.Name));
     var viewSpecs = Settings.Default.PersistedViews.GetViewSpecList(PersistedViews.MainGroup.Id)
         .ViewSpecs.Where(view => selectedViews.Contains(view.Name));
     return dataSettings.ChangeAnnotationDefs(_annotationsListBoxDriver.Chosen)
         .ChangeGroupComparisonDefs(_groupComparisonsListBoxDriver.Chosen)
         .ChangeViewSpecList(new ViewSpecList(viewSpecs));
 }