Hello,
I am attempting to access data from an mzXML file and it seems pyteomics should be able to help! However, I am having issues with iterating through the scans in the file, as well as direct indexing.
I can open the file and print a tree:
from pyteomics import mzxml, auxiliary
with mzxml.read('2232.mzXML') as reader:
auxiliary.print_tree(next(reader))
num
scanType
centroided
msLevel
peaksCount
polarity
retentionTime
basePeakMz
basePeakIntensity
totIonCurrent
msInstrumentID
id
m/z array
intensity array
From here, I am stuck. Cannot figure out, based on the documentation, how to iterate through the data or directly index.
Any assistance would be greatly appreciated!!
Thanks,
Chris
--
Christopher A. Leber
Graduate Student Researcher | Gerwick Laboratory
Center for Marine Biotechnology and Biomedicine
Scripps Institution of Oceanography | UCSD
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~