Skip to main content

Mass spectrometry data reading library

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

msread-0.10.1.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

msread-0.10.1-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

Details for the file msread-0.10.1.tar.gz.

File metadata

  • Download URL: msread-0.10.1.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for msread-0.10.1.tar.gz
Algorithm Hash digest
SHA256 5e6ba3d3d12819262a9dd0a0fdfa53a4f5e827d8d91b775316da6fe56bd5a064
MD5 084fe968ae9a8467784f371cc5271959
BLAKE2b-256 5bd8e2ce14d008ecb67266c5f9aa62ff4f8be092c5d15f9727d7d3f73018f269

See more details on using hashes here.

File details

Details for the file msread-0.10.1-py3-none-any.whl.

File metadata

  • Download URL: msread-0.10.1-py3-none-any.whl
  • Upload date:
  • Size: 34.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for msread-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1257cc25376d8a0564300d3cce66b7098bacb891351e0c2d8497e61220b24c75
MD5 8ab3ffb42c0da7a0c98eeb65dd25d7ae
BLAKE2b-256 1c1976d253e78cbdd46b68b4f67df7e28d67e08ad7140bca8b5426fedd74db84

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page