{% set version = '1.0.5' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/QuantNorm_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/QuantNorm/QuantNorm_{{ version }}.tar.gz
  sha256: c6f1479ac4b14482a3c4e11f6518b0904601707b956e21d465d53ecd974fbac1

build:
  merge_build_host: True  # [win]
  # If this is a new build for the same version, increment the build number.
  number: 0
  # no skip
  noarch: generic

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

# Suggests: GGally, ggplot2, network, pheatmap, rgl, sna
requirements:
  build:
    - {{ posix }}zip               # [win]

  host:
    - r-base

  run:
    - r-base

test:
  commands:
    # You can put additional test commands to be run here.
    - $R -e "library('QuantNorm')"           # [not win]
    - "\"%R%\" -e \"library('QuantNorm')\""  # [win]

  # You can also put a file called run_test.py, run_test.sh, or run_test.bat
  # in the recipe that will be run at test time.

  # requires:
    # Put any additional test requirements here.

about:
  home: https://CRAN.R-project.org/package=QuantNorm
  license: GPL-2
  summary: Modifies the distance matrix obtained from data with batch effects, so as to improve
    the performance of sample pattern detection, such as clustering, dimension reduction,
    and construction of networks between subjects. The method has been published in
    Bioinformatics (Fei et al, 2018, <doi:10.1093/bioinformatics/bty117>). Also available
    on 'GitHub' <https://github.com/tengfei-emory/QuantNorm>.
  license_family: GPL2
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2'

extra:
  recipe-maintainers:
    - katietz

# The original CRAN metadata for this package was:

# Package: QuantNorm
# Title: Mitigating the Adverse Impact of Batch Effects in Sample Pattern Detection
# Description: Modifies the distance matrix obtained from data with batch effects, so as to improve the performance of sample pattern detection, such as clustering, dimension reduction, and construction of networks between subjects. The method has been published in Bioinformatics (Fei et al, 2018, <doi:10.1093/bioinformatics/bty117>). Also available on 'GitHub' <https://github.com/tengfei-emory/QuantNorm>.
# Version: 1.0.5
# Depends: R (>= 3.3.0)
# Imports: stats, utils
# Suggests: GGally, ggplot2, network, pheatmap, rgl, sna
# Date: 2019-02-01
# Author: Teng Fei, Tianwei Yu
# Maintainer: Teng Fei <tfei@emory.edu>
# BugReports: https://github.com/tengfei-emory/QuantNorm/issues
# License: GPL (>= 2)
# RoxygenNote: 6.0.1
# NeedsCompilation: no
# Packaged: 2019-02-01 20:07:57 UTC; TFEI
# Repository: CRAN
# Date/Publication: 2019-02-01 20:23:25 UTC

# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml
