From 294aa2f7c66cd3d9a61ef47999de66199db176b3 Mon Sep 17 00:00:00 2001 From: Chris-Lowe-Integrity <43525473+Chris-Lowe-Integrity@users.noreply.github.com> Date: Sat, 20 Oct 2018 04:05:48 -0400 Subject: [PATCH] r-gpca (#11428) * r-gpca * r-gpca recipe * Update meta.yaml * Removed All Comments --- recipes/r-gpca/build.sh | 11 +++++++++ recipes/r-gpca/meta.yaml | 48 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 recipes/r-gpca/build.sh create mode 100644 recipes/r-gpca/meta.yaml diff --git a/recipes/r-gpca/build.sh b/recipes/r-gpca/build.sh new file mode 100644 index 0000000000000..aeaad348da1d2 --- /dev/null +++ b/recipes/r-gpca/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [[ $target_platform =~ linux.* ]] || [[ $target_platform == win-32 ]] || [[ $target_platform == win-64 ]] || [[ $target_platform == osx-64 ]]; then + export DISABLE_AUTOBREW=1 + mv DESCRIPTION DESCRIPTION.old + grep -v '^Priority: ' DESCRIPTION.old > DESCRIPTION + $R CMD INSTALL --build . +else + mkdir -p $PREFIX/lib/R/library/gPCA + mv * $PREFIX/lib/R/library/gPCA +fi diff --git a/recipes/r-gpca/meta.yaml b/recipes/r-gpca/meta.yaml new file mode 100644 index 0000000000000..4f1052c026a31 --- /dev/null +++ b/recipes/r-gpca/meta.yaml @@ -0,0 +1,48 @@ +{% set version = '1.0' %} + +{% set posix = 'm2-' if win else '' %} +{% set native = 'm2w64-' if win else '' %} + +package: + name: r-gpca + version: {{ version|replace("-", "_") }} + +source: + url: + - {{ cran_mirror }}/src/contrib/gPCA_{{ version }}.tar.gz + - {{ cran_mirror }}/src/contrib/Archive/gPCA/gPCA_{{ version }}.tar.gz + sha256: 7ce6c5f90758f9c208bc192ee1a7a423cb1f3de456ad9534bfdff646440b8bfa + +build: + merge_build_host: True # [win] + + number: 0 + + rpaths: + - lib/R/lib/ + - lib/ + +requirements: + build: + - {{posix}}zip # [win] + + host: + - r-base + + run: + - r-base + +test: + commands: + + - $R -e "library('gPCA')" # [not win] + - "\"%R%\" -e \"library('gPCA')\"" # [win] + +about: + home: https://CRAN.R-project.org/package=gPCA + license: GPL (>= 2) + summary: This package implements guided principal components analysis for the detection of + batch effects in high-throughput data. + license_family: GPL3 + +