about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2026-09-07 21:20:27 +0100
committerArun Isaac2026-09-07 22:10:57 +0100
commit5887b50ba4a07e6cead3490ffd1063efb41cbc7e (patch)
tree8adb499528be716c76ae11f2212554a78b9bc526
parent586428723f40d929f3ef9402352378c6d6629841 (diff)
downloaddomagi-main.tar.gz
domagi-main.tar.lz
domagi-main.zip
Add installation instructions to README. HEAD main
-rw-r--r--README.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/README.md b/README.md
index 9b40636..e444450 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,40 @@
 [![domagi CI badge](https://ci.systemreboot.net/badge/domagi.svg)](https://ci.systemreboot.net/jobs/domagi) [![domagi website CI badge](https://ci.systemreboot.net/badge/domagi-website.svg)](https://ci.systemreboot.net/jobs/domagi-website)
 
 domagi is a DuckDB-powered clone of [odgi](https://odgi.readthedocs.io), the pangenome manipulation tool.
+
+# Installation
+## Using Guix
+You can download the latest development version of domagi using Guix. Put the following into a file `channels.scm`.
+```scheme
+(cons (channel
+       (name 'domagi)
+       (url "https://git.systemreboot.net/domagi/")
+       (branch "main")
+       (introduction
+        (make-channel-introduction
+         "b35f8cf1054912282dfea938c35e1c5949d2cba6"
+         (openpgp-fingerprint
+          "7F73 0343 F2F0 9F3C 77BF  79D3 2E25 EE8B 6180 2BB3"))))
+      %default-channels)
+```
+Then run
+```
+guix time-machine -C channels.scm -- shell domagi
+```
+You will be dropped into a shell with domagi on your `PATH`. From there, you can run any domagi command.
+
+Using this installation method, no persistent installation is left on your machine.
+
+## Using pip
+In a new directory, create a python virtual environment and activate it.
+```
+mkdir domagi
+cd domagi
+python3 -m venv .venv
+source .venv/bin/activate
+```
+Ensure that your system has [cmake](https://cmake.org/), [DuckDB](https://duckdb.org/) and the [verstable.h](https://github.com/JacksonAllan/Verstable/) header-only library installed. Then, install the development version of domagi using pip.
+```
+pip install git+https://git.systemreboot.net/domagi/
+```
+You can now run any domagi command in this virtual environment.