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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/RaceID_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/RaceID/RaceID_{{ version }}.tar.gz
  sha256: bc519f69dc6c401db830bfca2dcc083a7126b10baeccdf11cdf103644d89aba6

build:
  merge_build_host: true  # [win]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-fnn
    - r-fateid
    - r-mass
    - r-matrix
    - r-nlcoptim
    - r-rcolorbrewer
    - r-rcpp
    - r-rtsne
    - r-cluster
    - r-coop
    - r-fpc
    - r-ggplot2
    - r-ica
    - r-igraph
    - r-irlba
    - r-locfit
    - r-pheatmap
    - r-propr
    - r-quadprog
    - r-randomforest
    - r-umap
    - r-vegan
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-fnn
    - r-fateid
    - r-mass
    - r-matrix
    - r-nlcoptim
    - r-rcolorbrewer
    - r-rcpp
    - r-rtsne
    - r-cluster
    - r-coop
    - r-fpc
    - r-ggplot2
    - r-ica
    - r-igraph
    - r-irlba
    - r-locfit
    - r-pheatmap
    - r-propr
    - r-quadprog
    - r-randomforest
    - r-umap
    - r-vegan

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

about:
  home: https://CRAN.R-project.org/package=RaceID
  license: GPL-3.0-only
  summary: Application of 'RaceID' allows inference of cell types and prediction of lineage trees by he StemID2 algorithm. Herman, J.S., Sagar, Grün D. (2018) <DOI:10.1038/nmeth.4662>.
  license_family: GPL3
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3

extra:
  recipe-maintainers:
    - conda-forge/r

# Package: RaceID
# Title: Identification of Cell Types and Inference of Lineage Trees from Single-Cell RNA-Seq Data
# Version: 0.1.7
# Date: 2020-01-12
# Author: Dominic Grun <dominic.gruen@gmail.com>
# Maintainer: Dominic Grun <dominic.gruen@gmail.com>
# Description: Application of 'RaceID' allows inference of cell types and prediction of lineage trees by he StemID2 algorithm. Herman, J.S., Sagar, Grun D. (2018) <DOI:10.1038/nmeth.4662>.
# Depends: R (>= 3.3)
# Imports: coop, compiler, cluster, FateID, FNN, fpc, ggplot2, grDevices, ica, igraph, irlba, locfit, methods, MASS, Matrix, parallel, pheatmap, propr, quadprog, randomForest, Rcpp, RColorBrewer, Rtsne, umap, vegan
# LinkingTo: Rcpp (>= 0.11.0)
# Suggests: DESeq2, destiny, knitr, rmarkdown, scran
# VignetteBuilder: knitr
# License: GPL-3
# Encoding: UTF-8
# LazyData: true
# RoxygenNote: 6.0.1
# NeedsCompilation: yes
# Packaged: 2020-01-12 19:17:54 UTC; d.grun
# Repository: CRAN
# Date/Publication: 2020-01-13 19:40:05 UTC
