Comments (6)
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.
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.
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.
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.
Hi,
The model was trained on a subset of MassIVE-KB dataset. This subset consists of ~30M high quality human PSMs.
from casanovo.
Thanks for your information! I will close this issue.
from casanovo.
Related Issues (20)
- mzTab validation
- Automate mzTab validation HOT 7
- More information about the train/val/test split HOT 2
- WARNING: Skipped spectra with invalid precursor info HOT 1
- Export casanovo to torchscript/onnx HOT 1
- ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() HOT 3
- Make Casanovo produce Skyline compatible output
- 9-Species Benchmark Set: Data Preprocessing Step? HOT 5
- Migrating PeptideMass, PeptideDecoder, and PeptideEncoder from depthcharge v0.2.3 to casanovo HOT 3
- Is there a way to know which spectras are ITMS instead of FTMS? HOT 3
- Numpy release 2.0.0 breaks depthcharge dependency HOT 2
- Use Fourier embeddings
- Add mzTab validator to github actions HOT 1
- Make Casanovo model compatible with torch.compile
- Designate a filename for the "best" model HOT 7
- PyTorch (GPU) not working on Win 11 box HOT 4
- ValueError: could not broadcast input array from shape (0,) into shape (25714,) HOT 5
- Eliminate the eval command HOT 4
- Greater than or equal to character ≥ causes logging error in end of run report.
- RuntimeError: CUDA error: the launch timed out and was terminated HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from casanovo.