Xtractor

Copyright Notice

Xtractor is copyright (c) 2009- Magnus Palmblad

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License.

About Xtractor

Xtractor is a simple and fast tool for integrating pre-defined regions (peaks or bins) in calibrated mass spectra in two-column ASCII format using the GD library for generating PNG images of spectra with integrated regions. Xtractor runs from the command line and comes with a number of options:

-i            the input ASCII .xy file
-r            reference list, defining peaks or bins (see example)
-o            the output filename
-b            (fixed) background to be subtracted
-nographics   do not generate graphical output


In addition to extracting the peak or bin areas (total intensities), Xtractor plots the spectra with m/z on the horizontal and intensity on the vertical axis and colors extracted peaks or bins in red. This feature can be disabled with the -nographics option.

Gallery


click on the thumbnails to show full size image



Xtractor was used and described in a recent paper by Selman et al.. The version of Xtractor and data used in this work is deposited here.


Download the Xtractor source code here. (Right-click and choose "Save Link As...".)


Compiling Xtractor

Compile Xtractor with: gcc -o Xtractor Xtractor.c -lgd

Using Xtractor

Usage: Xtractor -i<spectrum .xy file> -r<reference list> -o<output file> [-b<background>]

with the options described above. The resulting peak lists or bins can be merged into a uniform sample/data array by a simple shell script.

Precompiled binaries

Windows/Cygwin (Right-click and choose "Save Link As...".)


magnus.palmblad@gmail.com