{% set version = "1.16.0" %}
{% set name = "MoonlightR" %}
{% set bioc = "3.12" %}

package:
  name: 'bioconductor-{{ name|lower }}'
  version: '{{ version }}'
source:
  url:
    - 'https://bioconductor.org/packages/{{ bioc }}/bioc/src/contrib/{{ 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'
  md5: 62c9d17b32e9e73fe288650323b51a41
build:
  number: 1
  rpaths:
    - lib/R/lib/
    - lib/
  noarch: generic
# Suggests: BiocStyle, knitr, rmarkdown, testthat, devtools, roxygen2, png
requirements:
  host:
    - 'bioconductor-biobase >=2.50.0,<2.51.0'
    - 'bioconductor-clusterprofiler >=3.18.0,<3.19.0'
    - 'bioconductor-dose >=3.16.0,<3.17.0'
    - 'bioconductor-geoquery >=2.58.0,<2.59.0'
    - 'bioconductor-limma >=3.46.0,<3.47.0'
    - 'bioconductor-summarizedexperiment >=1.20.0,<1.21.0'
    - 'bioconductor-tcgabiolinks >=2.18.0,<2.19.0'
    - r-base
    - r-circlize
    - r-doparallel
    - r-foreach
    - r-gplots
    - r-hiver
    - r-parmigene
    - r-randomforest
    - r-rcolorbrewer
    - r-rismed
  run:
    - 'bioconductor-biobase >=2.50.0,<2.51.0'
    - 'bioconductor-clusterprofiler >=3.18.0,<3.19.0'
    - 'bioconductor-dose >=3.16.0,<3.17.0'
    - 'bioconductor-geoquery >=2.58.0,<2.59.0'
    - 'bioconductor-limma >=3.46.0,<3.47.0'
    - 'bioconductor-summarizedexperiment >=1.20.0,<1.21.0'
    - 'bioconductor-tcgabiolinks >=2.18.0,<2.19.0'
    - r-base
    - r-circlize
    - r-doparallel
    - r-foreach
    - r-gplots
    - r-hiver
    - r-parmigene
    - r-randomforest
    - r-rcolorbrewer
    - r-rismed
  build:
    - {{ cdt('mesa-libgl-devel') }}  # [linux]
    - {{ cdt('mesa-dri-drivers') }}  # [linux]
    - {{ cdt('libselinux') }}  # [linux]
    - {{ cdt('libxdamage') }}  # [linux]
    - {{ cdt('libxxf86vm') }}  # [linux]
    - xorg-libxfixes  # [linux]
test:
  commands:
    - 'LD_LIBRARY_PATH="${BUILD_PREFIX}/x86_64-conda-linux-gnu/sysroot/usr/lib64:${BUILD_PREFIX}/lib" $R -e "library(''{{ name }}'')"'
about:
  home: 'https://bioconductor.org/packages/{{ bioc }}/bioc/html/{{ name }}.html'
  license: 'GPL (>= 3)'
  summary: 'Identify oncogenes and tumor suppressor genes from omics data'
  description: 'Motivation: The understanding of cancer mechanism requires the identification of genes playing a role in the development of the pathology and the characterization of their role (notably oncogenes and tumor suppressors). Results: We present an R/bioconductor package called MoonlightR which returns a list of candidate driver genes for specific cancer types on the basis of TCGA expression data. The method first infers gene regulatory networks and then carries out a functional enrichment analysis (FEA) (implementing an upstream regulator analysis, URA) to score the importance of well-known biological processes with respect to the studied cancer type. Eventually, by means of random forests, MoonlightR predicts two specific roles for the candidate driver genes: i) tumor suppressor genes (TSGs) and ii) oncogenes (OCGs). As a consequence, this methodology does not only identify genes playing a dual role (e.g. TSG in one cancer type and OCG in another) but also helps in elucidating the biological processes underlying their specific roles. In particular, MoonlightR can be used to discover OCGs and TSGs in the same cancer type. This may help in answering the question whether some genes change role between early stages (I, II) and late stages (III, IV) in breast cancer. In the future, this analysis could be useful to determine the causes of different resistances to chemotherapeutic treatments.'
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'
extra:
  container:
    extended-base: true

