Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r-gpca #11428

Merged
merged 4 commits into from
Oct 20, 2018
Merged

r-gpca #11428

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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