forked from bioconda/bioconda-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
2 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |