jpahle / corc Goto Github PK
View Code? Open in Web Editor NEWThe Copasi R connector, a high-level R API for Copasi
Home Page: https://jpahle.github.io/CoRC
License: Artistic License 2.0
The Copasi R connector, a high-level R API for Copasi
Home Page: https://jpahle.github.io/CoRC
License: Artistic License 2.0
The documentation should be extended. This might include use cases or workflows for beginners, intermediate users, as well as experts.
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
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)
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.