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

add r-diffcorr and update blacklist #12883

Merged
merged 1 commit into from
Jan 1, 2019
Merged
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
7 changes: 6 additions & 1 deletion build-fail-blacklist
Original file line number Diff line number Diff line change
Expand Up @@ -934,11 +934,16 @@ recipes/bioconductor-madseq
recipes/bioconductor-doqtl

# Waiting on gcc7 builds of deps
recipes/bioconductor-biocancer
# recipes/bioconductor-biocancer

# Not enough memory on circleci
recipes/bioconductor-conumee
recipes/bioconductor-remp

# JVM errors
recipes/bioconductor-rgmql
recipes/bioconductor-camthc
recipes/bioconductor-onassis
recipes/bioconductor-cbaf
recipes/bioconductor-esatac
recipes/bioconductor-arrayexpresshts
33 changes: 33 additions & 0 deletions recipes/r-diffcorr/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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/DiffCorr
mv * $PREFIX/lib/R/library/DiffCorr
if [[ $target_platform == osx-64 ]]; then
pushd $PREFIX
for libdir in lib/R/lib lib/R/modules lib/R/library lib/R/bin/exec sysroot/usr/lib; do
pushd $libdir || exit 1
for SHARED_LIB in $(find . -type f -iname "*.dylib" -or -iname "*.so" -or -iname "R"); do
echo "fixing SHARED_LIB $SHARED_LIB"
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5.0-MRO/Resources/lib/libR.dylib "$PREFIX"/lib/R/lib/libR.dylib $SHARED_LIB || true
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libR.dylib "$PREFIX"/lib/R/lib/libR.dylib $SHARED_LIB || true
install_name_tool -change /usr/local/clang4/lib/libomp.dylib "$PREFIX"/lib/libomp.dylib $SHARED_LIB || true
install_name_tool -change /usr/local/gfortran/lib/libgfortran.3.dylib "$PREFIX"/lib/libgfortran.3.dylib $SHARED_LIB || true
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libquadmath.0.dylib "$PREFIX"/lib/libquadmath.0.dylib $SHARED_LIB || true
install_name_tool -change /usr/local/gfortran/lib/libquadmath.0.dylib "$PREFIX"/lib/libquadmath.0.dylib $SHARED_LIB || true
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libgfortran.3.dylib "$PREFIX"/lib/libgfortran.3.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libgcc_s.1.dylib "$PREFIX"/lib/libgcc_s.1.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libiconv.2.dylib "$PREFIX"/sysroot/usr/lib/libiconv.2.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libncurses.5.4.dylib "$PREFIX"/sysroot/usr/lib/libncurses.5.4.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libicucore.A.dylib "$PREFIX"/sysroot/usr/lib/libicucore.A.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libexpat.1.dylib "$PREFIX"/lib/libexpat.1.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libcurl.4.dylib "$PREFIX"/lib/libcurl.4.dylib $SHARED_LIB || true
install_name_tool -change /usr/lib/libc++.1.dylib "$PREFIX"/lib/libc++.1.dylib $SHARED_LIB || true
install_name_tool -change /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libc++.1.dylib "$PREFIX"/lib/libc++.1.dylib $SHARED_LIB || true
done
popd
done
popd
fi
fi
55 changes: 55 additions & 0 deletions recipes/r-diffcorr/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{% set version = '0.4.1' %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
name: r-diffcorr
version: {{ version|replace("-", "_") }}

source:
url:
- {{ cran_mirror }}/src/contrib/DiffCorr_{{ version }}.tar.gz
- {{ cran_mirror }}/src/contrib/Archive/DiffCorr/DiffCorr_{{ version }}.tar.gz
sha256: 15125ae871949ef2be89916384e46c665079e6826ecbba6b3608701e574bb7cf

build:
merge_build_host: True # [win]
number: 0
noarch: generic
rpaths:
- lib/R/lib/
- lib/

requirements:
build:

host:
- r-base
- r-fdrtool
- r-igraph
- r-multtest
- r-pcamethods
run:
- r-base
- r-fdrtool
- r-igraph
- r-multtest
- r-pcamethods

test:
commands:
- $R -e "library('DiffCorr')" # [not win]
- "\"%R%\" -e \"library('DiffCorr')\"" # [win]

about:
home: https://CRAN.R-project.org/package=DiffCorr
license: GPL (> 3)
summary: 'A method for identifying pattern changes between 2 experimental conditions in correlation
networks (e.g., gene co-expression networks), which builds on a commonly used association
measure, such as Pearson''s correlation coefficient. This package includes functions
to calculate correlation matrices for high-dimensional dataset and to test differential
correlation, which means the changes in the correlation relationship among variables
(e.g., genes and metabolites) between 2 experimental conditions. '
license_family: GPL3
license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3' # [unix]
license_file: '{{ environ["PREFIX"] }}\R\share\licenses\GPL-3' # [win]