Giter Club home page Giter Club logo

Comments (6)

bittremieux avatar bittremieux commented on July 23, 2024

The latest version of the code is no longer compatible with the pretrained weights because we did indeed recently change some things there. Rather than installing from the latest commit, if you install from a release and use weights provided there everything should be consistent.

Apologies for this confusion. A new and better version is coming soon, but in the mean time, some things are a bit in flux.

from casanovo.

irleader avatar irleader commented on July 23, 2024

Hi,
I have been trying to run the latest release version 3.0.0 with new codes and new model weights provided (casanovo_massivekb.ckpt).

I tried different peak files provided as well:

casanovo --mode=denovo --model=2022-10-10_weights/casanovo_massivekb.ckpt --peak_path=Casanovo_preprocessed_data/preproc.high.mouse.PXD004948.mgf --config=casanovo/config.yaml
casanovo --mode=denovo --model=2022-10-10_weights/casanovo_massivekb.ckpt --peak_path=sample_data/sample_preprocessed_spectra.mgf --config=casanovo/config.yaml

I encounter same error every time as follows:

Traceback (most recent call last):
File "D:\miniconda3\Scripts\casanovo-script.py", line 33, in
sys.exit(load_entry_point('casanovo==0.0.0', 'console_scripts', 'casanovo')())
File "D:\miniconda3\lib\site-packages\click\core.py", line 1128, in call
return self.main(*args, **kwargs)
File "D:\miniconda3\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "D:\miniconda3\lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "D:\miniconda3\lib\site-packages\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "D:\miniconda3\lib\site-packages\casanovo-0.0.0-py3.9.egg\casanovo\casanovo.py", line 191, in main
model_runner.predict(peak_path, model, config, writer)
File "D:\miniconda3\lib\site-packages\casanovo-0.0.0-py3.9.egg\casanovo\denovo\model_runner.py", line 43, in predict
_execute_existing(peak_path, model_filename, config, False, out_writer)
File "D:\miniconda3\lib\site-packages\casanovo-0.0.0-py3.9.egg\casanovo\denovo\model_runner.py", line 134, in _execute_existing
index = SpectrumIdx(
TypeError: init() got an unexpected keyword argument 'valid_charge'

Please kindly indicate which step I might did wrong. Thanks!

from casanovo.

VarunAnanth2003 avatar VarunAnanth2003 commented on July 23, 2024

Hi! I have encountered this bug before, and have found that uninstalling and then reinstalling the PyPI package depthcharge-ms fixes the problem. You can do this by typing into the terminal pip uninstall depthcharge-ms and then pip install depthcharge-ms. If this does not work, then repeat the steps but also uninstall and reinstall casanovo. Hope this helps!

from casanovo.

irleader avatar irleader commented on July 23, 2024

Thanks a lot! It works for me. By the way, would you please provide more information on "casanovo_massivekb.ckpt"? How it this trained, on which datasets?

from casanovo.

melihyilmaz avatar melihyilmaz commented on July 23, 2024

Hi,
The model was trained on a subset of MassIVE-KB dataset. This subset consists of ~30M high quality human PSMs.

from casanovo.

irleader avatar irleader commented on July 23, 2024

Thanks for your information! I will close this issue.

from casanovo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.