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
            Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
            by SEQadmin2



            CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

            Despite this, “CRISPR helped turn genome editing from a specialized technique into
            ...
            07-31-2026, 11:01 AM
          • SEQadmin2
            Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
            by SEQadmin2


            Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

            The systematic characterization of the human proteome has
            ...
            07-20-2026, 11:48 AM
          • SEQadmin2
            Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
            by SEQadmin2



            Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
            ...
            07-09-2026, 11:10 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 08-03-2026, 10:13 AM
          0 responses
          21 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-31-2026, 02:55 AM
          0 responses
          35 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-24-2026, 12:17 PM
          0 responses
          25 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-23-2026, 11:41 AM
          0 responses
          21 views
          0 reactions
          Last Post SEQadmin2  
          Working...