Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

94 ants is our default registrator but not installed by default #95

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion brainles_preprocessing/registration/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import warnings


try:
from .ANTs.ANTs import ANTsRegistrator
except ImportError:
warnings.warn(
"ANTS package not found. If you want to use it, please install it using 'pip install brainles_preprocessing[ants]'"
"ANTS package not found. If you want to use it, please install it using 'pip install antspyx'"
)

try:
Expand Down
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exclude = [
]

name = "brainles_preprocessing"
version = "0.0.0" # will be overwritten by poetry-dynamic-versioning but needs to be set
version = "0.0.0" # will be overwritten by poetry-dynamic-versioning but needs to be set
description = "Tool for preprocessing tasks in biomedical imaging, with a focus on (but not limited to) multi-modal brain MRI"
license = "Apache-2.0"

Expand Down Expand Up @@ -55,6 +55,9 @@ pathlib = "^1.0.1"
nibabel = ">=3.2.1"
numpy = "^1.23.0"

# registration
antspyx = "^0.4.2"

# hd-bet reqs
brainles_hd_bet = ">=0.0.8"

Expand All @@ -64,13 +67,11 @@ auxiliary = ">=0.0.42"
rich = "^13.6.0"

# optional registration backends
antspyx = { version = "^0.4.2", optional = true }
ereg = { version = "^0.0.10", optional = true }


[tool.poetry.extras]
all = ["antspyx", "ereg"]
ants = ["antspyx"]
all = ["ereg"]
ereg = ["ereg"]


Expand Down
Loading