RawFilelReader is a group of .Net Assemblies written in C# used to read Thermo Scientific RAW files. The assemblies can be used to read RAW files on Windows, Linux, and MacOS using C# or other languages that can acces a .Net assembly.
RawFileReader replaces our older product (MSFileReader) which can still be downloaded from our Software Download site (https://thermo.flexnetoperations.com/control/thmo/login?nextURL=%2Fcontrol%2Fthmo%2Fhome)
RawFileReaderExample.cs shows how to access a RAW file using RawFileReader and read header, chromatographic, or spectral data fromm the RAW file. The program can be complied with Visual Studio 2017, 2019, or 2022 and Visual Studio Code. You will need to download a copy of the RawFileReader NuGet package files to compile the xample program. The most recent version that has been released to customers are found in the libs folder. Older version of the assemblies are stored on our OneDrive site. To get those versions of the files, please e-mail [email protected] for access to our OneDrive site.
Example
This is the rebuild of RawFileReader to be used in python. To use it, you should install the following dependencies:
- Microsoft.NET 8.0 SDK[https://dotnet.microsoft.com/en-us/download/dotnet/8.0]
To build the RawFileReader, you should run the following command in the terminal:
pip install src/RawFileReaderPythonTo use RawFileReader in python, you can use the following code snippet:
from RawFileReader import RawFileReader
path_to_raw = "path/to/your/file.raw"
reader = RawFileReader(path_to_raw)
reader.to_mzml("output.mzML")