Skip to content

ms2rescore remove 20% psms because of scores missing #482

Closed

Description

@ypriverol

Description of the bug

Using ms2rescore we found that in some cases MSGF+ do not export some of the scores for 20% of the PSMs.

b'MS:1002049' = {int} 66770
b'MS:1002050' = {int} 66770
b'MS:1002052' = {int} 66770
b'MS:1002053' = {int} 66770
b'AssumedDissociationMethod' = {int} 66770
b'CTermIonCurrentRatio' = {int} 66770
b'ExplainedIonCurrentRatio' = {int} 66770
b'MS2IonCurrent' = {int} 66770
b'MeanErrorAll' = {int} 66770
b'MeanErrorTop7' = {int} 66770
b'MeanRelErrorAll' = {int} 66770
b'MeanRelErrorTop7' = {int} 66770
b'NTermIonCurrentRatio' = {int} 66770
b'NumMatchedMainIons' = {int} 66770
b'StdevErrorAll' = {int} 66770
b'StdevErrorTop7' = {int} 66770
b'StdevRelErrorAll' = {int} 66770
b'StdevRelErrorTop7' = {int} 66770
b'calcMZ' = {int} 66770
b'pass_threshold' = {int} 66770
b'start' = {int} 66770
b'end' = {int} 66770
b'isotope_error' = {int} 66770
b'protein_references' = {int} 66770
b'MSGF:ScoreRatio' = {int} 55917
b'MSGF:Energy' = {int} 55917
b'MSGF:lnEValue' = {int} 55917
b'MSGF:lnExplainedIonCurrentRatio' = {int} 55917
b'MSGF:lnNTermIonCurrentRatio' = {int} 55917
b'MSGF:lnCTermIonCurrentRatio' = {int} 55917
b'MSGF:lnMS2IonCurrent' = {int} 55917
b'MSGF:MeanErrorTop7' = {int} 55917
b'MSGF:sqMeanErrorTop7' = {int} 55917
b'MSGF:StdevErrorTop7' = {int} 55917

Command used and terminal output

Relevant files

No response

System information

No response

Activity

  1. added
    bug
    on Feb 15, 2025
  2. self-assigned this
    on Feb 15, 2025
  3. ypriverol commented on Feb 15, 2025

    @ypriverol
    ContributorAuthor

    Some more details about the output:

    2025-02-14 19:13:03,582 INFO MS²Rescore config:
    2025-02-14 19:13:03,582 INFO {'$schema': './config_schema.json', 'ms2rescore': {'feature_generators': {'ms2pip': {'model_dir': '/hps/nobackup/juan/pride/rea
    nalysis/ms2pip_model/', 'model': 'TMT', 'ms2_tolerance': 0.4}, 'deeplc': {'deeplc_retrain': False, 'calibration_set_size': 0.15}}, 'rescoring_engine': {}, '
    config_file': None, 'psm_file': None, 'psm_file_type': 'infer', 'psm_reader_kwargs': {}, 'spectrum_path': 'Instrument1_sample14_S1R10_042116_Fr12.mzML', 'ou
    tput_path': 'Instrument1_sample14_S1R10_042116_Fr12_msgf_ms2rescore.idXML', 'log_level': 'info', 'id_decoy_pattern': '^DECOY_', 'psm_id_pattern': '(.*)', 's
    pectrum_id_pattern': '(.*)', 'lower_score_is_better': True, 'modification_mapping': {}, 'fixed_modifications': {}, 'processes': 12, 'rename_to_usi': False, 
    'fasta_file': None, 'write_report': True, 'ms2pip_model_dir': '/hps/nobackup/juan/pride/reanalysis/ms2pip_model/', 'ms2pip_model': 'TMT', 'ms2_tolerance': 0
    .4, 'calibration_set_size': 0.15, 'rng': 4711}}
    2025-02-14 19:13:25,933 WARNING Removed 10853 PSMs without search engine features!
    2025-02-14 19:13:46,156 WARNING controllerType=0 controllerNumber=1 scan=109453 spectra don't have spectra information!
    2025-02-14 19:13:46,159 WARNING Removed 1 spectra without spectra information!
    2025-02-14 19:13:54,018 INFO Found 55917 PSMs, of which 36.56% are decoys.
    2025-02-14 19:13:54,968 WARNING Non-mapped modifications found: {'Gln->pyro-Glu', 'TMT6plex', 'Carbamidomethyl', 'Acetyl', 'Oxidation'}
    This can be ignored if Unimod modification label
    2025-02-14 19:13:55,420 INFO Found 6644 identified PSMs at 1% FDR before rescoring.
    2025-02-14 19:13:55,506 INFO Adding MS²PIP-derived features to PSMs.
    2025-02-14 19:13:56,296 INFO Running MS²PIP for PSMs from run (1/1) `Instrument1_sample14_S1R10_042116_Fr12`...
    2025-02-14 19:13:56,420 WARNING Passed spectrum path (`Instrument1_sample14_S1R10_042116_Fr12_clear.mzML`) does not match run name found in PSM file (`Instr
    ument1_sample14_S1R10_042116_Fr12`). Continuing with passed spectrum path.
    2025-02-14 19:13:57,618 INFO Processing spectra and peptides...
    Warning: OPENMS_DATA_PATH environment variable not found and no share directory was installed. Some functionality might not work as expected.
    
  4. ypriverol commented on Feb 15, 2025

    @ypriverol
    ContributorAuthor

    This error only happens to MSGF+, this is the comet output:

    ple14_S1R10_042116_Fr12_ms2rescore.log
    2025-02-11 15:43:36,265 INFO Percolator rescoring engine has been specified. Use the idXML containing rescoring features and run Percolator in a separate st
    ep.
    2025-02-11 15:43:36,265 INFO MS²Rescore config:
    2025-02-11 15:43:36,265 INFO {'$schema': './config_schema.json', 'ms2rescore': {'feature_generators': {'ms2pip': {'model_dir': '/hps/nobackup/juan/pride/rea
    nalysis/ms2pip_model/', 'model': 'TMT', 'ms2_tolerance': 0.4}, 'deeplc': {'deeplc_retrain': False, 'calibration_set_size': 0.15}}, 'rescoring_engine': {}, '
    config_file': None, 'psm_file': None, 'psm_file_type': 'infer', 'psm_reader_kwargs': {}, 'spectrum_path': 'Instrument1_sample14_S1R10_042116_Fr12.mzML', 'ou
    tput_path': 'Instrument1_sample14_S1R10_042116_Fr12_comet_ms2rescore.idXML', 'log_level': 'info', 'id_decoy_pattern': '^DECOY_', 'psm_id_pattern': '(.*)', '
    spectrum_id_pattern': '(.*)', 'lower_score_is_better': True, 'modification_mapping': {}, 'fixed_modifications': {}, 'processes': 12, 'rename_to_usi': False,
     'fasta_file': None, 'write_report': True, 'ms2pip_model_dir': '/hps/nobackup/juan/pride/reanalysis/ms2pip_model/', 'ms2pip_model': 'TMT', 'ms2_tolerance': 
    0.4, 'calibration_set_size': 0.15, 'rng': 4711}}
    2025-02-11 15:44:12,138 WARNING controllerType=0 controllerNumber=1 scan=109453 spectra don't have spectra information!
    2025-02-11 15:44:12,141 WARNING Removed 1 spectra without spectra information!
    2025-02-11 15:44:21,549 INFO Found 43375 PSMs, of which 33.50% are decoys.
    2025-02-11 15:44:22,476 WARNING Non-mapped modifications found: {'TMT6plex', 'Oxidation', 'Acetyl', 'Carbamidomethyl', 'Gln->pyro-Glu'}
    This can be ignored if Unimod modification label
    2025-02-11 15:44:22,920 INFO Found 5863 identified PSMs at 1% FDR before rescoring.
    2025-02-11 15:44:22,993 INFO Adding MS²PIP-derived features to PSMs.
    2025-02-11 15:44:23,783 INFO Running MS²PIP for PSMs from run (1/1) `Instrument1_sample14_S1R10_042116_Fr12`...
    2025-02-11 15:44:23,890 WARNING Passed spectrum path (`Instrument1_sample14_S1R10_042116_Fr12_clear.mzML`) does not match run name found in PSM file (`Instr
    ument1_sample14_S1R10_042116_Fr12`). Continuing with passed spectrum path.
    2025-02-11 15:44:25,985 INFO Processing spectra and peptides...
    Warning: OPENMS_DATA_PATH environment variable not found and no share directory was installed. Some functionality might not work as expected.
    
  5. jpfeuffer commented on Feb 16, 2025

    @jpfeuffer
    Collaborator

    This is a duplicate of #447. Needs to be fixed on MSGFplus side.

  6. ypriverol commented on Mar 10, 2025

    @ypriverol
    ContributorAuthor

    Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions