Installation¶
Note
The following instructions are for installing the project directly from the git repository. Once it is available on pypi.org, it can be installed as a regular package
Clone the git repository locally
$ git clone https://gitlab.gwdg.de/vadakkeputha/csmparser $ cd csmparser
Add git hooks for automatic updates of the current Cytocalc version and commit hash (to save in plots metadata for provenance)
$ git config --local core.hooksPath .githooks/ && .githooks/post-commit
Note
Without the hooks, version will not contain commit information, but instead simply return “vX.Y.Z”.
Create a python virtual environment for installing the package
$ python -m venv .venv
Activate the virtual environment
$ source .venv/bin/activate
Note
For other shells like
csh,fishorps1, use correspondingactivate.[csh,fish,ps1]file. The virtual environment can be deactivated usingdeactive.Install the packages—this may take a while
(.venv) $ pip install -r requirements.txt (.venv) $ pip install -e .
Using the
-eflag automatically updates the package if it has been edited, or when adding new functionalityCytocalchas been installed! Now you can use scripts (or create them) and analyze code usingCytocalc