Sovereign 8s.is mirror of standardgalactic/COPASI
  • XML 76.8%
  • C++ 16.5%
  • C 2.4%
  • Java 1.2%
  • PostScript 1%
  • Other 1.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-01-27 14:59:21 -05:00
.ci - issue 2850: call make with -j2 to use both available threads on travis CI 2020-01-09 10:01:49 +01:00
.github/workflows - get test suite from copasi.org 2025-04-30 09:03:17 +02:00
admin Parser are now re-entrant and easier to debug. 2025-07-30 09:55:39 -04:00
CMakeModules - find relwithdebinfo files 2025-11-10 14:25:44 +01:00
copasi - fix missing increment for CRootMask::adjust 2026-01-14 08:30:19 +01:00
COPASI_TestSuite - add eventtests to the test suite 2015-05-22 17:30:10 +02:00
CopasiCS problems with line ending? (git) 2013-10-02 16:05:39 +01:00
CopasiWS Fixes required to enable JIT compilation under Windows. 2020-11-10 17:41:39 -05:00
cvs_admin Removed obsolete files. 2020-04-29 09:53:14 -04:00
docs some code documentation 2006-04-20 13:42:40 +00:00
franks_testsuite Merge branch 'develop' into release/Version-4.46 2025-05-15 14:39:35 +02:00
gitTools Fixed to update versions correctly. 2019-05-07 13:15:22 -04:00
gps Removed obsolete files. 2020-04-29 09:53:14 -04:00
InnoSetup - need to convert filename to window path 2024-11-13 09:50:26 +01:00
LinuxTGZ - copy additional files if specified 2025-12-04 14:25:13 +01:00
mca_test_wrapper Merge branch 'develop' into release/Version-4.46 2025-05-15 14:39:35 +02:00
PackageMaker Updates for new build systems. 2022-02-04 16:17:05 -05:00
sbml-testsuite Merge branch 'develop' into release/Version-4.46 2025-05-15 14:39:35 +02:00
semantic-test-suite Merge branch 'develop' into release/Version-4.46 2025-05-15 14:39:35 +02:00
speed-test-suite fixed title 2021-02-16 13:51:12 -05:00
steady_state_test_wrapper Merge branch 'develop' into release/Version-4.46 2025-05-15 14:39:35 +02:00
stochastic-testsuite Merge branch 'develop' into release/Version-4.46 2025-05-15 14:39:35 +02:00
TCAnalytics Time Course Analytics 2014-11-14 13:56:46 +00:00
tests - bump number of functions in the db 2025-10-27 13:03:14 +01:00
TestSuite - add schaber example as combine archive 2025-10-27 11:23:16 +01:00
testxppaut Merged changes from branch Build-25 into HEAD. 2008-03-12 02:18:24 +00:00
Tools - use 'r' to read files 2023-11-07 15:11:37 +01:00
userdocs/userguide Removed obsolete files. 2020-04-29 09:53:14 -04:00
.clang-format Added clang-format configuration file. 2020-01-24 22:44:06 -05:00
.gitattributes mark .cps files as XML markup, not component pascal 2024-06-17 11:39:36 -04:00
.gitignore Bug 3248: Fixed test_api failures. 2024-06-25 10:59:43 -04:00
.sonarcloud.properties - issue 2850: cache sonar analysis on travis CI 2020-01-08 13:57:01 +01:00
.travis.yml - issue 2850: manually cache .ccache dir, language is set to python, not cpp, so this is not done automatically 2020-01-09 10:39:13 +01:00
ChooseQtVersion.cmake Merge branch 'develop' into release/Version-4.46 2025-05-15 14:39:35 +02:00
cmake-set-dependencies.cmake - allow compilation with mingw 2025-02-19 13:48:19 +01:00
CMakeLists.txt - turn extensions off (needed to compile on macos13.3) 2025-12-02 17:22:49 +01:00
CODE_OF_CONDUCT.md Added code of conduct. 2023-03-06 15:05:12 -05:00
conanfile.txt - fixed dependency detection by patching config files 2019-08-30 14:07:39 +02:00
COPASI.doxyfile - exclude files we dont use 2023-07-26 14:24:57 +02:00
copasi.icns Created new MacOS X icon which is closer in appearance than the icon on other platforms. 2010-05-11 16:50:48 +00:00
CTestConfig.cmake - update drop location for develop branch 2018-02-02 10:04:14 +01:00
license.txt - update license file to Artistic License 2.0 2015-08-26 08:46:56 -07:00
MakeMacImage.sh moved examples directory to the top level directory so that they are accessible. 2005-02-02 09:14:58 +00:00
README.Linux Merged changes from Build-30 to HEAD. 2009-04-21 16:22:38 +00:00
README.md Update README.md 2024-06-14 11:35:32 -04:00
README.SunOS Merged changes from Build-30 to HEAD. 2009-04-21 16:22:38 +00:00
README.Win32 Merged changes from Build-30 to HEAD. 2009-04-21 16:22:38 +00:00
README_MAC.rtf Merged changes from Build-30 to HEAD. 2009-04-21 16:22:38 +00:00
removeWarningsFromXcode.sh - added script to remove excessive warnings from xcode 2013-10-25 08:08:52 +02:00
valgrind-suppression.txt Bug 3217: Fixed broken SBML tests. 2024-03-06 16:43:19 -05:00

COPASI: biochemical network simulator

COPASI is a software application for simulation and analysis of biochemical networks and their dynamics. COPASI is a stand-alone program that supports models in the SBML standard and can simulate their behavior using ODEs or Gillespie's stochastic simulation algorithm; arbitrary discrete events can be included in such simulations.

COPASI carries out several analyses of the network and its dynamics and has extensive support for parameter estimation and optimization. COPASI provides means to visualize data in customizable plots, histograms and animations of network diagrams. (list of features).

Home page: https://copasi.org | Follow us on Mastodon.

Download COPASI

Precompiled versions of COPASI are available for all operating systems on the COPASI Homepage.

Building COPASI

COPASI's sources are available from our github repository. These sources are written in standard C++ and will compile on Linux, OS X and Windows.

Dependencies

To start compiling COPASI we recommend to use the copasi-dependencies package.The dependency package compiles all the dependencies necessary for COPASI, they include clapack, cppunit, expat, raptor libSEDML, libsbml, SBW as well as the Qt libraries QWT, QWT3D and the Qt MML widget. Instructions for building the dependencies are described here:

Compiling COPASI

Once the dependencies have been built, COPASI is easily compiled using CMake:

git clone https://github.com/copasi/COPASI
mkdir build_copasi
cd build_copasi
cmake -DBUILD_GUI=OFF -DCMAKE_INSTALL_PREFIX=~/copasi -DCOPASI_DEPENDENCY_DIR=../copasi-dependencies/bin ../COPASI
make
make install 

In the above ../copasi-dependencies/bin is the location of the build folder of the compiled copasi-dependencies. The option BUILD_GUI=OFF builds only the command line version of COPASI (aka CopasiSE). To build the graphical frontend (aka CopasiUI), and having Qt 4 or 5 installed, the option would need to be BUILD_GUI=ON. In that case you'd additionally provide an option SELECT_QT=Qt5 (or SELECT_QT=Qt4) for COPASI to look for the Qt libraries. (To help finding the Qt version you selected, you should specify the Qt5_DIR=<dir> variable to point to the lib/cmake/Qt5 directory of the Qt5 installation. Alternatively for Qt4 you can set the QT_DIR=<dir> variable to point to your Qt4 installation.)

The option CMAKE_INSTALL_PREFIX=~/copasi specifies, that COPASI ought to be installed in the current users home directory in a subfolder copasi. The path ../COPASI is the source directory of COPASI that has been created by the git clone command in the first statement.

There are many more compile options available, options for building the language bindings as well as options to enable some experimental features that are not yet available in the stable builds that are released publicly. To view the complete set of options, start the graphical cmake frontend in the continuing from the above command this would be done with:

cmake-gui ../COPASI

The correct version number

The COPASI version number you will see in your application is generated during the build process. For this to work we install git hooks, so it gets updated automatically, by running:

./gitTools/initTools

once from the COPASI source dir (which will set up the paths to astyle, gawk, dos2unix and wget). This helps us keep commits formatted correctly from different operating systems. Once that is set up, a call to:

 ./gitTools/UpdateCopasiVersion

will update the <copasi/CopasiVersion.h> to match that of the selected branch. That

Linking a C++ program against the COPASI API

To link your own program against the COPASI C++ API you would first build COPASI as described above however, with an additional CMake option -DCOPASI_INSTALL_C_API=ON. Thus the full configure / make / install commands from above would be:

git clone https://github.com/copasi/COPASI
mkdir build_copasi
cd build_copasi
cmake -DCOPASI_INSTALL_C_API=ON -DBUILD_GUI=OFF -DCMAKE_INSTALL_PREFIX=~/copasi -DCOPASI_DEPENDENCY_DIR=../copasi-dependencies/bin ../COPASI
make
make install 

Now additionally to the COPASI SE executable being built, also all COPASI header files and the COPASI (static) library will be installed into the CMAKE_INSTALL_PREFIX (thus in the example above header files will end up in ~/copasi/include and libraries in ~/copasi/lib). We also export a CMAKE configuration that you can import for your own CMAKE projects. That way you only need to add a line like:

find_package(libCOPASISE-static CONFIG REQUIRED)

to the CMakeLists.txt file of your project. And later link your project against libCOPASISE-static. This will then automatically link against all the libraries that the COPASISE library was linked against. In order for CMake to find the configuration you would either have to include the lib/cmake folder of your install prefix into your projects CMAKE_PREFIX_PATH variable or specify an option libCOPASISE-static_DIR with the folder of the config file when configuring your project. For the prefix specified above this would be:

-DlibCOPASISE-static_DIR=~/copasi/lib/cmake

The gist of a complete example CMakeList.txt is also available.

Feedback

To submit feedback, or bug reports, please use the COPASI Tracker, or our mailing list.

License

The packages available on this page are provided under the Artistic License 2.0, which is an OSI approved license. This license allows non-commercial and commercial use free of charge.

Git maintenance

Release branches:

  • Naming: Version-$major.$minor

Start release branch

To create a new release branch check out the starting branch which is normally develop:

git checkout develop
git flow release start <name>
git push origin

Finish release branch

To finish a release:

git checkout release/<name>
git flow release finish <name>
git push

Tagging snapshots

In order to tag the latest commit in the current branch as a snapshot execute:

gitTools/UpdateCopasiVersion --registerBuild

The above command will automatically select the next tag of the format: Build-N and push the tag to the upstream repository.

Building API documentation

To build the API documentation doxygen can be used. here the command line for generating the documentation after a git checkout:

PROJECT_NUMBER=4.40.278 doxygen -x COPASI.doxyfile > Doxyfile && doxygen

This will fix the version number of the generated files to the one specified in the environment variable and generate a local Doxygen file with which it runs doxygen. The resulting documentation is placed in ./doc/html.

To update it on the copasi.github.io project you'd run from the copasi.github.io folder:

pushd ./static/API_Documentation/
rm -rf ./*
git commit -a -m " - removed old documentation"
cp -R ../../../COPASI/doc/html/* .
git add . 
git commit -a -m " - add documentation for COPASI 4.40.278"
git push