diff --git a/recipes/r-ggrasp/build.sh b/recipes/r-ggrasp/build.sh new file mode 100644 index 0000000000000..50bee029a649a --- /dev/null +++ b/recipes/r-ggrasp/build.sh @@ -0,0 +1,8 @@ +#!/bin/bash +if [[ $target_platform =~ linux.* ]] || [[ $target_platform == win-32 ]] || [[ $target_platform == win-64 ]] || [[ $target_platform == osx-64 ]]; then + export DISABLE_AUTOBREW=1 + $R CMD INSTALL --build . +else + mkdir -p $PREFIX/lib/R/library/ggrasp + mv * $PREFIX/lib/R/library/ggrasp +fi diff --git a/recipes/r-ggrasp/meta.yaml b/recipes/r-ggrasp/meta.yaml new file mode 100644 index 0000000000000..320ba7929db6a --- /dev/null +++ b/recipes/r-ggrasp/meta.yaml @@ -0,0 +1,56 @@ +{% set version = '1.0' %} +{% set posix = '' %} +{% set native = '' %} + +package: + name: r-ggrasp + version: {{ version|replace("-", "_") }} + +source: + url: {{ cran_mirror }}/src/contrib/ggrasp_{{ version }}.tar.gz + sha256: 0133019df762cd19d7daf1b5f2b353c43568124ade6e34fa04837656138a3652 + +build: + number: 0 + rpaths: + - lib/R/lib/ + - lib/ + +requirements: + build: + host: + - r-base + - r-ape + - r-bgmm + - r-colorspace + - r-ggplot2 + - r-mixtools + run: + - r-base + - r-ape + - r-bgmm + - r-colorspace + - r-ggplot2 + - r-mixtools + +test: + commands: + - $R -e "library('ggrasp')" + +about: + home: https://CRAN.R-project.org/package=ggrasp + license: GPL-2 + summary: 'Given a group of genomes and their relationship with each other, the package clusters + the genomes and selects the most representative members of each cluster. Additional + data can be provided to the prioritize certain genomes. The results can be printed + out as a list or a new phylogeny with graphs of the trees and distance distributions + also available. For detailed introduction see: Thomas H Clarke, Lauren M Brinkac, + Granger Sutton, and Derrick E Fouts (2018), GGRaSP: a R-package for selecting representative + genomes using Gaussian mixture models, Bioinformatics, bty300, + .' + license_family: GPL2 + license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2' + +extra: + recipe-maintainers: + - nick-youngblut