Esempio n. 1
0
        public IqResult(IqTarget target)
        {
            _labelFreeResultExporter = new IqLabelFreeResultExporter();
            _childResults            = new List <IqResult>();

            Target            = target;
            IqResultDetail    = new IqResultDetail();
            CorrelationData   = new ChromCorrelationData();
            FitScore          = 1;
            InterferenceScore = 1;
            IsExported        = true;
        }
        public void ExportResults(string filename)
        {
            if (IqResultsForAlignment == null || IqResultsForAlignment.Count == 0)
            {
                IqLogger.Log.Info("Iq mass and NET aligner trying to export results. But no results exist.");
                return;
            }

            try
            {
                IqResultExporter exporter = new IqLabelFreeResultExporter();
                exporter.WriteOutResults(filename, IqResultsForAlignment);
            }
            catch (Exception ex)
            {
                IqLogger.Log.Info("Iq mass and NET aligner trying to export results but there was an error. Error details: " + ex.Message);
            }
        }