Skip to content

Commit 801a474

Browse files
committed
Add makoview information to the docs
1 parent f457e08 commit 801a474

2 files changed

Lines changed: 83 additions & 0 deletions

File tree

getting-started.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,19 @@ Configuration settings can be found in [Configuration](configuration).
5656

5757
{: .note }
5858
If your institution has an [nf-core configuration](https://nf-co.re/configs/) available, you can access it through `-profile` i.e. `-profile wehi` to use the WEHI Milton HPC. See [Execution Profiles](deployment#execution-profiles) for more.
59+
60+
## Running makoview
61+
62+
Once the pipeline has finished, you can run the visualisation tool `makoview` using:
63+
64+
```bash
65+
export MAKO_OUTPUT_DIR="/data/gpfs/projects/punim0614/occheng/epi_differential/pipeline/runs/longbench/results"
66+
export MODCALLER="dorado" # either "dorado" or "m6anet"
67+
export DIFFERENTIAL_MODEL="adaptive_binomial"
68+
uvx makoview \
69+
--differential-results $MAKO_OUTPUT_DIR/differential/$MODCALLER/${DIFFERENTIAL_MODEL}_fits.tsv \
70+
--modification-db $MAKO_OUTPUT_DIR/modcall/$MODCALLER/all_sites.duckdb \
71+
--port 8000
72+
```
73+
74+
See [makoview](makoview) for more information on alternative installation methods for Makoview and remote forwarding.

makoview.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
title: makoview
3+
layout: default
4+
nav_order: 6
5+
---
6+
7+
Mako comes with an interactive application called **_makoview_** which can be used to visualise the results once the pipeline has finished.
8+
9+
## Installation
10+
11+
makoview is a Python package for Python 3.9 — 3.12.12, available on PyPI and downloadable through your preferred Python package manager.
12+
13+
```bash
14+
# with pip:
15+
$ pip install makoview
16+
$ makoview --help
17+
18+
# with pipx:
19+
$ pipx run makoview --help
20+
21+
# using uvx (✅ recommended!!)
22+
$ uvx makoview --help # or uvx --python 3.12 makoview --help
23+
```
24+
25+
[`pipx`](https://github.com/pypa/pipx) and [`uv`](https://docs.astral.sh/uv/) allow executables to be run within their own isolated environment, preventing dependency resolution issues. They are recommended over `pip install`.
26+
27+
## Usage
28+
29+
Makoview has three parameters:
30+
31+
```bash
32+
options:
33+
-h, --help show this help message and exit
34+
--differential-results DIFFERENTIAL_RESULTS
35+
Path to differential sites database file
36+
--modification-db MODIFICATION_DB
37+
Path to modification database file
38+
--port PORT Port for the Shiny application (default: 8000)
39+
```
40+
41+
The default usage is as follows:
42+
43+
```bash
44+
export MAKO_OUTPUT_DIR="/data/gpfs/projects/punim0614/occheng/epi_differential/pipeline/runs/longbench/results"
45+
export MODCALLER="dorado" # either "dorado" or "m6anet"
46+
export DIFFERENTIAL_MODEL="adaptive_binomial"
47+
makoview \
48+
--differential-results $MAKO_OUTPUT_DIR/differential/$MODCALLER/${DIFFERENTIAL_MODEL}_fits.tsv \
49+
--modification-db $MAKO_OUTPUT_DIR/modcall/$MODCALLER/all_sites.duckdb \
50+
--port 8000
51+
```
52+
53+
This will launch a web server running on port `8000`, accessible at [http://127.0.0.1:8000](http://127.0.0.1:8000).
54+
55+
### Running on HPC
56+
57+
On HPC systems, if you have SSH access, you can port forward the web server from the server to your local machine.
58+
59+
```bash
60+
# launch the server on port within [10000, 65535], i.e.
61+
🛜 SERVER $ makoview <params> --port <abcde>
62+
63+
# next, on your local machine, forward that port:
64+
👩‍💻 CLIENT $ ssh -L <abcde>:localhost:<abcde> username@hpc.server
65+
```
66+
67+
You can now connect to Makoview locally using `http://127.0.0.1:<abcde>`.

0 commit comments

Comments
 (0)