{% set version = "1.4.0" %}
{% set name = "enrichViewNet" %}
{% set bioc = "3.20" %}

about:
  description: This package enables the visualization of functional enrichment results as network graphs. First the package enables the visualization of enrichment results, in a format corresponding to the one generated by gprofiler2, as a customizable Cytoscape network. In those networks, both gene datasets (GO terms/pathways/protein complexes) and genes associated to the datasets are represented as nodes. While the edges connect each gene to its dataset(s). The package also provides the option to create enrichment maps from functional enrichment results. Enrichment maps enable the visualization of enriched terms into a network with edges connecting overlapping genes.
  home: https://bioconductor.org/packages/{{ bioc }}/bioc/html/{{ name }}.html
  license: Artistic-2.0
  summary: From functional enrichment results to biological networks

build:
  noarch: generic
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/
  run_exports: '{{ pin_subpackage("bioconductor-enrichviewnet", max_pin="x.x") }}'

package:
  name: bioconductor-{{ name|lower }}
  version: '{{ version }}'

# Suggests: BiocStyle, knitr, rmarkdown, ggplot2, testthat, magick
requirements:
  host:
    - bioconductor-dose >=4.0.0,<4.1.0
    - bioconductor-enrichplot >=1.26.0,<1.27.0
    - bioconductor-rcy3 >=2.26.0,<2.27.0
    - r-base
    - r-gprofiler2
    - r-jsonlite
    - r-strex
    - r-stringr
  run:
    - bioconductor-dose >=4.0.0,<4.1.0
    - bioconductor-enrichplot >=1.26.0,<1.27.0
    - bioconductor-rcy3 >=2.26.0,<2.27.0
    - r-base
    - r-gprofiler2
    - r-jsonlite
    - r-strex
    - r-stringr

source:
  md5: 24bfac4e66bb94854260dd6a535e7c6e
  url:
    - https://bioconductor.org/packages/{{ bioc }}/bioc/src/contrib/{{ name }}_{{ version }}.tar.gz
    - https://bioconductor.org/packages/{{ bioc }}/bioc/src/contrib/Archive/{{ name }}/{{ name }}_{{ version }}.tar.gz
    - https://bioarchive.galaxyproject.org/{{ name }}_{{ version }}.tar.gz
    - https://depot.galaxyproject.org/software/bioconductor-{{ name|lower }}/bioconductor-{{ name|lower }}_{{ version }}_src_all.tar.gz

test:
  commands:
    - $R -e "library('{{ name }}')"

