mzxmlread - Read data from mzXML file

Syntax

mzXMLStruct = mzxmlread(File)

Arguments

File

String containing a file name, or a path and file name, of an mzXML file that conforms to the mzXML 2.1 specification or earlier specifications.

If you specify only a file name, that file must be on the MATLAB® search path or in the current directory.

Return Values

mzXMLStruct

MATLAB structure containing information from an mzXML file. It includes the following fields:

  • scan — Structure array containing the data pertaining to each individual scan, such as mass spectrometry level, total ion current, polarity, precursor mass (when it applies), and the spectrum data.

  • index — Structure containing indices to the positions of scan elements in the XML document.

  • mzXML — Structure containing:

    • Information in the root element of the mzXML schema, such as instrument details, experiment details, and preprocessing method

    • URLs pointing to schemas for the individual scans

    • Indexing approach

    • Digital signature calculated for the current instance of the document

Description

mzXMLStruct = mzxmlread(File) reads an mzXML file, File, and then creates a MATLAB structure, mzXMLStruct.

File can be a file name, or a path and file name, of an mzXML file. The file must conform to the mzXML 2.1 specification or earlier specifications. You can view the mzXML 2.1 specification at:

http://sashimi.sourceforge.net/schema_revision/mzXML_2.1/Doc/mzXML_2.1_tutorial.pdf

mzXMLStruct includes the following fields.

FieldDescription
scanStructure array containing the data pertaining to each individual scan, such as mass spectrometry level, total ion current, polarity, precursor mass (when it applies), and the spectrum data.
indexStructure containing indices to the positions of scan elements in the XML document.
mzXML

Structure containing:

  • Information in the root element of the mzXML schema, such as instrument details, experiment details, and preprocessing method

  • URLs pointing to schemas for the individual scans

  • Indexing approach

  • Digital signature calculated for the current instance of the document

Examples

out = mzxmlread('results.mzxml');
% view a scan
m = out.scan(1).peaks.mz(1:2:end); 
z = out.scan(1).peaks.mz(2:2:end); 
bar(m,z)

See Also

Bioinformatics Toolbox™ functions: jcampread, mzxml2peaks

MATLAB function: xmlread

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS