Пример #1
0
        public void TestParallelFeatureFinding()
        {
            var fileLocation = @"\\proto-2\UnitTest_Files\MultidimensionalFeatureFinding\BSA_10ugml_IMS6_TOF03_CID_27Aug12_Frodo_Collision_Energy_Collapsed.UIMF";
            var targetMzList = new List <double> {
                582.3218, 964.40334, 643.27094937
            };

            var featureUtil      = new FeatureDetectionUtil(fileLocation, 11, 4);
            var targetDictionary = featureUtil.GetFeatures(targetMzList, 30, UIMFData.FrameType.MS1, DataReader.ToleranceType.PPM);

            foreach (var kvp in targetDictionary)
            {
                Console.WriteLine(kvp.Key + "\t" + kvp.Value.Count());
            }
        }
Пример #2
0
        public void TestParallelFeatureFindingUsingBins()
        {
            var fileLocation = @"\\proto-2\UnitTest_Files\MultidimensionalFeatureFinding\BSA_10ugml_IMS6_TOF03_CID_27Aug12_Frodo_Collision_Energy_Collapsed.UIMF";
            //List<int> targetBinList = new List<int> { 20000, 30000, 40000, 50000, 60000, 70000, 80000, 90000, 10000 };
            var targetBinList = new List <int>();

            for (var i = 10000; i < 100000; i += 1000)
            {
                targetBinList.Add(i);
            }

            var featureUtil      = new FeatureDetectionUtil(fileLocation, 11, 4);
            var targetDictionary = featureUtil.GetFeatures(targetBinList, 30, UIMFData.FrameType.MS1, DataReader.ToleranceType.PPM);

            //foreach (var kvp in targetDictionary)
            //{
            //    Console.WriteLine(kvp.Key + "\t" + kvp.Value.Count());
            //}
        }