Skip to content

Commit

Permalink
r-gpca (#11428)
Browse files Browse the repository at this point in the history
* r-gpca

* r-gpca recipe

* Update meta.yaml

* Removed All Comments
  • Loading branch information
Chris-Lowe-Integrity authored and bgruening committed Oct 20, 2018
1 parent cd6b4d7 commit 294aa2f
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
11 changes: 11 additions & 0 deletions recipes/r-gpca/build.sh
Original file line number Diff line number Diff line change
@@ -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
48 changes: 48 additions & 0 deletions recipes/r-gpca/meta.yaml
Original file line number Diff line number Diff line change
@@ -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


0 comments on commit 294aa2f

Please sign in to comment.