/// <summary> /// Get the normalized dataset path; only returns a different string when the given path is to a file/folder in a folder-type dataset /// </summary> /// <param name="path"></param> /// <returns>Normalized dataset path</returns> public static string NormalizeDatasetPath(string path) { return(ProteoWizardReader.CheckForDirectoryDataset(path)); }
/// <summary> /// Constructor /// </summary> /// <param name="filePath"></param> /// <remarks>To avoid assembly resolving errors, the ProteoWizardAssemblyResolver should be added as an AssemblyResolve event handler, as follows: /// <code>AppDomain.CurrentDomain.AssemblyResolve += ProteoWizardReader.ProteoWizardAssemblyResolver;</code> /// </remarks> public ProteoWizardReaderImplementation(string filePath) { AppDomain.CurrentDomain.AssemblyResolve += ProteoWizardAssemblyResolver; FilePath = ProteoWizardReader.CheckForDirectoryDataset(filePath); }
/// <summary> /// Utility function: Gets the actual dataset name, needed in cases when a file in a folder-type dataset is given. /// </summary> /// <param name="path"></param> /// <returns>The path to the dataset, or the path to the dataset directory</returns> public static string GetDatasetName(string path) { return(ProteoWizardReader.CheckForDirectoryDataset(path)); }