compomics / ms2pip

MS²PIP: Fast and accurate peptide spectrum prediction for multiple fragmentation methods, instruments, and labeling techniques.
https://ms2pip.readthedocs.io
Apache License 2.0
35 stars 18 forks source link

xgboost error using model 'HCD' with fasta2speclib #159

Closed AXXQ closed 2 years ago

AXXQ commented 2 years ago

Hi, Thanks a lot for developing a great package! I'm trying to use fasta2speclib with an HCD model and I'm getting the following error:

image

I'm running this command: fasta2speclib -o out_lib -c config.json project.fasta This is the config file that I use:


{
    "output_filetype":["csv","msp", "mgf", "bibliospec", "spectronaut", "hdf"],
    "charges":[2, 3],
    "min_peplen":8,
    "max_peplen":30,
    "missed_cleavages":2,
    "modifications":[
        {"name":"Carbamidomethyl", "unimod_accession":4, "mass_shift":57.0513, "amino_acid":"C", "n_term":false, "fixed":true}
    ],
    "ms2pip_model":"HCD",
    "decoy":true,
    "add_retention_time":false,
    "elude_model_file":null,
    "rt_predictions_file":null,
    "peprec_filter":null,
    "save_peprec":false,
    "batch_size":10000,
    "num_cpu":24
}

When I use the CID model instead of HCD, the function runs fine. Do you have any suggestions?

RalfG commented 2 years ago

Hi @AXXQ,

Thanks for using MS²PIP! It seems like something went wrong while downloading external model files. Can you try to first remove the ~/.ms2pip directory, and then run fasta2speclib again? It could be that the model did not download completely in a previous run. In an upcoming MS²PIP version, this issue should resolve itself, as MS²PIP will just retry to download the file.

Let us know if this works! Ralf

AXXQ commented 2 years ago

Hi Ralf,

Thank you for the quick response. It worked! Thanks again for the great package!

Best Regards, AXXQ

From: Ralf @.> Sent: Wednesday, 2 February 2022 1:41 AM To: @.> Cc: @.>; @.> Subject: Re: [compomics/ms2pip_c] xgboost error using model 'HCD' with fasta2speclib (Issue #159)

Hi @AXXQhttps://github.com/AXXQ,

Thanks for using MS²PIP! It seems like something went wrong while downloading external model files. Can you try to first remove the ~/.ms2pip directory, and then run fasta2speclib again? It could be that the model did not download completely in a previous run. In an upcoming MS²PIP version, this issue should resolve itself, as MS²PIP will just retry to download the file.

Let us know if this works! Ralf

— Reply to this email directly, view it on GitHubhttps://github.com/compomics/ms2pip_c/issues/159#issuecomment-1026915075, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJSQK2J635X7OBAPO6FEJZTUY7WHTANCNFSM5NIFVWQA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>