Пример #1
0
        private void RunScript(ProfinderLogic qualAppLogic, List <string> analysisFiles)
        {
            List <Analysis> Analyses = new List <Analysis>();

            foreach (string analysisPath in analysisFiles)
            {
                Analysis anlysis = qualAppLogic.DataHeirarchy.AnalysisStore.Values.Cast <Analysis>().First(a => a.FilePath == analysisPath);
                Analyses.Add(anlysis);
            }
            CmdFindByMFE cmdMFE1 = new CmdFindByMFE(qualAppLogic, MFEMode.RECURSIVE_STAGE_1, Analyses);

            ExecuteCommand(qualAppLogic, cmdMFE1);
            Console.WriteLine(" Find by MFE of " + MFEMode.RECURSIVE_STAGE_1 + " has completed");
            CmdRecursiveMFE rmfe = new CmdRecursiveMFE(qualAppLogic, Analyses);

            ExecuteCommand(qualAppLogic, rmfe);
            Console.WriteLine(" recursive mfe is done ");
            CmdFilterCompoundGroupsMFE cgMfe = new CmdFilterCompoundGroupsMFE(qualAppLogic, analysisFiles);

            ExecuteCommand(qualAppLogic, cgMfe);
            CmdFindByMFE cmdMFE2 = new CmdFindByMFE(qualAppLogic, MFEMode.RECURSIVE_STAGE_2, Analyses);

            ExecuteCommand(qualAppLogic, cmdMFE2);
            Console.WriteLine(" Find by MFE of " + MFEMode.RECURSIVE_STAGE_2 + " has completed");
            CmdFilterCompoundGroupsMFEPost cgpMfePost = new CmdFilterCompoundGroupsMFEPost(qualAppLogic, analysisFiles);

            ExecuteCommand(qualAppLogic, cgpMfePost);
            Console.WriteLine(" Filtering Done ");
            Console.WriteLine(" Compound Groups of datastore updated");
        }
Пример #2
0
        private void ExecuteScript(List <Analysis> analyses, List <string> m_analysisFiles)
        {
            CmdFindByMFE cmdMFE1 = new CmdFindByMFE(qualAppLogic, MFEMode.RECURSIVE_STAGE_1, analyses);

            ExecuteCommand(qualAppLogic, cmdMFE1);
            CmdRecursiveMFE rmfe = new CmdRecursiveMFE(qualAppLogic, analyses);

            ExecuteCommand(qualAppLogic, rmfe);
            CmdFilterCompoundGroupsMFE cgMfe = new CmdFilterCompoundGroupsMFE(qualAppLogic);

            ExecuteCommand(qualAppLogic, cgMfe);
            CmdFindByMFE cmdMFE2 = new CmdFindByMFE(qualAppLogic, MFEMode.RECURSIVE_STAGE_2, analyses);

            ExecuteCommand(qualAppLogic, cmdMFE2);
            CmdFilterCompoundGroupsMFEPost cgpMfePost = new CmdFilterCompoundGroupsMFEPost(qualAppLogic);

            ExecuteCommand(qualAppLogic, cgpMfePost);
            Console.WriteLine("Algorithm Execution Completed");
        }