mass spectrometry and bioinformatics
0
0
Entering edit mode
6.3 years ago
qudrat ▴ 100

Hello, Can somebody tell me how to find total number of spectra in an mzml file? How to know the number of unassigned spectra remained in a file after tandem run was over?

ms/ms analysis • 1.7k views
ADD COMMENT
0
Entering edit mode

Not sure if bioinformatics.

ADD REPLY
1
Entering edit mode

I'd say it is bioinformatics. Proteomics, not the genetics and transcriptomics we're most familiar with here.

ADD REPLY
0
Entering edit mode

Ah, I see. Thank you!

ADD REPLY
0
Entering edit mode

There appears to be an option: https://pythonhosted.org/pyteomics/api/mzml.html

I'm surprised that whoever performed the mass spectrometry has not guided you further (?). Can it be that you should be contacting them and not us?

ADD REPLY
1
Entering edit mode

pyteomics will give you access to the information about each spectrum, though it might be difficult to access the total number of spectra acquired directly. Of course, sum(1 for scan in mzml.read("path/to/file.mzML")) will work for that. The unassigned question could be solved using the mzid, pepxml or xtandem parsers, but you have to have the search results in the right format.

ADD REPLY

Login before adding your answer.

Traffic: 1875 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6