Comments (5)
Indeed, now the matplotlib plotting is working fine! Thanks Wout.
from spectrum_utils.
The notebook indeed uses some LaTeX functionality, more precisely for styling the plot titles (different font sizes, etc.). Typically you won't need this functionality, I just wanted it to look a bit nicer than you can get with Matplotlib only.
So you need to either have LaTeX on the path to run the notebook, or you need to disable the second cell to not use LaTeX. (In the latter case the plot titles will look weird because they contain LaTeX commands, but it should run.)
I need to extend the documentation to make that clear and to demonstrate additional functionality.
from spectrum_utils.
Thanks Wout. The spectrum without any filtering does plot now!
However, I get a Typing error when applying the filtering relating to line 258 in the spectrum.py file (see below). Looks like numba expects something different (https://numba.pydata.org/numba-doc/dev/user/troubleshoot.html) but I don't know what. And assuming it works okay at your end, it could be a versioning issue with one of the required packages as well.
'''
TypingError: Failed at nopython (nopython frontend)
Invalid usage of == with parameters (str, const('Da'))
'''
from spectrum_utils.
Using strings in Numba-compiled functions is a bit tricky. Limited string support has only been added to Numba in version 0.41. So if you're using an older version you should probably just update Numba. On my end it works without any problems with Numba 0.45.
I'm adding this minimum Numba version to the dependency requirements. Thanks for reporting.
from spectrum_utils.
Great. The minimum Numba dependency will be specified in the next release. I'm not putting a minimum Pyteomics version because the MGF IO isn't part of the core spectrum_utils functionality, I just used it in the notebook to read the spectral data.
Let me know if you have further questions or comments. :)
from spectrum_utils.
Related Issues (20)
- Alternative dependency for fastobo? HOT 3
- [Feature request] Diagnostic information when a wrong mass mode is used HOT 1
- [Bug] Unpinned matplotlib version leads to unexpected results HOT 4
- Urlencode USI
- Unable to install in python 3.11 HOT 1
- Fix annotation of fragments with isotopic peaks
- 'MsmsSpectrumJit' object has no attribute 'annotate_proforma' HOT 2
- Update GNPS USI resolver to GNPS2 HOT 2
- function: noise peak removal HOT 1
- ValueError: Unknown precursor m/z from USI. Specify the precursor m/z directly. HOT 2
- Matplotlib Version HOT 2
- Manual fragment annotation (in version 0.4.2) HOT 2
- Can't successfully plot an annotated spectrum HOT 1
- annotate using custom fragment list HOT 3
- Get a less rounded mz_delta value in ppm for annotations? HOT 1
- Annotating modified lysine Immonium NH3 neutral loss HOT 4
- Deprecated dependency
- Update XLMOD location
- Lark-Cython for faster grammar parsing
- Cross-link spectra annotation HOT 1
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 spectrum_utils.