/// <summary> /// Configure and return the appropriate target filter /// </summary> /// <param name="tool"></param> /// <param name="options"></param> /// <returns></returns> public static ITargetFilter Create(LcmsIdentificationTool tool, Options options) { ITargetFilter targetFilter = null; switch (tool) { case LcmsIdentificationTool.MsgfPlus: targetFilter = new MsgfPlusTargetFilter(options); break; case LcmsIdentificationTool.MZIdentML: targetFilter = new MsgfPlusTargetFilter(options); break; case LcmsIdentificationTool.Sequest: targetFilter = new SequestTargetFilter(options); break; case LcmsIdentificationTool.XTandem: targetFilter = new XTandemTargetFilter(options); break; case LcmsIdentificationTool.MSAlign: targetFilter = new MsAlignTargetFilter(options); break; } return(targetFilter); }
/// <summary> /// Create an alignment filter /// </summary> /// <param name="tool">Format of input data</param> /// <param name="options">Options</param> /// <returns>Alignment filter</returns> public static ITargetFilter Create(LcmsIdentificationTool tool, Options options) { ITargetFilter alignmentFilter = null; switch (tool) { case LcmsIdentificationTool.MsgfPlus: alignmentFilter = new MsgfPlusAlignmentFilter(options); break; case LcmsIdentificationTool.MZIdentML: alignmentFilter = new MsgfPlusAlignmentFilter(options); break; case LcmsIdentificationTool.Sequest: alignmentFilter = new SequestAlignmentFilter(options); break; case LcmsIdentificationTool.XTandem: alignmentFilter = new XTandemAlignmentFilter(options); break; case LcmsIdentificationTool.MSAlign: alignmentFilter = new MsAlignAlignmentFilter(options); break; } return alignmentFilter; }
/// <summary> /// Constructor /// </summary> /// <param name="name">Name of dataset</param> /// <param name="tool">Format of dataset</param> /// <param name="evidences">Evidences in dataset</param> public LcmsDataSet(string name, LcmsIdentificationTool tool, IEnumerable <Evidence> evidences) { PreviouslyAnalyzed = false; Name = name; Tool = tool; Evidences = new List <Evidence>(evidences); RegressionResult = new LinearRegressionResult(); }
/// <summary> /// Constructor /// </summary> /// <param name="path"></param> /// <param name="format"></param> public AnalysisJobItem(string path, LcmsIdentificationTool format) { FileName = Path.GetFileName(path); BaseFolder = Path.GetDirectoryName(path); FilePath = path; Format = format; Title = FileName.Replace(FileName.Substring(FileName.LastIndexOf('_')), String.Empty); }
public FileDialogFormatInfo(string title, string filter, LcmsIdentificationTool format) { Title = title; Filter = filter; Format = format; }