/// <summary>
        ///
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        public static IAnalysisReader CreateReader(SupportedTools tool)
        {
            IAnalysisReader reader = null;

            switch (tool)
            {
            case SupportedTools.Sequest:
                reader = new SequestAnalysisReader();
                break;

            case SupportedTools.XTandem:
                reader = new XTandemAnalysisReader();
                break;

            case SupportedTools.MsgfPlus:
                reader = new MsgfPlusAnalysisReader();
                break;

            case SupportedTools.NotSupported:
                break;

            default:
                break;
            }
            return(reader);
        }
Esempio n. 2
0
        public void FailedDataset03()
        {
            string aidPath = @"..\..\..\data\RegressionTests\AID_MPB_Hybrid_UnitTest003.txt";

            if (!File.Exists(aidPath))
            {
                throw new FileNotFoundException("The unit test file " + aidPath + " was not found.");
            }

            // Make sure we have the full path so other referenced assemblies can find the test file.
            aidPath = Path.GetFullPath(aidPath);

            // Read the data file that holds all of the DMS related information.
            clsAnalysisDescriptionReader reader = new clsAnalysisDescriptionReader(aidPath);

            // We dont need to loop, since this test file should only have one analysis
            // file in it, however, we'll do this for completeness.  Find all the datasets
            // that we are interested in processing.
            foreach (clsAnalysisDescription description in reader.Analyses)
            {
                SequestAnalysisReader sequestData = new SequestAnalysisReader(description.mstrArchivePath, description.mstrDataset);
            }
        }