Skip to content

Commit

Permalink
Include models for charge 2 fragment ions (CID and HCD)
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfG committed Mar 12, 2019
1 parent 74be8e1 commit bc221cd
Show file tree
Hide file tree
Showing 7 changed files with 907,977 additions and 5 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ variable `mgf` in line 716 of `ms2pipC.py`.

### MS2PIP models
Currently the following models are supported in MS2PIP:
`HCD`, `CID`, `TTOF5600`, `TMT`, `iTRAQ` or
`iTRAQphospho`. If you use MS2PIP for your research, always mention the MS2PIP-version and model-version you used.
`HCD`, `CID`, `TTOF5600`, `TMT`, `iTRAQ`,
`iTRAQphospho`, `HCDch2` and `CIDch2`. The last two "ch2" models also include predictions for doubly charged fragment ions (b++ and y++), next to the predictions for singly charged b- and y-ions.

If you use MS2PIP for your research, always mention the MS2PIP-version (see releases page) and model-version (see table below) you used.

Model | Current version | Train-test dataset (unique peptides) | Evaluation dataset (unique peptides) | Median Pearson correlation on evaluation dataset
-|-|-|-|-
Expand All @@ -120,6 +122,7 @@ iTRAQ | v20190107 | [NIST iTRAQ](https://chemdata.nist.gov/) (704 041) | [PXD001
iTRAQphospho | v20190107 | [NIST iTRAQ phospho](https://chemdata.nist.gov/) (183 383) | [PXD001189](https://doi.org/10.1182/blood-2016-05-714048) (9 088) | 0.843898
TMT | v20190107 | [Peng Lab TMT Spectral Library](https://doi.org/10.1021/acs.jproteome.8b00594) (1 185 547) | [PXD009495](https://doi.org/10.15252/msb.20188242) (36 137) | 0.950460
TTOF5600 | v20190107 | [PXD000954](https://doi.org/10.1038/sdata.2014.31) (215 713) | [PXD001587](https://doi.org/10.1038/nmeth.3255) (15 111) | 0.746823

HCDch2 | v20190107 | [MassIVE-KB](https://doi.org/10.1016/j.cels.2018.08.004) (1 623 712) | [PXD008034](https://doi.org/10.1016/j.jprot.2017.12.006) (35 269) | 0.903786 (+) and 0.644162 (++)
CIDch2 | v20190107 | [NIST CID Human](https://chemdata.nist.gov/) (340 356) | [NIST CID Yeast](https://chemdata.nist.gov/) (92 609) | 0.904947 (+) and 0.813342 (++)

To train custom MS2PIPc models, please refer to [Training new MS2PIP models](https://github.com/compomics/ms2pip_c/wiki/Training_new_MS2PIP_models) on our Wiki pages.
18 changes: 17 additions & 1 deletion cython_modules/ms2pip_peaks_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@
// Import models
#include "../models/CID/model_20190107_CID_train_B.c"
#include "../models/CID/model_20190107_CID_train_Y.c"
#include "../models/CID/model_20190107_CID_train_B2.c"
#include "../models/CID/model_20190107_CID_train_Y2.c"

//#include "../models/HCD/hcd_fast_B.c"
//#include "../models/HCD/hcd_fast_Y.c"
#include "../models/HCD/model_20190107_HCD_train_B.c"
#include "../models/HCD/model_20190107_HCD_train_Y.c"
#include "../models/HCD/model_20190107_HCD_train_B2.c"
#include "../models/HCD/model_20190107_HCD_train_Y2.c"

#include "../models/TTOF5600/model_20190107_TTOF5600_train_B.c"
#include "../models/TTOF5600/model_20190107_TTOF5600_train_Y.c"
Expand Down Expand Up @@ -116,6 +120,7 @@ float* get_p_ms2pip(int peplen, unsigned short* peptide, unsigned short* modpept
predictions[4*(peplen-1)-i-1] = score_EThcD_Z(v+1+(i*fnum))+0.5;
}
}
*/

// HCDch2
else if (model_id == 7) {
Expand All @@ -128,7 +133,18 @@ float* get_p_ms2pip(int peplen, unsigned short* peptide, unsigned short* modpept
predictions[4*(peplen-1)-i-1] = score_HCD_Y2(v+1+(i*fnum))+0.5;
}
}
*/

// CIDch2
else if (model_id == 8) {
unsigned int* v = get_v_ms2pip(peplen, peptide, modpeptide, charge);
int fnum = v[0]/(peplen-1);
for (i=0; i < peplen-1; i++) {
predictions[0*(peplen-1)+i] = score_CID_B(v+1+(i*fnum))+0.5;
predictions[2*(peplen-1)-i-1] = score_CID_Y(v+1+(i*fnum))+0.5;
predictions[2*(peplen-1)+i] = score_CID_B2(v+1+(i*fnum))+0.5;
predictions[4*(peplen-1)-i-1] = score_CID_Y2(v+1+(i*fnum))+0.5;
}
}

return predictions;
}
Expand Down
Loading

0 comments on commit bc221cd

Please sign in to comment.