delta mass calculation for percolator .pin file

49 views
Skip to first unread message

Dennis Goldfarb

unread,
Apr 5, 2021, 11:12:33 AM4/5/21
to Comet ms/ms db search support
Hey Jimmy,

It looks like the dM calculation in CometWritePercolator is using the mass of the top candidate her spectrum instead of the mass of the specific candidate. For example the pin file looks like this currently:

ScanNr, ExpMass, CalcMass, dM
7, 1243.635302, 1241.631335, 0.001614
7, 1243.635302, 1240.606432, 0.001614
7, 1243.635302, 1243.652835, 0.001614
7, 1243.635302, 1243.638944, 0.001614
7, 1243.635302, 1242.646376, 0.001614

line #280 of CometWritePercolator is:

double dMassDiff = (pQuery->_pepMassInfo.dExpPepMass - pOutput[0].dPepMass) / pOutput[0].dPepMass;

but I believe it should be:

double dMassDiff = (pQuery->_pepMassInfo.dExpPepMass - pOutput[iWhichResult].dPepMass) / pOutput[iWhichResult].dPepMass;

With the updated code, the pin file becomes:

ScanNr, ExpMass, CalcMass, dM
7, 1243.635302, 1241.631335, 0.001614
7, 1243.635302, 1240.606432, 0.002441
7, 1243.635302, 1243.652835, -0.000014
7, 1243.635302, 1243.638944, -0.000003
7, 1243.635302, 1242.646376, 0.000796

I used comet (2020.01 rev. 3) + percolator (v3.04.0) on one of our HeLa standards +- the dMassDiff correction.

Original: 10617 PSMs and 7372 peptides with q<0.01

New: 11000 PSMs and 7807 peptides with q<0.01

Hope this helps.

Best, 

Dennis

Jimmy Eng

unread,
Apr 5, 2021, 2:53:34 PM4/5/21
to Comet ms/ms db search support
Dennis, thank you for identifying the bug.  I'll include the fix in the next release.

Manuel Belmadani

unread,
Apr 10, 2021, 10:21:54 AM4/10/21
to Jimmy Eng, Comet ms/ms db search support
Hi Jimmy and Dennis,

Would this affect only the .pin output files or if other output formats are also affected? 

Thank you,

--
You received this message because you are subscribed to the Google Groups "Comet ms/ms db search support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to comet-ms+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/comet-ms/c45a04e8-bef9-4244-98bb-0c5362e2f7fdn%40googlegroups.com.

Jimmy Eng

unread,
Apr 10, 2021, 10:34:36 AM4/10/21
to Manuel Belmadani, Comet ms/ms db search support
Only the .pin output.
Reply all
Reply to author
Forward
0 new messages