{% set version = "1.42.0" %}
{% set name = "massiR" %}
{% set bioc = "3.20" %}

about:
  description: Predicts the sex of samples in gene expression microarray datasets
  home: https://bioconductor.org/packages/{{ bioc }}/bioc/html/{{ name }}.html
  license: GPL-3
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'
  summary: 'massiR: MicroArray Sample Sex Identifier'

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

extra:
  identifiers:
    - biotools:massir
  parent_recipe:
    name: bioconductor-massir
    path: recipes/bioconductor-massir
    version: 1.16.0

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

# Suggests: biomaRt, RUnit, BiocGenerics
requirements:
  host:
    - bioconductor-biobase >=2.66.0,<2.67.0
    - r-base
    - r-cluster
    - r-diptest
    - r-gplots
  run:
    - bioconductor-biobase >=2.66.0,<2.67.0
    - r-base
    - r-cluster
    - r-diptest
    - r-gplots

source:
  md5: 0ae4c4073d8e5c456a706d4c843193e0
  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 }}')"

