Convert mzXML structure to peak list
[
Peaklist
,Times
] = mzxml2peaks(mzXMLStruct
)
[Peaklist
,Times
] = mzxml2peaks(mzXMLStruct
, 'Levels',LevelsValue
)
mzXMLStruct |
MATLAB®structure containing information from an mzXML file, such as one created by the |
LevelsValue |
Positive integer or vector of integers that specifies the level(s) of spectra in |
Peaklist |
Either of the following:
|
Times |
向量的保留时间与液体相关联chromatography/mass spectrometry (LC/MS) or gas chromatography/mass spectrometry (GC/MS) data set. The number of elements inTimes equals the number of elements inPeaklist . |
[
extracts peak information fromPeaklist
,Times
] = mzxml2peaks(mzXMLStruct
)mzXMLStruct
, a MATLAB structure containing information from an mzXML file, such as one created by themzxmlread
function, and createsPeaklist
的单元阵列矩阵包含质量/电荷(m/z) values and ion intensity values, andTimes
, a vector of retention times associated with a liquid chromatography/mass spectrometry (LC/MS) or gas chromatography/mass spectrometry (GC/MS) data set.mzXMLStruct
includes the following fields:
Field | Description |
---|---|
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:
|
[
specifies the level(s) of the spectra inPeaklist
,Times
] = mzxml2peaks(mzXMLStruct
, 'Levels',LevelsValue
)mzXMLStruct
to convert, assuming the spectra are from tandem MS data sets. Default is1
, which converts only the first-level spectra, that is, spectra containing precursor ions. SettingLevelsValue
to2
converts only the second-level spectra, which are the fragment spectra (created from a precursor ion).
Note
In the following example, the fileresults.mzxml
is not provided. Sample mzXML files can be found at:
Use themzxmlread
function to read an mzXML file into the MATLAB software as structure. Then extract the peak information of only the first-level ions from the structure.
mzxml_struct = mzxmlread('results.mzxml'); [peaks,time] = mzxml2peaks(mzxml_struct);
Create a dot plot of the LC/MS data.
msdotplot(peaks,time)