{% set version = '0.1.4' %}

{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/FateID_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/FateID/FateID_{{ version }}.tar.gz
  sha256: 1e168ccdef75b6a4229976740e60704d75e2f1d5c3f6757f9fb7798c727f7fec

build:
  # If this is a new build for the same version, increment the build number.
  number: 0
  # rgl issues on OSX
  skip: True  # [osx]

  # This is required to make R link correctly on Linux.
  rpaths:
    - lib/R/lib/
    - lib/

# Suggests: DESeq2, destiny, knitr, rmarkdown
requirements:
  build:
  host:
    - r-base
    - r-rcolorbrewer
    - r-rtsne
    - r-lle
    - r-locfit
    - r-pheatmap
    - r-princurve
    - r-randomforest
    - r-rgl
    - r-som

  run:
    - r-base
    - r-rcolorbrewer
    - r-rtsne
    - r-lle
    - r-locfit
    - r-pheatmap
    - r-princurve
    - r-randomforest
    - r-rgl
    - r-som

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

about:
  home: https://CRAN.R-project.org/package=FateID
  license: GPL-3
  summary: "Application of 'FateID' allows computation and visualization of cell fate bias for
    multi-lineage single cell transcriptome data."

  license_family: GPL3

extra:
  identifiers:
    - doi:10.1038/nmeth.4662
  container:
    # needed for libGL.so.1
    extended-base: true
