public HTMLReportGenerator(ICollection<ResultWithImageInfo> resultImages, FileInputsInfo fileInputs)
        {
            _resultsWithImageInfo = resultImages;
            _fileInputsInfo = fileInputs;

            Check.Require(_fileInputsInfo != null, "FileInputs object is null");
        }
 public ManualViewingWithoutRawDataViewModel(TargetedResultRepository resultRepository, FileInputsInfo fileInputs = null)
     : this(fileInputs)
 {
     _resultRepositorySource = resultRepository;
     GetImageFileReferences(FileInputs.ResultImagesFolderPath);
     SetResults();
 }
        public ManualViewingWithoutRawDataViewModel(FileInputsInfo fileInputs = null)
        {
            Results = new ObservableCollection<ResultWithImageInfo>();

            _fileInputsInfo = fileInputs;
            FileInputs = new FileInputsViewModel(fileInputs);

            FileInputs.PropertyChanged += FileInputsPropertyChanged;
            _resultRepositorySource = new TargetedResultRepository();
        }
        public void Test1()
        {
            FileInputsInfo fileInputs = new FileInputsInfo();
            fileInputs.ResultImagesFolderPath = @"D:\Data\Temp\Results\Visuals";
            fileInputs.TargetsFilePath =@"\\protoapps\UserData\Slysz\Standard_Testing\Targeted_FeatureFinding\SIPPER_standard_testing\Yellow_C13_070_23Mar10_Griffin_10-01-28_testing_results.txt";

            ManualViewingWithoutRawDataViewModel viewModel = new ManualViewingWithoutRawDataViewModel(fileInputs);

            viewModel.LoadResults(viewModel.FileInputs.TargetsFilePath);
        }
        public void loadParametersTest1()
        {
            string testParameterFile =
                @"\\protoapps\UserData\Slysz\Standard_Testing\Targeted_FeatureFinding\SIPPER_standard_testing\SipperTargetedWorkflowParameters1.xml";

            FileInputsInfo fileInputs = new FileInputsInfo();
            fileInputs.ParameterFilePath = testParameterFile;

            ViewAndAnnotateViewModel viewModel = new ViewAndAnnotateViewModel(fileInputs);

            Assert.IsNotNull(viewModel.Workflow.WorkflowParameters);
            Assert.AreEqual(2,((TargetedWorkflowParameters)(viewModel.Workflow.WorkflowParameters)).MSPeakDetectorPeakBR);
        }
        public void OutputResultsForSelected300MassTags_C13()
        {
            FileInputsInfo fileInputs = new FileInputsInfo();

            fileInputs.DatasetDirectory = @"F:\Yellowstone\RawData";
            fileInputs.ResultsSaveFilePath = @"C:\Users\d3x720\Documents\PNNL\My_DataAnalysis\2012\C12C13YellowStone\2012_04_27_ASMS_Data\Yellow_C13_Visuals";
            fileInputs.TargetsFilePath =
                @"C:\Users\d3x720\Documents\PNNL\My_DataAnalysis\2012\C12C13YellowStone\2012_04_27_ASMS_Data\Yellow_C13_withSelected300MassTags_results.txt";

            fileInputs.ParameterFilePath =
                @"\\protoapps\UserData\Slysz\Standard_Testing\Targeted_FeatureFinding\SIPPER_standard_testing\SipperTargetedWorkflowParameters1.xml";

            ResultImageOutputter imageOutputter = new ResultImageOutputter(fileInputs);
            imageOutputter.Execute();
        }
        public void OutputResultsForLaurey()
        {
            FileInputsInfo fileInputs = new FileInputsInfo();

            fileInputs.DatasetDirectory = @"F:\Yellowstone\RawData";
            fileInputs.ResultsSaveFilePath = @"\\protoapps\UserData\Slysz\Data\Yellowstone\SIPPER\Results\Iteration05_Sum05_newColumns\Visuals";
            fileInputs.TargetsFilePath =
                @"\\protoapps\UserData\Slysz\Data\Yellowstone\SIPPER\Results\Iteration05_Sum05_newColumns\_Yellow_C13_Enriched_results.txt";

            fileInputs.ParameterFilePath =
                @"\\protoapps\UserData\Slysz\Standard_Testing\Targeted_FeatureFinding\SIPPER_standard_testing\SipperTargetedWorkflowParameters1.xml";

            ResultImageOutputter imageOutputter = new ResultImageOutputter(fileInputs);
            imageOutputter.Execute();
        }
        public void OutputResultsForASMS_1()
        {
            FileInputsInfo fileInputs = new FileInputsInfo();

            fileInputs.DatasetDirectory = @"F:\Yellowstone\RawData";
            fileInputs.ResultsSaveFilePath = @"C:\Users\d3x720\Documents\PNNL\My_DataAnalysis\2012\C12C13YellowStone\2012_04_27_ASMS_Data\Yellow_C13_070_23Mar10_Griffin_10-01-28_nonRedundant\Visuals";
            fileInputs.TargetsFilePath =
                @"C:\Users\d3x720\Documents\PNNL\My_DataAnalysis\2012\C12C13YellowStone\2012_04_27_ASMS_Data\Yellow_C13_070_23Mar10_Griffin_10-01-28_nonRedundant\Yellow_C13_070_23Mar10_Griffin_10-01-28_nonRedundant_enriched_results.txt";

            fileInputs.ParameterFilePath =
                @"\\protoapps\UserData\Slysz\Data\Yellowstone\SIPPER\SipperTargetedWorkflowParameters_Sum5.xml";

            ResultImageOutputter imageOutputter = new ResultImageOutputter(fileInputs);
            imageOutputter.Execute();
        }
        public ResultImageOutputter(FileInputsInfo fileInputs, BackgroundWorker worker = null)
        {
            _fileInputs = fileInputs;
            _backgroundWorker = worker;

            WorkflowParameters = new SipperTargetedWorkflowParameters();

            Workflow = new SipperTargetedWorkflow(WorkflowParameters);

            ChromGraphXWindowWidth = 400;

            NumResultsPerFolder = 200;

            InitializeGraphs();
        }
        public void Test1()
        {
            FileInputsInfo fileInputs = new FileInputsInfo();

            fileInputs.DatasetDirectory = @"D:\Data\Sipper";
            fileInputs.ResultsSaveFilePath = @"D:\Data\Temp\Results\Visuals";
            fileInputs.TargetsFilePath =
                @"\\protoapps\UserData\Slysz\Standard_Testing\Targeted_FeatureFinding\SIPPER_standard_testing\Yellow_C13_070_23Mar10_Griffin_10-01-28_testing_results.txt";

            fileInputs.ParameterFilePath =
                @"\\protoapps\UserData\Slysz\Standard_Testing\Targeted_FeatureFinding\SIPPER_standard_testing\SipperTargetedWorkflowParameters1.xml";

            ResultImageOutputter imageOutputter = new ResultImageOutputter(fileInputs);
            imageOutputter.Execute();
        }
        public HTMLReportGenerator(TargetedResultRepository repo, FileInputsInfo fileInputs)
        {
            _resultRepository = repo;

            _fileInputsInfo = fileInputs;

            _resultsWithImageInfo = new List<ResultWithImageInfo>();

            foreach (var targetedResultDto in repo.Results)
            {
                ResultWithImageInfo r = new ResultWithImageInfo((SipperLcmsFeatureTargetedResultDTO)targetedResultDto);

                _resultsWithImageInfo.Add(r);
            }

            GetImageFileReferences(_fileInputsInfo.ResultImagesFolderPath);
            MapResultsToImages();
        }
Пример #12
0
 public Project()
 {
     ResultRepository = new TargetedResultRepository();
     FileInputs = new FileInputsInfo();
 }
Пример #13
0
 public Project(TargetedResultRepository targetedResultRepository, FileInputsInfo fileInputsInfo)
 {
     ResultRepository = targetedResultRepository;
     FileInputs = fileInputsInfo;
 }
 public AutoprocessorViewModel(TargetedResultRepository resultRepository, FileInputsInfo fileInputs = null)
     : this(fileInputs)
 {
     _resultRepository = resultRepository;
 }
 public AutoprocessorViewModel(FileInputsInfo fileInputs)
     : this()
 {
     FileInputs = new FileInputsViewModel(fileInputs);
 }
 public FileInputsViewModel(FileInputsInfo fileInputsInfo)
     : this()
 {
     _fileInputsInfo = fileInputsInfo ?? new FileInputsInfo();
 }
 public FileInputsViewModel()
 {
     _fileInputsInfo = new FileInputsInfo();
 }
        public void loadResultsTest()
        {
            string testParameterFile =
                @"\\protoapps\UserData\Slysz\Standard_Testing\Targeted_FeatureFinding\SIPPER_standard_testing\SipperTargetedWorkflowParameters1.xml";

            string testResultFile =
                @"\\protoapps\UserData\Slysz\Standard_Testing\Targeted_FeatureFinding\SIPPER_standard_testing\Yellow_C13_070_23Mar10_Griffin_10-01-28_testing_results.txt";

            FileInputsInfo fileInputs = new FileInputsInfo();
            fileInputs.ParameterFilePath = testParameterFile;
            fileInputs.TargetsFilePath = testResultFile;

            ViewAndAnnotateViewModel viewModel = new ViewAndAnnotateViewModel(fileInputs);

            viewModel.LoadResults(testResultFile);
            Assert.IsNotEmpty(viewModel.Results);
        }
        public ViewAndAnnotateViewModel(TargetedResultRepository resultRepository, FileInputsInfo fileInputs = null)
            : this(fileInputs)
        {
            _resultRepositorySource = resultRepository;
            SetResults(_resultRepositorySource.Results);

            if (IsAllDataReady)
            {
                OnAllDataLoadedAndReady(new EventArgs());
            }
        }
        public ViewAndAnnotateViewModel(FileInputsInfo fileInputs)
            : this()
        {
            FileInputs = new FileInputsViewModel(fileInputs);
            FileInputs.PropertyChanged += FileInputsPropertyChanged;

            LoadParameters();
            UpdateGraphRelatedProperties();
        }
        public void ViewProteinResultsAcrossAllDatasets()
        {
            FileInputsInfo fileInputs = new FileInputsInfo();

            fileInputs.DatasetDirectory = @"F:\Yellowstone\RawData";
            fileInputs.ResultsSaveFilePath = @"C:\Users\d3x720\Documents\PNNL\My_DataAnalysis\2012\C12C13YellowStone\2012_06_25_SipperQuant_testing\ProteinCentricResults\Visuals";
            fileInputs.TargetsFilePath =
                @"C:\Users\d3x720\Documents\PNNL\My_DataAnalysis\2012\C12C13YellowStone\2012_06_25_SipperQuant_testing\ProteinCentricResults\Targets\ref38803_results.txt";

            fileInputs.ParameterFilePath =
                @"\\protoapps\UserData\Slysz\Data\Yellowstone\SIPPER\SipperTargetedWorkflowParameters_Sum5.xml";

            ResultImageOutputter imageOutputter = new ResultImageOutputter(fileInputs);
            imageOutputter.Execute();
        }