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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/WebGestaltR_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/WebGestaltR/WebGestaltR_{{ version }}.tar.gz
  sha256: 20eb41e6fa33a25369b0009d393e9c405a2cfcaf7f0e62043fdaa33663450650

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-apcluster
    - r-doparallel >=1.0.10
    - r-dorng
    - r-dplyr
    - r-foreach >=1.4.0
    - r-httr
    - r-igraph
    - r-jsonlite
    - r-readr
    - r-rlang
    - r-svglite
    - r-whisker
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp
    - r-apcluster
    - r-doparallel >=1.0.10
    - r-dorng
    - r-dplyr
    - r-foreach >=1.4.0
    - r-httr
    - r-igraph
    - r-jsonlite
    - r-readr
    - r-rlang
    - r-svglite
    - r-whisker

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

about:
  home: https://github.com/bzhanglab/WebGestaltR
  license: LGPL-3.0-only
  summary: The web version WebGestalt <http://www.webgestalt.org> supports 12 organisms, 354
    gene identifiers and 321,251 function categories. Users can upload the data and
    functional categories with their own gene identifiers. In addition to the Over-Representation
    Analysis, WebGestalt also supports Gene Set Enrichment Analysis and Network Topology
    Analysis. The user-friendly output report allows interactive and efficient exploration
    of enrichment results. The WebGestaltR package not only supports all above functions
    but also can be integrated into other pipeline or simultaneously analyze multiple
    gene lists.
  license_family: LGPL
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/LGPL-3'

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

# Package: WebGestaltR
# Type: Package
# Title: Gene Set Analysis Toolkit WebGestaltR
# Version: 0.4.3
# Date: 2020-01-16
# Authors@R: c( person("Jing", "Wang", email = "jingwang.uestc@gmail.com", role = "aut"), person("Yuxing", "Liao", email = "yuxingliao@gmail.com", role = c("aut", "cre")), person("Eric", "Jaehnig", email = "Eric.Jaehnig@bcm.edu", role = c("ctb")), person("Zhiao", "Shi", email = "Zhiao.Shi@bcm.edu", role = c("ctb")), person("Quanhu", "Sheng", email = "shengqh@gmail.com", role = c("ctb")) )
# Description: The web version WebGestalt <http://www.webgestalt.org> supports 12 organisms, 354 gene identifiers and 321,251 function categories. Users can upload the data and functional categories with their own gene identifiers. In addition to the Over-Representation Analysis, WebGestalt also supports Gene Set Enrichment Analysis and Network Topology Analysis. The user-friendly output report allows interactive and efficient exploration of enrichment results. The WebGestaltR package not only supports all above functions but also can be integrated into other pipeline or simultaneously analyze multiple gene lists.
# License: LGPL
# URL: https://github.com/bzhanglab/WebGestaltR
# LazyLoad: yes
# Depends: R (>= 3.3)
# Imports: methods, dplyr, doRNG, readr, parallel (>= 3.3.2), doParallel (>= 1.0.10), foreach (>= 1.4.0), jsonlite, httr, rlang, svglite, igraph, whisker, apcluster, Rcpp
# NeedsCompilation: yes
# LinkingTo: Rcpp
# SystemRequirements: C++11
# RoxygenNote: 7.0.2
# Packaged: 2020-01-16 20:26:41 UTC; yuxingl
# Author: Jing Wang [aut], Yuxing Liao [aut, cre], Eric Jaehnig [ctb], Zhiao Shi [ctb], Quanhu Sheng [ctb]
# Maintainer: Yuxing Liao <yuxingliao@gmail.com>
# Repository: CRAN
# Date/Publication: 2020-01-16 21:00:03 UTC
