public void test1(string settingsFileName)
        {
            var methodName = MethodBase.GetCurrentMethod().Name;

            var deconToolsParamFile = Test.GetTestFile(methodName, settingsFileName);

            Console.WriteLine("Reading " + deconToolsParamFile.FullName);

            var loader = new DeconToolsFilterLoader(deconToolsParamFile.FullName);

            loader.DisplayFilters();

            var testFeature1 = new MSFeature
            {
                Abundance         = 16117,
                DriftTime         = 20.584f,
                Fit               = 0.0264f,
                Fwhm              = 0.0689f,
                InterferenceScore = 0,
                MassMonoisotopic  = 2902.229,
                Mz      = 726.5646,
                ScanIMS = 126,
                ScanLC  = 384,
                Charge  = 4
            };


            var isValid = DeconToolsFilterUtil.IsValidMSFeature(testFeature1, loader.DeconToolsFilterList);

            Assert.IsTrue(isValid);

            //384,126,4,16117,726.5646,0.0264,2904.08709,2902.229,2903.23217,0.0689,55.2,9527,14254,0,0,20.584,,0
        }
コード例 #2
0
        public void test1(string settingsFileName)
        {
            var methodName = MethodBase.GetCurrentMethod().Name;

            var deconToolsParamFile = Test.GetTestFile(methodName, settingsFileName);

            Console.WriteLine("Reading " + deconToolsParamFile.FullName);
            var loader = new DeconToolsFilterLoader(deconToolsParamFile.FullName);

            loader.DisplayFilters();

            var testFilter1 = loader.DeconToolsFilterList[6];

            Assert.AreEqual(2, testFilter1.ChargeMinimum);
            Assert.AreEqual(2147483647, testFilter1.ChargeMaximum);
            Assert.AreEqual(500, testFilter1.AbundanceMinimum);
            Assert.AreEqual(1000, testFilter1.AbundanceMaximum);
            Assert.AreEqual(0.3, testFilter1.FitScoreMaximum);
            Assert.AreEqual(0, testFilter1.InterferenceScoreMaximum);

            //2 2147483647  500 1000    0.3 0
        }