MSRead
The MSRead module enables a simple reading of popular Mass Spectrometry data formats including: mzData, mzXML, mzML, MGF, ASCII XY and Thermo Raw files.
import msread
# open file
with msread.read("myfile.mzML") as reader:
# show summary
reader.summary(show=True)
# read headers only
for header in reader.headers(min_rt=5*60, max_rt=10*60, ms_level=1):
print(header)
# read scans
for scan in reader.scans(min_rt=5*60, max_rt=10*60, ms_level=1):
print(scan.header)
print(scan.centroids)
Requirements:
- Python 3.7
- Numpy
- [comtypes] (To read Thermo Raw files. Windows only.)
- [MSFileReader] (To read Thermo Raw files. Windows only.)
Install from source:
$ python setup.py install
or
$ pip install .
Reading Thermo Raw files:
To enable Thermo Raw files reading you need to download and install the MSFileReader by creating an account at:
https://thermo.flexnetoperations.com/control/thmo/login
then logging in and choosing "Utility Software". Current version is developed using MSFileReader v3.1 SP2.
Disclaimer:
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
For Research Use Only. Not for use in diagnostic procedures.
Metadata
Release files for msread 0.10.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| msread-0.10.1.tar.gz | 26.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| msread-0.10.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 61.4 kB
Release files / msread-0.10.1.tar.gz
| Download URL | msread-0.10.1.tar.gz |
|---|---|
| Size | 26.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e6ba3d3d12819262a9dd0a0fdfa53a4f5e827d8d91b775316da6fe56bd5a064
|
|
BLAKE2b-256 checksum How to use checksums |
5bd8e2ce14d008ecb67266c5f9aa62ff4f8be092c5d15f9727d7d3f73018f269
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Release files / msread-0.10.1-py3-none-any.whl
| Download URL | msread-0.10.1-py3-none-any.whl |
|---|---|
| Size | 34.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1257cc25376d8a0564300d3cce66b7098bacb891351e0c2d8497e61220b24c75
|
|
BLAKE2b-256 checksum How to use checksums |
1c1976d253e78cbdd46b68b4f67df7e28d67e08ad7140bca8b5426fedd74db84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|