コード例 #1
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();
        }
コード例 #2
0
 public void CreateBaselinePlots(BaselineFeaturesLoadedEventArgs e)
 {
     Action workAction = () =>
     {
         BuildBaselineView(e);
         Reporter.CreateBaselinePlots(e);
     };
     ThreadSafeDispatcher.Invoke(workAction);
 }
コード例 #3
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);
         }
     }
 }
コード例 #4
0
        private void processor_BaselineFeaturesLoaded(object sender, BaselineFeaturesLoadedEventArgs e)
        {
            m_reportCreator.CreateBaselinePlots(e);

            if (e.DatasetInformation != null && e.Features != null)
            {
                ReportPeptideFeatures(e.DatasetInformation, e.Features.ToList());
            }
        }