Skip to content

7. Custom Spectral Processing

sficarro edited this page Aug 19, 2017 · 1 revision

Custom Spectral Processing

mzStudio allows custom processing scripts to be applied to data. The script should be a .py file with a function called processor_function() that accepts a list of (mz, intensity) pairs, processes this data, and then returns a processed list of (mz, intensity) pairs for the mzStudio.

For example deisotope_filter.py consists of:

mzStudio

To select this spectrum as a custom processing script, select Settings/Set Spectral Processor. This opens a dialog:

mzStudio

Browse to the script. Once loaded, if no errors are detected, you should see:

mzStudio

If errors are detected, you may modify the script and click Load to re-load the script.

  • To apply the script to the data, press Q; this will process the scan with the selected script and display the result.

  • For simplicity, we assume processing scripts will generate centroided data. Therefore, once processing is activated, the ‘view centroid’ option is selected automatically.

  • Exemplary spectral processing scripts can be found in the GitHub repository:

https://github.com/BlaisProteomics/mzStudio/tree/master/example_processing_scripts

Script Function
deiso_reduce_charge_filter.py Performs deisotoping and charge reduction of HCD data.
deisotope_filter.py Deisotopes HCD data.
signal_to_noise_filter.py Performs signal to noise filtering of data (meant for ion trap scans).

Clone this wiki locally