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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/DrImpute_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/DrImpute/DrImpute_{{ version }}.tar.gz
  sha256: 6b88b44cf3d8e4d626295955dd950d8ddf9c2ed7d88bfef015482ccc7356bfa9

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-rcpp
    - r-rcpparmadillo
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp
    - r-rcpparmadillo

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

about:
  home: https://github.com/ikwak2/DrImpute
  license: GPL-3.0-only
  summary: R codes for imputing dropout events. Many statistical methods in cell type identification,
    visualization and lineage reconstruction do not account for dropout events ('PCAreduce',
    'SC3', 'PCA', 't-SNE', 'Monocle', 'TSCAN', etc). 'DrImpute' can improve the performance
    of such software by imputing dropout events.
  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

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

# Package: DrImpute
# Version: 1.0
# Date: 2017-7-15
# Title: Imputing Dropout Events in Single-Cell RNA-Sequencing Data
# Description: R codes for imputing dropout events. Many statistical methods in cell type identification, visualization and lineage reconstruction do not account for dropout events ('PCAreduce', 'SC3', 'PCA', 't-SNE', 'Monocle', 'TSCAN', etc). 'DrImpute' can improve the performance of such software by imputing dropout events.
# Author: Il-Youp Kwak with contributions from Wuming Gong
# Maintainer: Il-Youp Kwak <ilyoup.kwak@gmail.com>
# Depends: R (>= 3.1.0)
# Imports: Rcpp
# Suggests: knitr, rmarkdown, devtools, roxygen2, irlba
# License: GPL-3
# VignetteBuilder: knitr
# URL: https://github.com/ikwak2/DrImpute
# LinkingTo: Rcpp, RcppArmadillo
# RoxygenNote: 6.0.1
# NeedsCompilation: yes
# Packaged: 2017-07-15 12:47:22 UTC; ikwak
# Repository: CRAN
# Date/Publication: 2017-07-15 21:00:01 UTC
