예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            //MassTagDOATest massTagTest = new MassTagDOATest();
            SetupDataProviders(@"m:\data\proteomics\matest-gui\guitest.db3");
            MSFeatureDAOHibernate dao = new MSFeatureDAOHibernate();

            System.DateTime       start    = DateTime.Now;
            List <MSFeatureLight> features = dao.FindByDatasetId(0);

            System.DateTime end = DateTime.Now;
            //msFeatureTest.LoadMSFeaturesFromCache(@"m:\data\proteomics\matest-gui\guitest.db3");
            TimeSpan span = end.Subtract(start);

            System.Console.WriteLine("{0} total ms", span.TotalMilliseconds);

            MSFeatureDOATest msFeatureTest = new MSFeatureDOATest();

            start = System.DateTime.Now;
            msFeatureTest.LoadMSFeaturesFromCache(@"m:\data\proteomics\matest-gui\guitest.db3");
            end  = System.DateTime.Now;
            span = end.Subtract(start);
            System.Console.WriteLine("{0} total ms", span.TotalMilliseconds);
            //UMCFeatureFinding finding = new UMCFeatureFinding();
            //finding.Test();


            //return;

            //try
            //{
            //    string data = "-2147483648";
            //    long abu = Int64.Parse(data);

            //    UMCReaderFailure failTest = new UMCReaderFailure();
            //    failTest.Test();
            //}
            //catch (Exception ex)
            //{
            //    throw ex;
            //}
            // SetupDataProviders();
            //MassTagDOATest massTagTest = new MassTagDOATest();
            //MSFeatureDOATest msFeatureTest = new MSFeatureDOATest();

            //msFeatureTest.LoadMSFeaturesFromCache(@"m:\data\proteomics\matest-gui\guitest.db3");

            //massTagTest.SaveMassTags();
            //msFeatureTest.SaveMSFeatures();

            //NHibernateUtil.CloseSession();
        }
예제 #2
0
파일: Program.cs 프로젝트: msdna/MultiAlign
        /// <summary>
        /// 
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            //MassTagDOATest massTagTest = new MassTagDOATest();
            SetupDataProviders(@"m:\data\proteomics\matest-gui\guitest.db3");
            MSFeatureDAOHibernate dao = new MSFeatureDAOHibernate();
            System.DateTime start = DateTime.Now;
            List<MSFeatureLight> features = dao.FindByDatasetId(0);
            System.DateTime end = DateTime.Now;
            //msFeatureTest.LoadMSFeaturesFromCache(@"m:\data\proteomics\matest-gui\guitest.db3");
            TimeSpan span = end.Subtract(start);
            System.Console.WriteLine("{0} total ms", span.TotalMilliseconds);

            MSFeatureDOATest msFeatureTest = new MSFeatureDOATest();
            start = System.DateTime.Now;
            msFeatureTest.LoadMSFeaturesFromCache(@"m:\data\proteomics\matest-gui\guitest.db3");
            end = System.DateTime.Now;
            span = end.Subtract(start);
            System.Console.WriteLine("{0} total ms", span.TotalMilliseconds);
            //UMCFeatureFinding finding = new UMCFeatureFinding();
            //finding.Test();

            //return;

            //try
            //{
            //    string data = "-2147483648";
            //    long abu = Int64.Parse(data);

            //    UMCReaderFailure failTest = new UMCReaderFailure();
            //    failTest.Test();
            //}
            //catch (Exception ex)
            //{
            //    throw ex;
            //}
            // SetupDataProviders();
            //MassTagDOATest massTagTest = new MassTagDOATest();
            //MSFeatureDOATest msFeatureTest = new MSFeatureDOATest();

            //msFeatureTest.LoadMSFeaturesFromCache(@"m:\data\proteomics\matest-gui\guitest.db3");

            //massTagTest.SaveMassTags();
            //msFeatureTest.SaveMSFeatures();

            //NHibernateUtil.CloseSession();
        }
예제 #3
0
        public void TestLoad(string path)
        {
            SetupDataProviders(path);
            var dao = new MSFeatureDAOHibernate();
            var start = DateTime.Now;
            dao.FindByDatasetId(0);
            var end = DateTime.Now;
            var span = end.Subtract(start);
            Console.WriteLine("{0} total ms", span.TotalMilliseconds);

            var msFeatureTest = new MSFeatureDOATest();
            start = DateTime.Now;
            msFeatureTest.LoadMSFeaturesFromCache(path);
            end = DateTime.Now;
            span = end.Subtract(start);
            Console.WriteLine("{0} total ms", span.TotalMilliseconds);
        }
예제 #4
0
        public void TestLoad(string path)
        {
            SetupDataProviders(path);
            var dao   = new MSFeatureDAOHibernate();
            var start = DateTime.Now;

            dao.FindByDatasetId(0);
            var end  = DateTime.Now;
            var span = end.Subtract(start);

            Console.WriteLine("{0} total ms", span.TotalMilliseconds);

            var msFeatureTest = new MSFeatureDOATest();

            start = DateTime.Now;
            msFeatureTest.LoadMSFeaturesFromCache(path);
            end  = DateTime.Now;
            span = end.Subtract(start);
            Console.WriteLine("{0} total ms", span.TotalMilliseconds);
        }