Skip to content

Commit

Permalink
Merge pull request #7 from brainglobe/conda-install
Browse files Browse the repository at this point in the history
Install via conda environment file
  • Loading branch information
viktorpm authored Oct 19, 2023
2 parents 09d264f + 8fe2aea commit 75646f0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include LICENSE
include README.md
exclude .pre-commit-config.yaml
exclude *.yaml
exclude cruft.json

recursive-exclude * __pycache__
Expand Down
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,32 @@ Build unbiased anatomical templates from individual images
- Support 3D volumetric microscopy images, such as STPT and LSM.
- Generate templates compatible with the [BrainGlobe ecosystem](https://brainglobe.info/), especially the [BrainGlobe Atlas API](https://brainglobe.info/documentation/bg-atlasapi/index.html).

> **Warning** 🏗️
> **Warning**
> - Early development phase. Stay tuned
> - Interface may undergo changes.
## Installation

> **Warning**
> - [ANTs](http://stnava.github.io/ANTs/), which [we depend on](#template-construction-with-ants), is a large package. The installation may take a while.
> - ANTs is only available for Linux and macOS. If you are on Windows, you can use [WSL](https://learn.microsoft.com/en-us/windows/wsl/install)
We recommend installing `brainglobe-template-builder` within a [conda](https://docs.conda.io/en/latest/) or [mamba](https://mamba.readthedocs.io/en/latest/index.html) environment. Instructions assume `conda` usage, but `mamba`/`micromamba` are interchangeable.

Use the provided `environment.yaml` file to create a new environment.

```sh
conda create -n template-builder -c aramislab -c conda-forge python=3.10 ants parallel
git clone https://github.com/brainglobe/brainglobe-template-builder
cd brainglobe-template-builder
conda env create -f environment.yaml -n template-builder
conda activate template-builder
```

To get the latest development version of `brainglobe-template-builder`, clone this repository and pip install the package, including all the extra "dev" dependencies:
We have called the environment `template-builder`, but you can choose any name you like.

To install the latest development version of `brainglobe-template-builder`,

```sh
git clone https://github.com/brainglobe/brainglobe-template-builder
cd brainglobe-template-builder
pip install -e .[dev]
```
For zsh users (default shell on macOS):
Expand Down
11 changes: 11 additions & 0 deletions environment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
channels:
- aramislab
- conda-forge
- defaults
dependencies:
- python=3.10
- conda-forge::parallel
- conda-forge::napari
- conda-forge::pyqt
- aramislab::ants
- pip

0 comments on commit 75646f0

Please sign in to comment.