Git Product home page Git Product logo

corc's People

Contributors

bdklahn avatar jonasfoe avatar jpahle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

fbergmann bdklahn

corc's Issues

CoRC crashes Rscript on some configurations

Sarah reported crashes when loading models via Rscript.
This doesn't happen via interactive sessions or R -f ./file.R which can be used as workaround.
Also happens on the linux cluster.
R versions confirmed crashing: <=3.3.3
R versions confirmed safe: >=3.4.2

Reproducible via:
test.R

library(CoRC)
sessionInfo()
loadExamples(1)

Run with:

Rscript ./test.R
R -f ./test.R

Crash:

*** caught segfault ***
address 0x11000080, cause 'memory not mapped'

Traceback:
1: .Call("R_swig_CDataModel_loadModel", self, fileName, as.logical(.copy), PACKAGE = "COPASI")
2: f(x, ...)
3: c_datamodel$loadModel(normalizePathC(path))
4: force(x)
5: grab_msg(c_datamodel$loadModel(normalizePathC(path)))
6: loadModel(system.file("extdata", .x, package = pkgname))
7: .f(.x[[i]], ...)
8: .Call(map_impl, environment(), ".x", ".f", "list")
9: map(models, ~loadModel(system.file("extdata", .x, package = pkgname)))
10: loadExamples(1)
An irrecoverable exception occurred. R is aborting now ...
Segmentation fault (core dumped)

Can't terminate running tasks

R supports interactive termination of function execution.
I have not managed to allow termination of COPASI tasks from R.
In case of exceptionally long running tasks this can be frustrating.

Running 2019 PloS Comp Biol iron metabolism model of Parmar and Mendes

Wondering if you could guide me to getting this code to give time course results.
The cps files are here cpsFiles.zip

library(CoRC)
unloadAllModels()
(L=loadExamples())
runTC(model=L[[1]]) #runs fine
path="~/ccf/jarek/grants/msb/iron/parmar19sup/cps/"
(m0=loadModel(paste0(path,"IronMousePV3.cps")))
runTC(model=m0) # no results
(m1=loadModel(paste0(path,"IronMousePV3_Hemochromatosis.cps")))
runTC(model=m1) # no results

CoRC system compatibility is scarcely tested

We are currently unsure whether CoRC is stable on all system configurations.
Currently no system is known to cause crashes.
32 bit systems are unsupported.
It would be very helpful to get some feedback on which systems can fully execute the test set / where it fails.

Testing CoRC can be done as follows:

install.packages(c("remotes", "sessioninfo", "testthat"))
remotes::install_github("jpahle/CoRC", force = TRUE, INSTALL_opts = "--install-tests")
CoRC::getCopasi()
sessioninfo::session_info("CoRC")
testthat::test_package("CoRC")

The output the last two commands is of interest.

Add to documentation

The documentation should be extended. This might include use cases or workflows for beginners, intermediate users, as well as experts.

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.