Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Uranne
    Junior Member
    • Jun 2013
    • 3

    #1

    Using of R in visualbasic or ...

    Hello
    I'm in internship and I have to make some analysis on microbial kinetics. I have to automise the treatment with vb.net but to work on kinetic, i have to use R.

    On R, I have to found the inflexion point of the exponential, in order to found, for exemple, a retard caused by a product.
    To do it, I use the package named "drc", the function drm for a L.3 regression, but I when I declare drc, it doesn't work, this is my code in vb :

    Code:
    REngine.SetDllDirectory("C:\Program Files\R\R-2.15.2\bin\i386") 
            Dim engine = REngine.CreateInstance("RDotNet") 
            'engine.EagerEvaluate("C:\Program Files\R\R-2.15.2\library\""" & ")") 
    
            engine.EagerEvaluate("library(plotrix)") 
            engine.EagerEvaluate("library(abind)") 
            engine.EagerEvaluate("library(magic)") 
            engine.EagerEvaluate("library(gtools)") 
            engine.EagerEvaluate("library(MASS)") 
            engine.EagerEvaluate("library(nnet)") 
            engine.EagerEvaluate("library(car)") 
            engine.EagerEvaluate("library(alr3)") 
            engine.EagerEvaluate("library(lattice)") 
            engine.EagerEvaluate("library(nlme)") 
            engine.EagerEvaluate("library(stats4)") 
            engine.EagerEvaluate("library(drc)")
    The firsts work, but MASS doesn't work, and drc need all those packages to by used.
    It works on R STUDIO but not by vb ...

    If you can't help me, do you have a better method to found this inflexion point ?
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    I've never tried to interface R and visual basic (just python and C), so I can't help there.

    An alternative approach to the drc package would be to just use lm. After all, kinetics are exponential processes which become linear when one takes the natural log. BTW, since this isn't really a sequencing related question, you might also look into the Biostars forum for similar questions in the future.

    Comment

    • Uranne
      Junior Member
      • Jun 2013
      • 3

      #3
      Sorry if I haven't chose the right forum ... I didn't know Biostars ...

      About using lm, I don't understand how to use it. Have I to take the log of my datas before use it ?
      But it isn't a question to ask here, thank you for your help.

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        Originally posted by Uranne View Post
        Sorry if I haven't chose the right forum ... I didn't know Biostars ...

        About using lm, I don't understand how to use it. Have I to take the log of my datas before use it ?
        But it isn't a question to ask here, thank you for your help.
        Yeah, if y=a*exp(-x/b) then ln(y) = ln(a) - x/b, which is a simple linear regression (ln is the natural log, to avoid confusion).

        Comment

        • Uranne
          Junior Member
          • Jun 2013
          • 3

          #5
          mmmh...
          I understand the logic and I did it in R to study it. But where in this case do I found the abscissa of my inflexion point ? The summary gives the intercept but it is not the good value.

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
            by SEQadmin2



            Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

            Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
            ...
            10-14-2026, 09:55 AM
          • SEQadmin2
            New Genomics Technologies Take Aim at Long-Standing Limits
            by SEQadmin2


            Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

            We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
            ...
            09-28-2026, 10:25 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 10-22-2026, 11:13 AM
          0 responses
          26 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          20 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          36 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          43 views
          0 reactions
          Last Post SEQadmin2  
          Working...