{% set version = "1.34.0" %}
{% set name = "Harman" %}
{% set bioc = "3.20" %}

about:
  description: Harman is a PCA and constrained optimisation based technique that maximises the removal of batch effects from datasets, with the constraint that the probability of overcorrection (i.e. removing genuine biological signal along with batch noise) is kept to a fraction which is set by the end-user.
  home: https://bioconductor.org/packages/{{ bioc }}/bioc/html/{{ name }}.html
  license: GPL-3 + file LICENCE
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'
  summary: The removal of batch effects from datasets using a PCA and constrained optimisation based technique

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

extra:
  identifiers:
    - biotools:harman
  parent_recipe:
    name: bioconductor-harman
    path: recipes/bioconductor-harman
    version: 1.8.0

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

# Suggests: HarmanData, BiocGenerics, BiocStyle, knitr, rmarkdown, RUnit, RColorBrewer, bladderbatch, limma, minfi, lumi, msmsEDA, affydata, minfiData, sva
requirements:
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - make
  host:
    - r-base
    - r-ckmeans.1d.dp
    - r-matrixstats
    - r-rcpp >=0.11.2
    - libblas
    - liblapack
  run:
    - r-base
    - r-ckmeans.1d.dp
    - r-matrixstats
    - r-rcpp >=0.11.2

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

