Skip to content

Commit

Permalink
modified instructions on conda environment
Browse files Browse the repository at this point in the history
  • Loading branch information
niksirbi committed Jun 21, 2024
1 parent 540ec49 commit 871d194
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Build unbiased anatomical templates from individual images
```sh
git clone --recursive https://github.com/CoBrALab/ optimized_antsMultivariateTemplateConstruction.git
cd optimized_antsMultivariateTemplateConstruction
echo "export PATH=$(pwd):$PATH" >> $HOME/.bashrc
echo "export PATH=$(pwd):\$PATH" >> $HOME/.bashrc
source $HOME/.bashrc # or restart your terminal
```

Expand All @@ -58,15 +58,18 @@ We recommend installing `brainglobe-template-builder` within a [conda](https://d


```sh
conda create -n template-builder -c conda-forge python=3.11 pip parallel qbatch simpleitk vtk
conda env create -n template-builder -f environment.yaml
conda activate template-builder
```

We have called the environment "template-builder", but you can choose any name you like.

This environment contains all dependencies for running the optimised ANTs template construction pipeline, but if you want to use the pre- and
post-processing funcitonalities of `brainglobe-template-builder`, you will need to also pip install the package in editable mode (see below).

### Install `brainglobe-template-builder` with `pip`

```sh

To install the latest development version of `brainglobe-template-builder`, first clone the repository:

```sh
Expand Down
4 changes: 1 addition & 3 deletions examples/cobralab_environment.yaml → environment.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: cobralab
channels:
- conda-forge
dependencies:
- python=3.11
- pip
- parallel
- qbatch
- scipy
- simpleitk
- vtk
- vtk-base
- vtk-io-ffmpeg
4 changes: 2 additions & 2 deletions examples/slurm_batch_across_average_types.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
module load miniconda
module load ants

# Activate the conda environmen
conda activate cobralab
# Activate the conda environment
conda activate template-builder

# Define the atlas-forge directory and species name
ATLAS_DIR="/ceph/neuroinformatics/neuroinformatics/atlas-forge"
Expand Down
2 changes: 1 addition & 1 deletion examples/slurm_batch_across_templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# Load the required modules
module load miniconda
module load ants
# Activate the conda environment (becaue we need parallel and qbatch)
# Activate the conda environment
conda activate template-builder

# Define the atlas-forge directory and species name
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ dependencies = [
"brainglobe-utils>=0.5",
"brainglobe-atlasapi>=2.0.7",
"loguru",
"simpleitk",
"vtk",
"antspyx",
]

Expand Down

0 comments on commit 871d194

Please sign in to comment.