示例#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
        /// <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();
        }