コード例 #1
0
ファイル: MzRun_Tests.cs プロジェクト: trishorts/DeconTools
        public void ValidateDataTest_temp()    //purpose is to compare
        {
            var testMz5File    = @"C:\Sipper\SipperDemo\RawDataFiles\Yellow_C13_070_23Mar10_Griffin_10-01-28.mz5";
            var testThermoFile =
                @"\\protoapps\UserData\Slysz\Standard_Testing\Targeted_FeatureFinding\SIPPER_standard_testing\Yellow_C13_070_23Mar10_Griffin_10-01-28.raw";

            var mz5run = new RunFactory().CreateRun(testMz5File);

            mz5run.IsDataThresholded = true;

            var thermoRun = new RunFactory().CreateRun(testThermoFile);

            var testScanMz5    = 6010;
            var testScanThermo = 6011;

            var testScanSet1      = new ScanSet(testScanMz5);
            var testScanSetThermo = new ScanSet(testScanThermo);

            mz5run.CurrentScanSet    = testScanSet1;
            thermoRun.CurrentScanSet = testScanSetThermo;


            mz5run.GetMassSpectrum(testScanSet1);
            thermoRun.GetMassSpectrum(testScanSetThermo);


            Assert.AreEqual(mz5run.XYData.Xvalues.Length, thermoRun.XYData.Xvalues.Length);

            for (var i = 0; i < mz5run.XYData.Xvalues.Length; i++)
            {
                Assert.AreEqual(mz5run.XYData.Xvalues[i], thermoRun.XYData.Xvalues[i]);
            }

            var peakDetector = new DeconToolsPeakDetectorV2();

            peakDetector.PeakToBackgroundRatio  = 3;
            peakDetector.SignalToNoiseThreshold = 2;



            peakDetector.Execute(mz5run.ResultCollection);

            //peakDetector.Execute(thermoRun.ResultCollection);


            TestUtilities.DisplayPeaks(mz5run.PeakList);

            Console.WriteLine();
            Console.WriteLine();

            // TestUtilities.DisplayPeaks(thermoRun.PeakList);
        }
コード例 #2
0
ファイル: MzRun_Tests.cs プロジェクト: trishorts/DeconTools
        public void ValidateDataTest1()    //purpose is to compare
        {
            var testMz5File    = @"\\protoapps\UserData\Slysz\DeconTools_TestFiles\mzXML\QC_Shew_08_04-pt5-2_11Jan09_Sphinx_08-11-18.mz5";
            var testThermoFile = FileRefs.RawDataMSFiles.OrbitrapStdFile1;

            var mz5run = new RunFactory().CreateRun(testMz5File);

            var thermoRun = new RunFactory().CreateRun(testThermoFile);

            var testScanMz5    = 6004;
            var testScanThermo = 6005;

            var testScanSet1      = new ScanSet(testScanMz5);
            var testScanSetThermo = new ScanSet(testScanThermo);

            mz5run.CurrentScanSet    = testScanSet1;
            thermoRun.CurrentScanSet = testScanSetThermo;


            mz5run.XYData    = mz5run.GetMassSpectrum(testScanSet1);
            thermoRun.XYData = thermoRun.GetMassSpectrum(testScanSetThermo);


            Assert.AreEqual(mz5run.XYData.Xvalues.Length, thermoRun.XYData.Xvalues.Length);

            for (var i = 0; i < mz5run.XYData.Xvalues.Length; i++)
            {
                Assert.AreEqual(mz5run.XYData.Xvalues[i], thermoRun.XYData.Xvalues[i]);
            }

            var peakDetector = new DeconToolsPeakDetectorV2();

            peakDetector.PeakToBackgroundRatio  = 3;
            peakDetector.SignalToNoiseThreshold = 2;

            //peakDetector.Execute(mz5run.ResultCollection);

            peakDetector.Execute(thermoRun.ResultCollection);


            //TestUtilities.DisplayPeaks(mz5run.PeakList);

            Console.WriteLine();
            Console.WriteLine();

            TestUtilities.DisplayPeaks(thermoRun.PeakList);
        }