-
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
matchIonMode function? #56
Comments
Could you maybe explain that with a use case describing also the input data that you have? Is it then features from positive and negative polarity? |
Yes, the idea is to have either two vectors of m/z values from positive and negative ion mode and match them. Alternatively, two feature tables either as |
I like the idea - but that could be even generalized to a res <- matchMz(qry, trgt, CompareMassParam(queryAdduct = c("[M+H]+", "[M+Na]+"), targetAdduct = "[M-H]-", ppm = 10)) with The matching that considers also rt could then maybe done in a second step with a I like the idea. Do you want to give it a try or should I ask Andrea to implement it? |
Agreed, we can rename everything to matchMass and the ionmode matching is special case. I already made a simple implementation for the ion mode matching. |
PS: I would like to have a dedicated functions called Tricky situation. Ideas? @andreavicini maybe? |
Hm, yes. But it's similar with The issue with |
Ahh.... too many options. ;-) |
Yes, I can do that! I agree that maybe it’s better to have only one name for the function |
OK, then @andreavicini , please add that functionality maybe checking if you can take something from @michaelwitting's PR #58 |
That OK for you @michaelwitting ? |
Totally fine... |
When reading the PR #64 I got confused: The idea is now that the user can provide m/z values and these are converted to masses and then compared, right? So, it is different from the already implemented Here we want to do the comparison on the mass level, not the m/z level (which can yield different results because of the So, here, we would maybe better call the parameter The Does this make sense @michaelwitting and @andreavicini? |
Yes, it does more or less the opposite. The difference is that both |
I don't know if we really need |
I’m not sure I understand correctly. Do you mean to have I think we could have a more general code but I’m not sure it would became less clear or would be helpful for the user. For example would it be useful in some circumstance to match values other than m/z in query and target (e.g. mass or even something else)? In that case we could create a
Is there any other useful use case (e.g. matching m/zs obtained transforming query and target masses? or other combinations?) that could be useful? If not why would you add |
I agree with this list @andreavicini :
Having this now in front of me, I think we need |
I agree with both of you @andreavicini and @michaelwitting . So, maybe the following would make sense:
|
That seems good to me! So we don’t export |
Seems fine to me. No, it will be only m/z. RT and CCS will be always on top of that. |
What about having a
matchIonMode()
function? I have sometimes the case to match between ion modes and the results would be perfectly fitted for theMatched
object, e.g. in negative mode you have detected a [M-H]- and in positive the respective [M+H]+ and [M+Na]+. The function can acceptx
andy
andxAdducts
andyAdducts
, performmz2mass
with that and match the neutral mass. Additionally with retention time matching, if required.Thoughts?
The text was updated successfully, but these errors were encountered: