Beispiel #1
0
        public void CreateBaselinePlots(BaselineFeaturesLoadedEventArgs e)
        {
            Action workAction = () =>
            {
                BuildBaselineView(e);
                Reporter.CreateBaselinePlots(e);
            };

            ThreadSafeDispatcher.Invoke(workAction);
        }
Beispiel #2
0
 /// <summary>
 ///     Builds the alignment plot views.
 /// </summary>
 /// <param name="e"></param>
 private void BuildBaselineView(BaselineFeaturesLoadedEventArgs e)
 {
     // We dont care about the dataset
     if (e.DatasetInformation != null)
     {
         var view = new FeaturePlotView {
             BaselineData = e
         };
         GalleryImages.Insert(0, view);
         if (GalleryImages.Count > 10)
         {
             GalleryImages.RemoveAt(0);
         }
     }
 }
Beispiel #3
0
        /// <summary>
        ///     Creates images for the HTML output for baseline data
        /// </summary>
        /// <param name="e"></param>
        public void CreateBaselinePlots(BaselineFeaturesLoadedEventArgs e)
        {
            var baselineInfo = e.DatasetInformation;

            if (baselineInfo == null)
            {
                return;
            }

            var feature   = ScatterPlotFactory.CreateFeatureMassScatterPlot(e.Features);
            var name      = e.DatasetInformation.DatasetName;
            var directory = Path.Combine(Config.AnalysisPath, PlotPath, name);

            var report = Config.Report;

            report.PushTextHeader("Baseline Features");
            report.PushStartTableRow();
            Config.Report.PushImageColumn(directory + "_features.png", WIDTH, HEIGHT);
            PlotImageUtility.SaveImage(feature, directory + "_features.png");
            report.PushEndTableRow();
        }