-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Asking for 0 isotopes causes R crash #20
Comments
Hi @wkumler, I would implement a patch checking the However, I understood that your intention was to have the |
I mostly use Rdisop for mass decomposition, not isotope envelope prediction. My thought was that the algorithm could be sped up and the output cleaned up if the option to disable isotope envelope prediction was disabled. This is especially relevant for isotope-labeled experiments where the predictions aren't useful because I'm not working with natural abundances. So yes, while an error or warning thrown upon |
I see, thanks for the clearification. I could implement the output clean-up in R (but you probably have done this as a post processing function already). I can not exclude the calculation from the C++ functions called underneath (as I am not fluent in C++). So excluding the isotope information would not speed up the function. However, I actually use Rdisop because it is really fast already (compared to enviPat as the best alternative I am aware of). Still, a reasonable parameter setting should not lead to a crash and this will be fixed shortly. |
Hi, awesome package! I've been using it for a while and just now tried to use it to identify MSMS fragment formulas, which means I don't need the isotope data. However, when I set
maxisotopes=0
, it causes R to crash.E.g.:
It's not critically important because I can just ignore the isotope data, but took me while to debug and returning an error or warning instead would be super helpful.
The text was updated successfully, but these errors were encountered: