{% set version = "1.20.0" %}
{% set name = "apeglm" %}
{% set bioc = "3.16" %}

package:
  name: 'bioconductor-{{ name|lower }}'
  version: '{{ version }}'
source:
  url:
    - 'https://bioconductor.org/packages/{{ bioc }}/bioc/src/contrib/{{ name }}_{{ version }}.tar.gz'
    - 'https://bioconductor.org/packages/{{ bioc }}/bioc/src/contrib/Archive/{{ name }}/{{ name }}_{{ version }}.tar.gz'
    - 'https://bioarchive.galaxyproject.org/{{ name }}_{{ version }}.tar.gz'
    - 'https://depot.galaxyproject.org/software/bioconductor-{{ name }}/bioconductor-{{ name }}_{{ version }}_src_all.tar.gz'
  md5: ff2b45cd3e43bfe8f6a4184a1d5ba349
build:
  number: 1
  rpaths:
    - lib/R/lib/
    - lib/
# Suggests: DESeq2, airway, knitr, rmarkdown, testthat
requirements:
  host:
    - 'bioconductor-genomicranges >=1.50.0,<1.51.0'
    - 'bioconductor-summarizedexperiment >=1.28.0,<1.29.0'
    - r-base
    - r-emdbook
    - r-rcpp
    - r-rcppeigen
    - r-rcppnumerical
    - libblas
    - liblapack
  run:
    - 'bioconductor-genomicranges >=1.50.0,<1.51.0'
    - 'bioconductor-summarizedexperiment >=1.28.0,<1.29.0'
    - r-base
    - r-emdbook
    - r-rcpp
    - r-rcppeigen
    - r-rcppnumerical
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - make
test:
  commands:
    - '$R -e "library(''{{ name }}'')"'
about:
  home: 'https://bioconductor.org/packages/{{ bioc }}/bioc/html/{{ name }}.html'
  license: GPL-2
  summary: 'Approximate posterior estimation for GLM coefficients'
  description: 'apeglm provides Bayesian shrinkage estimators for effect sizes for a variety of GLM models, using approximation of the posterior for individual coefficients.'
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'
extra:
  parent_recipe:
    name: bioconductor-apeglm
    path: recipes/bioconductor-apeglm
    version: 1.2.1

