/// <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); }
/// <summary> /// Creates a list of filters /// </summary> /// <returns></returns> public static ITargetFilter CreateFilters(SupportedTools tool, Options options) { ITargetFilter filter = null; switch (tool) { case SupportedTools.Sequest: filter = new BottomUpSequestTargetFilter(options); break; case SupportedTools.XTandem: filter = new BottomUpXTandemTargetFilter(options); break; case SupportedTools.MsgfPlus: filter = new BottomUpMsgfTargetFilter(options); break; case SupportedTools.NotSupported: break; default: break; } return(filter); }