Skip to content
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

How to use generic values like ms2prec=X in SpectraQL query ? #16

Open
yguitton opened this issue May 10, 2023 · 1 comment
Open

How to use generic values like ms2prec=X in SpectraQL query ? #16

yguitton opened this issue May 10, 2023 · 1 comment

Comments

@yguitton
Copy link

Hi @jorainer

I was trying to launch in R with SpectraQL the function below (found in https://msql.ucsd.edu/compendium/)
QUERY scaninfo(MS2DATA) WHERE MS2PREC=X AND MS1MZ=X AND MS1MZ=X+formula(Na)-formula(H)

I tried but failed because X is non numeric (I think)
<mh<- query(dda,"QUERY scaninfo(MS2DATA) WHERE MS2PREC=X AND MS1MZ=X AND MS1MZ=X+formula(Na)-formula(H)")
Error in .translate_condition_ms2prec(MS2PREC = c(MS2PREC = "X")) :
Missing or non-numeric value(s) for 'MS2PREC'
In addition: Warning message:
In .translate_condition_ms2prec(MS2PREC = c(MS2PREC = "X")) :
NAs introduced by coercion>

I know that not all massQL functions are already in SpectraQL, but would be super cool to be able to search for generic patterns
with X

Best
Yann

@jorainer
Copy link
Member

Hm, good point. yes, and we did not (yet) implement things like formula(Na) - formula(H) - still lots of things to do I'm afraid - but thanks for pointing it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants