From bdf97847ecb2d9266df7d1a7c08bc850aa4a853d Mon Sep 17 00:00:00 2001 From: Mervin M Fansler Date: Sat, 24 Aug 2024 10:20:06 +0200 Subject: [PATCH 1/2] adds r-microbiomestat --- recipes/r-microbiomestat/bld.bat | 2 + recipes/r-microbiomestat/build.sh | 3 + recipes/r-microbiomestat/meta.yaml | 89 ++++++++++++++++++++++++++++++ 3 files changed, 94 insertions(+) create mode 100644 recipes/r-microbiomestat/bld.bat create mode 100644 recipes/r-microbiomestat/build.sh create mode 100644 recipes/r-microbiomestat/meta.yaml diff --git a/recipes/r-microbiomestat/bld.bat b/recipes/r-microbiomestat/bld.bat new file mode 100644 index 0000000000000..01bc5eadf1152 --- /dev/null +++ b/recipes/r-microbiomestat/bld.bat @@ -0,0 +1,2 @@ +"%R%" CMD INSTALL --build . %R_ARGS% +IF %ERRORLEVEL% NEQ 0 exit /B 1 diff --git a/recipes/r-microbiomestat/build.sh b/recipes/r-microbiomestat/build.sh new file mode 100644 index 0000000000000..b8d2635525637 --- /dev/null +++ b/recipes/r-microbiomestat/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash +export DISABLE_AUTOBREW=1 +${R} CMD INSTALL --build . ${R_ARGS} diff --git a/recipes/r-microbiomestat/meta.yaml b/recipes/r-microbiomestat/meta.yaml new file mode 100644 index 0000000000000..875e2db41fe04 --- /dev/null +++ b/recipes/r-microbiomestat/meta.yaml @@ -0,0 +1,89 @@ +{% set version = '1.2' %} +{% set posix = 'm2-' if win else '' %} +{% set native = 'm2w64-' if win else '' %} + +package: + name: r-microbiomestat + version: {{ version|replace("-", "_") }} + +source: + url: + - {{ cran_mirror }}/src/contrib/MicrobiomeStat_{{ version }}.tar.gz + - {{ cran_mirror }}/src/contrib/Archive/MicrobiomeStat/MicrobiomeStat_{{ version }}.tar.gz + sha256: f851d71a008a768457a3c8ea797406dd03abfa1bcee4e33b01610e433532ecce + +build: + merge_build_host: True # [win] + number: 0 + rpaths: + - lib/R/lib/ + - lib/ + missing_dso_whitelist: + - '*/R.dll' # [win] + - '*/Rblas.dll' # [win] + - '*/Rlapack.dll' # [win] + +requirements: + build: + - {{ posix }}zip # [win] + - cross-r-base {{ r_base }} # [build_platform != target_platform] + host: + - r-base + - r-mass + - r-matrix + - r-foreach + - r-ggplot2 + - r-ggrepel + - r-lmertest + - r-matrixstats + - r-modeest + - r-statmod + run: + - r-base + - r-mass + - r-matrix + - r-foreach + - r-ggplot2 + - r-ggrepel + - r-lmertest + - r-matrixstats + - r-modeest + - r-statmod + +test: + commands: + - $R -e "library('MicrobiomeStat')" # [not win] + - "\"%R%\" -e \"library('MicrobiomeStat')\"" # [win] + +about: + home: https://CRAN.R-project.org/package=MicrobiomeStat + license: GPL-3 + summary: A suite of methods for powerful and robust microbiome data analysis addressing zero-inflation, + phylogenetic structure and compositional effects (Zhou et al. (2022)). The + methods can be applied to the analysis of other (high-dimensional) compositional + data arising from sequencing experiments. + license_family: GPL3 + license_file: + - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3' + +extra: + recipe-maintainers: + - conda-forge/r + +# Package: MicrobiomeStat +# Type: Package +# Title: Statistical Methods for Microbiome Compositional Data +# Version: 1.2 +# Date: 2024-03-13 +# Authors@R: c( person("Xianyang", "Zhang", role = "aut", email = "zhangxiany@stat.tamu.edu"), person("Jun", "Chen", role = c("aut", "cre"), email = "chen.jun2@mayo.edu"), person("Huijuan", "Zhou", role = "ctb")) +# Author: Xianyang Zhang [aut], Jun Chen [aut, cre], Huijuan Zhou [ctb] +# Maintainer: Jun Chen +# Description: A suite of methods for powerful and robust microbiome data analysis addressing zero-inflation, phylogenetic structure and compositional effects (Zhou et al. (2022)). The methods can be applied to the analysis of other (high-dimensional) compositional data arising from sequencing experiments. +# Depends: R (>= 3.5.0) +# Imports: ggplot2, matrixStats, parallel, stats, utils, Matrix, statmod, MASS, ggrepel, lmerTest, foreach, modeest +# NeedsCompilation: yes +# License: GPL-3 +# Encoding: UTF-8 +# Packaged: 2024-04-01 22:00:40 UTC; m123485 +# Repository: CRAN +# Date/Publication: 2024-04-01 22:30:02 UTC From 08d22fc7012374cd0cc6e5f635b29e11e075a878 Mon Sep 17 00:00:00 2001 From: Mervin Fansler Date: Sat, 24 Aug 2024 10:25:20 +0200 Subject: [PATCH 2/2] noarch; spdx --- recipes/r-microbiomestat/meta.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/recipes/r-microbiomestat/meta.yaml b/recipes/r-microbiomestat/meta.yaml index 875e2db41fe04..02a834ac5cc67 100644 --- a/recipes/r-microbiomestat/meta.yaml +++ b/recipes/r-microbiomestat/meta.yaml @@ -14,6 +14,7 @@ source: build: merge_build_host: True # [win] + noarch: generic number: 0 rpaths: - lib/R/lib/ @@ -29,23 +30,23 @@ requirements: - cross-r-base {{ r_base }} # [build_platform != target_platform] host: - r-base - - r-mass - - r-matrix - r-foreach - r-ggplot2 - r-ggrepel - r-lmertest + - r-mass + - r-matrix - r-matrixstats - r-modeest - r-statmod run: - r-base - - r-mass - - r-matrix - r-foreach - r-ggplot2 - r-ggrepel - r-lmertest + - r-mass + - r-matrix - r-matrixstats - r-modeest - r-statmod @@ -57,14 +58,14 @@ test: about: home: https://CRAN.R-project.org/package=MicrobiomeStat - license: GPL-3 + license: GPL-3.0-only summary: A suite of methods for powerful and robust microbiome data analysis addressing zero-inflation, phylogenetic structure and compositional effects (Zhou et al. (2022)). The methods can be applied to the analysis of other (high-dimensional) compositional data arising from sequencing experiments. license_family: GPL3 license_file: - - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3' + - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3 extra: recipe-maintainers: