Coder Social home page Coder Social logo

Comments (15)

eschen42 avatar eschen42 commented on September 22, 2024

@lecorguille I can imagine at least two ways to approach this:

  • Add code to xcms_xcmsSet.r along with options in the wrapper to set the parameters
  • Create a separate tool

I can start working on the first and give you a pull request. You can let me know whether you would prefer to pursue another option or would like to delegate this to someone else.

from tools-metabolomics.

eschen42 avatar eschen42 commented on September 22, 2024

@lecorguille I have been reading the XCMS reference manual and have learned that refineChromPeaks can be used for three things:

  • Remove chromatographic peaks with too large rt width
  • Remove chromatographic peaks based on intensity
  • Merge neighboring and overlapping chromatographic peaks

This seriously calls into question my suggestion of integrating it into xcmsSet, so now I am under the impression that creating a separate tool is the better approach.

What do you think?

from tools-metabolomics.

lecorguille avatar lecorguille commented on September 22, 2024

Hi Art,

It's indeed a balance between modularity and complexity.
Is this tool between, findChromPeaks and groupChromPeaks?

Ping @workflow4metabolomics/ms , do you have an idea?

from tools-metabolomics.

eschen42 avatar eschen42 commented on September 22, 2024

@lecorguille Yes, the tool is between findChromPeaks and groupChromPeaks

I have gotten this to work in my fork of tools-metabolomics, wrapped as a separate tool xcms_refine at

eschen42@2f3f29d

It passes planemo test . and runs correctly in planemo serve .; I still need to stress test it a bit more before sending a pull request to solicit feedback formally. But, hey, it's working! The drawbacks are:

  • It is dependent on bioconductor-xcms 3.12.0 because refineChromPeaks is not found in 3.6.1
  • It generates warnings because R 4.0.2 runs but bioconductor-xcms 3.12.0 was built with R 4.0.3
  • It does not appear in the workflow graphic ... perhaps it ought not to?

So, we will need to figure out how to negotiate around this obstacle. It strongly argues against integrating with (and de-stabilizing) the findChromPeaks wrapper.

Thank you for any guidance or suggestions that you can provide.

from tools-metabolomics.

yguitton avatar yguitton commented on September 22, 2024

from tools-metabolomics.

melpetera avatar melpetera commented on September 22, 2024

Hi @eschen42

Thank you for the detailed feedback!
I have not tested this function yet, but based on your detailed description, I agree with your suggestion to consider it as a dedicated tool. May I have understood correctly, the function can take as input an object generated by a first findChromPeaks run, and "refine" it to obtain as output a similar object, "filtered" according to the parameters passed to the refineChromPeaks-merge function. Right?

Mélanie

from tools-metabolomics.

eschen42 avatar eschen42 commented on September 22, 2024

@melpetera You have exactly understood. For further info, please see the three functionalities of refineChromPeaks documented in the "manual" (the first is the one that I need at the moment, but it seemed sensible to wrap all three):

from tools-metabolomics.

eschen42 avatar eschen42 commented on September 22, 2024

@lecorguille @melpetera
I found a bit of a "showstopper": because refineChromPeaks was not available in XCMS 3.6.1, I wrapped the (proposed) xcms_refine tool with a dependency on XCMS 3.12.0. Unfortunately, the .RData file that this produces has an incompatibility with XCMS 3.6.1, so that xcms_merge threw an error when trying to consume the .RData file.

So, it seems that this is blocked until other tools in the suite run under XCMS 3.12.0

from tools-metabolomics.

lecorguille avatar lecorguille commented on September 22, 2024

Sure, we have to bump the xcms version for all the wrappers.
Can you submit a PR ?

And indeed, unfortunately, we will have to update the different test_data RData :/

from tools-metabolomics.

eschen42 avatar eschen42 commented on September 22, 2024

@lecorguille Okay, if I understand you, I can submit a PR for this tool.

Here is the question that I have is what to do about the dependency on XCMS 3.12.0, since ordinarily this is handled through the macros. Should I hard code it into the PR and then you fix it during the merge after the switch to XCMS 3.12.0 ?
To put it another way, are we tracking the needed work and our dialog in a PR ?

Fortunately, it accepts the 3.6.1 test data as input because Johannes Reiner made refineChromPeaks backward compatible.

from tools-metabolomics.

eschen42 avatar eschen42 commented on September 22, 2024

@lecorguille @melpetera I am awaiting clarification on the content for a PR. Thank you.

@lecorguille Okay, if I understand you, I can submit a PR for this tool.

Here is the question that I have is what to do about the dependency on XCMS 3.12.0, since ordinarily this is handled through the macros. Should I hard code it into the PR and then you fix it during the merge after the switch to XCMS 3.12.0 ?
To put it another way, are we tracking the needed work and our dialog in a PR ?

Fortunately, it accepts the 3.6.1 test data as input because Johannes Reiner made refineChromPeaks backward compatible.

from tools-metabolomics.

lecorguille avatar lecorguille commented on September 22, 2024

Sorry, I though that I had already answer. It seems that I never press the green button.

Yes, we should just starting by bumping the xcms version in the macro.
My guess that the new CI workflow will raise a LOT of R linting errors :(
But after that, we will be able to have an idea about the planemo test themself.

from tools-metabolomics.

lecorguille avatar lecorguille commented on September 22, 2024

Let see what will happen here: #194

from tools-metabolomics.

lecorguille avatar lecorguille commented on September 22, 2024

So the xcms 3.12.0 is ready here and just waiting for review:
#194

You will be able to base your tools on it

from tools-metabolomics.

eschen42 avatar eschen42 commented on September 22, 2024

@lecorguille Good news! Thank you very much! I will try to keep an eye on when #194 gets closed.

from tools-metabolomics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.