Skip to content

Commit

Permalink
add meta (bioconda#51349)
Browse files Browse the repository at this point in the history
* add build.sh,  meta.yaml and conda_build_config.yaml

* Update build.sh

* Update conda_build_config.yaml

* Update meta.yaml

* Update meta.yaml

Updated test section with real test example.

* Update meta.yaml

* Update meta.yaml

* Update meta.yaml

* Update meta.yaml

* update meta.yaml and conda_build_config.yaml

* Update meta.yaml

* Update meta.yaml

* update meta.yaml and tested locally passed lint

* Update meta.yaml and fix minor error

* Update meta.yaml

* Update build.sh

* Update meta.yaml

* Update meta.yaml

* update meta.yaml and build.sh

* Update meta.yaml

* Update meta.yaml

* Update meta.yaml

* Update meta.yaml

* Optimize meta.yaml

* Update meta.yaml

* Update meta.yaml

* Update meta.yaml
  • Loading branch information
bagari authored Oct 28, 2024
1 parent 86330ae commit 9606978
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 0 deletions.
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 --parallel ${CPU_COUNT} --verbose || 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
80 changes: 80 additions & 0 deletions recipes/meta/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{% set name = "meta" %}
{% set version = "1.0.0" %}
{% set sha256 = "a35dd5bc3ccffaaf83aa488233467ae85dc5374aea3068c34a6dc85ea29e27a9" %}
{% set build_variant = "osmesa" if linux else "qt" %}

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 # [not py39]
run_exports:
- {{ pin_subpackage('meta', max_pin="x") }}

requirements:
build:
- {{ compiler('cxx') }}
- cmake
- make # [not win]

host:
- python >=3.9,<3.10
- pip
- 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.5.0,<2.6.0
- 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 }}*
- numpy >=1.21
- nibabel
- pandas
- pyvista
- scipy
- tqdm
- tslearn
- dipy
- libexpat >=2.5.0,<2.6.0
- vtk-io-ffmpeg >=9.2.6,<9.3.0 build=*{{ build_variant }}*

test:
source_files:
- resources/CST_R.nii.gz
imports:
- meta
commands:
- meta --help 2>&1 || exit 1
- vtklevelset resources/CST_R.nii.gz CST_R.vtk 0.1 && test -f CST_R.vtk
- cmrep_vskel -c 3 -p 1.5 -g CST_R.vtk CST_R_skeleton.vtk && test -f CST_R_skeleton.vtk

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:
bulk: true
recipe-maintainers:
- bagari

0 comments on commit 9606978

Please sign in to comment.