Giter VIP home page Giter VIP logo

cipa's Issues

Error in sprintf("%s not found! Interpreting dose as nanomolar concentrations.") issue

I have the problem associated with sprint error in R 3.6.3(using Rstudio terminal tab).
Let me know how to solve below error.

-Command used in Rstudio terminal tab-

   Rscript AP_simulation.R -d drug1 -x "1-10,15,20,25" --cmaxfile="my_cmax_table.csv" --hergpath="path/to/herg/results/" --hillpath="path/to/hill/results/"-

-Error result example-

   loaded via a namespace (and not attached):
   [1] compiler_3.6.3 getopt_1.20.3
   Error in sprintf("%s not found! Interpreting dose as nanomolar concentrations.") :

   Calls: print -> sprintf

-Rcode part(AP_simulation.R) that may occur error-

  #--- get therapeutic concentration (Cmax)
      if(drug=="control"){
        cmax<-0
      }else{
      if(!file.exists(cmaxfile)){
        cmax<-1
       print(sprintf("%s not found! Interpreting dose as nanomolar concentrations."))
      }else{
      drugtable<-read.csv(cmaxfile)
      cmax<-drugtable[as.character(drugtable$drug)==drug,"therapeutic"] # should be in nanomolar
      if(length(cmax)==0){
       cmax<-1
       print(sprintf("Cmax undefined, interpreting dose as nanomolar concentrations."))
      }else if(length(cmax)==1){
       print(sprintf("Cmax set to %g nM, interpreting dose as multiples of Cmax.",cmax))
      }else{
        stop("Multiple entries for %s therapeutic concentration!",drug)
      }
    }
   }

dyn.load error issue.

extension<-ifelse(isWindows, ".dll", ".so")
dyn.load(paste0("D:/platanus/CiPA_Rocde/CiPA-master/AP_simulation/models/newordherg_qNet",extension))

Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'D:/platanus/CiPA_Rocde/CiPA-master/AP_simulation/models/newordherg_qNet.dll'
LoadLibrary failure: The specified module could not be found.

May be..... Does it occur error because of Rtool version?

I'm using R 3.6.3 version and Rtool35 version based on window10.

Run Rscript compute_TdP_error.R issue

I'm running the compute_TdP_error.R script and the following error occurs.
image
image
This error message appears 25 times, I guess it happens in a β€˜for’
I debugged the code and found that the problem occurred in # for outdir

What is the cause of this?

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.