Getting Started
Installation
Sopa can be installed on every OS with pip
or poetry
.
The preferred Python version is python==3.10
, but we also support 3.9
to 3.11
.
Advice (optional)
We advise creating a new environment via a package manager (except if you use Poetry, which will automatically create the environment).
For instance, you can create a new conda
environment:
Choose one of the following, depending on your needs (it should take at most a few minutes):
Baysor usage
Even though pip install 'sopa[baysor]'
will install some dependencies related to baysor, you still have to install the baysor
command line (see the official repository) if you want to use it.
Snakemake setup
To use the Snakemake pipeline, the installation process is slightly different because you'll need the whole repository.
-
Clone the
sopa
repository, and move to the root of the project: -
Create a
conda
environment calledsopa
: -
At the root of the
sopa
directory, install the package in dev mode, and choose the extras you want (among cellpose/baysor/tangram, depending on your desired usage):
Now, follow our snakemake tutorial to run your first pipeline.
Note
You can also use a separate environment for snakemake
. In this case, you don't need to install the 'snakemake'
extra when installing sopa
. But you may still need to install other extras, for instance, 'cellpose'
if you plan to run Cellpose.
Usage
Sopa comes in three different flavours, each corresponding to a different use case:
Snakemake pipeline
: choose a config, and run our pipeline on your spatial data in a few minutes. See our snakemake tutorial.CLI
: use our command-line-interface to prototype quickly your own pipelineAPI
: use directlysopa
as a Python package for full flexibility and customization (see a tutorial here)