Пример #1
0
        public void OnlyLoadWithDriftTime(string server, string databaseName)
        {
            var analysis                          = new MultiAlignAnalysis();
            analysis.Options.MassTagDatabaseOptions.OnlyLoadTagsWithDriftTime = true;

            analysis.MetaData.Database = new InputDatabase(MassTagDatabaseFormat.MassTagSystemSql)
            {
                DatabaseServer = server,
                DatabaseName = databaseName
            };

            var loader      = new MTSMassTagDatabaseLoader(databaseName, server, analysis.Options.MassTagDatabaseOptions);
            var database    = loader.LoadDatabase();

            foreach(var tag in database.MassTags)
            {
                Assert.IsTrue(tag.DriftTime > 0);
            }
        }
Пример #2
0
        public void OnlyLoadWithDriftTime(string server, string databaseName)
        {
            var analysis = new MultiAlignAnalysis();

            analysis.Options.MassTagDatabaseOptions.OnlyLoadTagsWithDriftTime = true;

            analysis.MetaData.Database = new InputDatabase(MassTagDatabaseFormat.MassTagSystemSql)
            {
                DatabaseServer = server,
                DatabaseName   = databaseName
            };

            var loader   = new MTSMassTagDatabaseLoader(databaseName, server, analysis.Options.MassTagDatabaseOptions);
            var database = loader.LoadDatabase();

            foreach (var tag in database.MassTags)
            {
                Assert.IsTrue(tag.DriftTime > 0);
            }
        }
Пример #3
0
        public void LoadWithoutDriftTime(string server, string databaseName)
        {
            var analysis                                         = new MultiAlignAnalysis();
            analysis.Options.MassTagDatabaseOptions.OnlyLoadTagsWithDriftTime   = false;

            analysis.MetaData.Database = new InputDatabase(MassTagDatabaseFormat.MassTagSystemSql)
            {
                DatabaseServer = server,
                DatabaseName = databaseName
            };

            MassTagDatabaseLoader loader = new MTSMassTagDatabaseLoader(databaseName, server, analysis.Options.MassTagDatabaseOptions);
            var database                 = loader.LoadDatabase();

            MassTagDatabaseLoader loader2   = new MTSMassTagDatabaseLoader(databaseName, server, analysis.Options.MassTagDatabaseOptions);
            loader2.Options.OnlyLoadTagsWithDriftTime = true;
            var database2                   = loader.LoadDatabase();

            Assert.Greater(database.MassTags.Count, database2.MassTags.Count);
        }
Пример #4
0
        public void LoadWithoutDriftTime(string server, string databaseName)
        {
            var analysis = new MultiAlignAnalysis();

            analysis.Options.MassTagDatabaseOptions.OnlyLoadTagsWithDriftTime = false;

            analysis.MetaData.Database = new InputDatabase(MassTagDatabaseFormat.MassTagSystemSql)
            {
                DatabaseServer = server,
                DatabaseName   = databaseName
            };

            MassTagDatabaseLoader loader = new MTSMassTagDatabaseLoader(databaseName, server, analysis.Options.MassTagDatabaseOptions);
            var database = loader.LoadDatabase();

            MassTagDatabaseLoader loader2 = new MTSMassTagDatabaseLoader(databaseName, server, analysis.Options.MassTagDatabaseOptions);

            loader2.Options.OnlyLoadTagsWithDriftTime = true;
            var database2 = loader.LoadDatabase();


            Assert.Greater(database.MassTags.Count, database2.MassTags.Count);
        }