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

add meta #51349

Merged
merged 29 commits into from
Oct 28, 2024
Merged

add meta #51349

Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
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
28 changes: 28 additions & 0 deletions recipes/meta/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

unset LD LINK ARCH
export CMAKE_INSTALL_RPATH='$ORIGIN/../lib'
export CMAKE_BUILD_WITH_INSTALL_RPATH=ON

mkdir -p "$PREFIX/bin"
mkdir -p "$PREFIX/lib"
mkdir -p "$PREFIX/share"
mkdir -p $SRC_DIR/build
cd $SRC_DIR/build || exit 1

cmake -S $SRC_DIR -B $SRC_DIR/build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_MODULE_PATH=$PREFIX/share/cmake \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DCMAKE_INSTALL_RPATH=$CMAKE_INSTALL_RPATH \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=$CMAKE_BUILD_WITH_INSTALL_RPATH

cmake --build . --config Release || exit 1
cmake --install . || exit 1
rm -rf $SRC_DIR/build

# Install MeTA package
cd ${SRC_DIR} || exit 1
${PYTHON} -m pip install . --no-deps -vv || exit 1
9 changes: 9 additions & 0 deletions recipes/meta/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
build_variant:
- "osmesa" # [linux]
- "qt" # [osx]

python:
- 3.8
- 3.9
- 3.10
- 3.11
93 changes: 93 additions & 0 deletions recipes/meta/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{% set name = "meta" %}
{% set version = "1.0.0" %}
{% set sha256 = "a35dd5bc3ccffaaf83aa488233467ae85dc5374aea3068c34a6dc85ea29e27a9" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/bagari/meta/archive/refs/tags/v{{ version }}.tar.gz
sha256: {{ sha256 }}

build:
number: 0
skip: true # [win] # Windows support will be added in next release.

requirements:
build:
- {{ compiler('cxx') }}
- {{ stdlib("c") }}
- cmake
- make # [not win]
- python {{ python }}
- pip
- git
- setuptools
- boost = 1.82
- itk == 5.3.0
- libitk == 5.3.0
- libitk-devel == 5.3.0
- hdf5 >=1.14.2,<1.14.3.0a0
- vtk-base >=9.2.6,<9.3.0 build=*{{ build_variant }}*
- libexpat <2.6
- libexpat >=2.5.0,<3.0a0
- vtk-io-ffmpeg >=9.2.6,<9.3.0 build=*{{ build_variant }}*

host:
- qhull
- boost = 1.82
- itk == 5.3.0
- libitk == 5.3.0
- libitk-devel == 5.3.0
- hdf5 >=1.14.2,<1.14.3.0a0
- vtk-base >=9.2.6,<9.3.0 build=*{{ build_variant }}*
- python {{ python }}
- libexpat <2.6
- libexpat >=2.5.0,<3.0a0
- vtk-io-ffmpeg >=9.2.6,<9.3.0 build=*{{ build_variant }}*

run:
- qhull
- boost = 1.82
- itk == 5.3.0
- libitk == 5.3.0
- libitk-devel == 5.3.0
- hdf5 >=1.14.2,<1.14.3.0a0
- vtk-base >=9.2.6,<9.3.0 build=*{{ build_variant }}*
- python {{ python }}
- numpy
- setuptools
- nibabel
- pandas
- pyvista
- scipy
- tqdm
- tslearn
- dipy
- libexpat <2.6
- libexpat >=2.5.0,<3.0a0
- vtk-io-ffmpeg >=9.2.6,<9.3.0 build=*{{ build_variant }}*
bagari marked this conversation as resolved.
Show resolved Hide resolved

test:
source_files:
- resources/CST_R.nii.gz
commands:
- meta --help
- vtklevelset resources/CST_R.nii.gz CST_R.vtk 0.1
- cmrep_vskel -c 3 -p 1.5 -g CST_R.vtk CST_R_skeleton.vtk

bagari marked this conversation as resolved.
Show resolved Hide resolved

about:
home: https://github.com/bagari/meta
license: BSD-3-Clause
license_file: LICENSE.txt
summary: 'Medial Tractography Analysis (MeTA)'
description: |
MeTA is a workflow implemented to minimize microstructural heterogeneity in diffusion MRI (dMRI) metrics by extracting and parcellating the core volume along the bundle length in the voxel-space directly while effectively preserving bundle shape and efficiently capturing the regional variation within and along white matter (WM) bundles.
dev_url: https://github.com/bagari/meta
doc_url: https://github.com/bagari/meta/wiki

extra:
recipe-maintainers:
- bagari
Loading