Code Monkey home page Code Monkey logo

ccsz-demo's Introduction

CCS/z Demo

Python and R scripts implemented as a demo with examples demonstrating the conversion of ion mobility spectrometry-mass spectrometry (IM-MS) raw data from arrival time (AT) to collision-cross section over charge (CCS/z) space and generating the figures for the article "Computational tools and algorithms for ion mobility spectrometry-mass spectrometry". Using this CCS/z conversion functionality, raw files that were acquired with different IM methods can be analyzed together and, rather than comparing CCS values from centroids, the full CCS distributions from total (or mass extracted) ion intensities in the raw data can be visualized directly and easily compared.

Data

  1. Raw data was generated by direct infusion analyses of the Agilent tune mix solution with positive electrospray ionization in the Drift tube ion mobility spectrometry (DTIMS) platform or the Structures for lossless ion manipulations (SLIM) IM platform.
  2. Raw data was CCS calibrated using the Agilent IM-MS Browser.
  3. Agilent .d MassHunter files were preprocessed using the PNNL-PreProcessor (https://pnnl-comp-mass-spec.github.io/PNNL-PreProcessor) to compress (or accumulate) all IM frames into a single frame and generate new raw files with the IM dimension converted to CCS/z space. The PNNL-PreProcessor automatically detects the calibration coefficients for the function and the buffer gas, and then maps each raw data point (m/z, AT) to the CCS/z space (m/z, CCS) by applying the regression function and scaling to the reduced mass term.
  4. Raw data was converted to MZA format (https://github.com/PNNL-m-q/mza).
  5. The scripts use standard Python and R packages to read the raw data from MZA files and generate the plots. Python requires the h5py, hdf5plugin, numpy, pandas, and matplotlib packages (see Python_requirements.txt). R requires the rhdf5 package.

The folder RawDataMza contains the IM-MS raw data in MZA format:

  • 2 DTIMS-MS files: original and converted to CCS/z space using linear calibration function.
  • 3 SLIM-MS files: original and converted to CCS/z space using polynomial of 2nd and 3rd order functions.

Output

The folders Python_OutputFigures and R_OutputFigures contain the figures generated by each script:

  • 5 Scatter plots of m/z vs. AT and m/z vs. CCS/z for each file.
  • 1 plot with overlaid total ion intensities from the CCS/z converted raw data, which allows direct comparison and visualization of the full CCS distributions of experiments acquired with different IM platforms or acquisition methods, or converted using different CCS calibration functions.

Contact

[email protected]

Reference

If you use any portions of this code please cite:

ccsz-demo's People

Contributors

aivett avatar

Watchers

Lisa Bramer avatar  avatar Yuri Corilo avatar Harsh Bhotika avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.