GithubHelp home page GithubHelp logo

Comments (10)

TaraBartolec avatar TaraBartolec commented on September 27, 2024 1

Perfect, it works!
also @tobiasko I think personally it would be useful to restrict an XIC by retention time, but it would be useful to have the option for both if not too difficult.
Thanks again,
Tara

from rawrr.

tobiasko avatar tobiasko commented on September 27, 2024

Hi Tara,

thanks for your positive feedback and for asking these questions! 😀

Regarding the restriction of extraction: I think the API, or more precisely the GetChromatogramData method, see allows you to define a startScan and endScan argument to restrict the import. But currently, we call the method using -1 and -1 see
which most likely means without restriction. I think this could be changed, but would require some code changes on the C# level and we would need to think about how to pass these arguments from the R layer to C# and incorporate the arguments as attributes to the chromatogram object.

But in essence, it would be a very useful extension. Not sure why we didn't do it right away. 😜

In terms of functionality, what would be your favourite option? Would you like to restrict by scan index, or by RT?

I would need to confirm all of the above with @cpanse first and have a look at the API docu.

Best,
Tobi

from rawrr.

cpanse avatar cpanse commented on September 27, 2024

@tobiasko https://github.com/fgcz/rawR/blob/44d3cc08b15ea66241647d3c1df47a3649cab682/src/rawR.cs#L769

from rawrr.

tobiasko avatar tobiasko commented on September 27, 2024

Aha. @cpanse, so does this mean the API explicitly returns zeros, but our code "discards" them? They are not written to the tmp file?

from rawrr.

cpanse avatar cpanse commented on September 27, 2024

Aha. @cpanse, so does this mean the API explicitly returns zeros, but our code "discards" them? They are not written to the temp file?

yes; for exactly that reason @TaraBartolec mentioned "it will likely increase the object size.'' For the moment we should deliver the libraries' output and we have to think about a slim or trim argument for removing the (0, 0) tuples.!?

from rawrr.

tobiasko avatar tobiasko commented on September 27, 2024

makes sense. or we think about a smarter way of storing the data inside the S3 object. If these vectors tend to be very sparse...well, use a sparse vector instead of a dense one. This will only store none zero values and plot() will behave as expected.

from rawrr.

cpanse avatar cpanse commented on September 27, 2024

Dear @TaraBartolec @tobiasko

I uncommented line 769. can you have a look?

install.packages('http://fgcz-ms.uzh.ch/~cpanse/rawR_0.1.2.tar.gz', repo=NULL)

C

from rawrr.

tobiasko avatar tobiasko commented on September 27, 2024

Hi Tara,

one last question since you tried to plot using the gglot library: How important is this to you? Our approach was to use base R for plotting to keep it simple from a developers perspective (no dependency, always available). But maybe this is not the most important aspect...

Greetings,
Tobi

from rawrr.

TaraBartolec avatar TaraBartolec commented on September 27, 2024

Hi Tobi,

It is not that important to use ggplot, I just used it as I wanted to restrain the retention times plotted and had trouble doing that with the plot() function for some reason. Being able to easily filter RT is the most important thing for the plotting for us.

Best,
Tara

from rawrr.

tobiasko avatar tobiasko commented on September 27, 2024

Ok, great! THX again for your feedback.

from rawrr.

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.