Skip to content

Install

Skopia uses pixi to manage its environment. One pixi install provides the pinned Python (3.11) and Node (20) versions and every dependency, read from the lock file, so every machine gets the same versions. You do not need conda, a virtual environment or a separate Node install.

If you have never installed software from GitHub, follow every step in order. Paste anything in a code block into a terminal:

Open the Terminal app (Cmd+Space, type "Terminal", press Enter).

Open your terminal emulator (GNOME Terminal, Konsole or similar).

Open PowerShell (Start menu, type "PowerShell", press Enter).

1. Install Git

Git downloads the source code from GitHub. You need it once per machine.

Run git --version. If Git is not installed, macOS offers to install the Command Line Tools; click Install and wait for it to finish.

Debian or Ubuntu:

sudo apt-get install git

Fedora:

sudo dnf install git

Download and run the installer from https://git-scm.com/download/win, accepting the defaults.

Check it:

git --version

Without Git

You can also open https://github.com/CahanLab/skopia, click the green Code button, choose Download ZIP and unzip it anywhere. Then skip to step 3. Updating later means downloading a new ZIP.

2. Download Skopia

Pick a folder for Skopia (your home folder is fine) and clone the repository into it:

cd ~
git clone https://github.com/CahanLab/skopia.git
cd skopia

This creates a skopia/ folder. The last command moves your terminal into it; run every later command from there.

3. Install pixi

pixi installs Python, Node and the project's dependencies. You need it once per machine.

curl -fsSL https://pixi.sh/install.sh | bash
curl -fsSL https://pixi.sh/install.sh | bash
iwr -useb https://pixi.sh/install.ps1 | iex

pixi is a single binary and does not conflict with an existing conda installation. Close and reopen the terminal so that pixi is on your PATH, go back into the folder with cd skopia, and check it:

pixi --version

4. Set up the project

From inside the skopia/ folder:

pixi install

This reads pixi.lock and installs the same versions on every platform. The first run downloads several hundred MB and can take a few minutes. You repeat it only after an update.

Optional: cell typing with PySingleCellNet

Cell Typing uses PySingleCellNet, which is not in the default environment because it brings a large machine-learning and plotting stack. To use it, install the pyscn environment as well:

pixi install -e pyscn

and start the backend from it in step 5 with pixi run -e pyscn backend. Everything else works the same in either environment. Without it, the Cell Typing dialog shows install instructions instead of failing. See Cell typing.

5. Launch

Skopia runs as two processes, a Python backend and the web frontend, so you need two terminal windows, both inside the skopia/ folder.

In the first terminal, start the backend:

pixi run backend

or, if you installed the PySingleCellNet environment:

pixi run -e pyscn backend

The backend serves on http://localhost:8000. Wait until it prints Application startup complete. The first start in a fresh environment can take up to a minute while Python builds caches for the scientific libraries; later starts take a few seconds.

In the second terminal, start the frontend:

pixi run dev

The first run installs the frontend's packages. When the terminal prints a line like Local: http://localhost:5173/, open http://localhost:5173 in your browser.

Leave both terminals running while you use Skopia. To stop, press Ctrl+C in each.

Save before you stop the backend

The backend keeps your session in memory. Stopping it discards everything you computed since the last export. See Save and export.

To open your own file instead of the toy dataset, see Load your data.

Update to the latest version

From inside the skopia/ folder:

git pull
pixi install

If you use the PySingleCellNet environment, also run pixi install -e pyscn. Then stop and restart both pixi run commands.

git pull follows the main branch, which can be ahead of the last numbered release. To run a specific release instead, see Versioning and releases.

Check that it works

With no file named, the backend loads the bundled toy dataset toy_spatial.h5ad. At http://localhost:5173 you should see:

  • the header naming toy_spatial.h5ad, with 1,000 cells and 76 genes, and the version under the Skopia name;
  • the menus File, ◫ Compare, Select, Add, Adjust, Analyze, Cell Typing and Display across the top;
  • the Cells panel on the left, listing the cell_type column;
  • a scatter plot of 1,000 points in the center, on the Embedding tab;
  • the Genes panel on the right.

Continue with Launch and first look.

If something goes wrong

  • The page says the backend is not reachable or "still starting up". Wait for Application startup complete. in the backend terminal and reload the page. If the frontend terminal says nothing is listening there, the backend is not running.
  • Address already in use. An earlier backend, or another program, holds port 8000. Stop it, or run Skopia's backend on another port.
  • Unexpected token '<'. Another web server is answering on port 8000.
  • An error about an incompatible architecture, or a missing Rust compiler while installing the pyscn environment.

Each of these has a cause and a fix in Troubleshooting.

Installing without pixi

Skopia can also be installed by hand: pip install -e backend in a Python 3.10 or newer virtual environment, and npm install in frontend/ with Node 18 or newer. You then start the backend with uvicorn skopia.main:app --reload from backend/ and the frontend with npm run dev from frontend/. pixi removes the need to match versions yourself, and the lock file is only honored through pixi.