/// <summary> /// The headers for a particular metadata (misc user data) set /// </summary> public static DataSet <string> ForMetaHeaders(MetaInfoHeader headerCollection) { return(new DataSet <string>() { ListTitle = "Headers", ListSource = headerCollection.Headers, Icon = Resources.IconInformation, }); }
/// <summary> /// Main constructor. /// </summary> public Core(DataFileNames fileNames, FrmActDataLoad.DataSet data, List <Compound> compounds, List <Pathway> pathways, MetaInfoHeader compMeta, MetaInfoHeader pathMeta, List <Adduct> adducts, MetaInfoHeader adductsHeader, MetaInfoHeader annotationsHeader) { this.CoreGuid = Guid.NewGuid(); this.FileNames = fileNames; this.Options = new CoreOptions() { Core = this }; this.Options.ViewTypes = new List <GroupInfo>(data.Types.OrderBy(z => z.DisplayPriority)); this._adducts = adducts; this._peaks = data.Peaks; this._compounds = compounds; this._pathways = pathways; this._observations = data.Observations; this._conditions = data.Conditions; this._groups = data.Types; this._batches = data.Batches; this._peakMeta = data.PeakMetaHeader; this._obsMeta = data.ObsMetaHeader; this._compoundsMeta = compMeta; this._pathwaysMeta = pathMeta; this._adductsMeta = adductsHeader; this._annotationsMeta = annotationsHeader; this._clusterers = new List <ConfigurationClusterer>(); this._statistics = new List <ConfigurationStatistic>(); this._corrections = new List <ConfigurationCorrection>(); this._trends = new List <ConfigurationTrend>(); this._peakFilters = new List <PeakFilter>(); this._obsFilters = new List <ObsFilter>(); this._alises = new List <ProviderAlias>(); this._cache = new CachedData(this); this._originalData = new List <OriginalData>(); this._originalData.Add(data.IntensityMatrix); if (data.AltIntensityMatrix != null) { this._originalData.Add(data.AltIntensityMatrix); } this._alises.Add(new ProviderAlias(this, EProviderAlias.LastCorrection, null) { OverrideDisplayName = "Latest correction" }); this._alises.Add(new ProviderAlias(this, EProviderAlias.LastTrend, null) { OverrideDisplayName = "Latest trend" }); }