{% set version = "2.6.0" %}
{% set name = "PCAtools" %}
{% set bioc = "3.14" %}

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: 8707552e1bbf1b6b001141d53e9ea568
build:
  number: 2
  rpaths:
    - lib/R/lib/
    - lib/
# Suggests: testthat, scran, BiocGenerics, knitr, Biobase, GEOquery, hgu133a.db, ggplotify, beachmat, RMTstat, ggalt, DESeq2, airway, org.Hs.eg.db, magrittr, rmarkdown
# SystemRequirements: C++11
requirements:
  host:
    - 'bioconductor-beachmat >=2.10.0,<2.11.0'
    - 'bioconductor-biocparallel >=1.28.0,<1.29.0'
    - 'bioconductor-biocsingular >=1.10.0,<1.11.0'
    - 'bioconductor-delayedarray >=0.20.0,<0.21.0'
    - 'bioconductor-delayedmatrixstats >=1.16.0,<1.17.0'
    - r-base
    - r-bh
    - r-cowplot
    - r-dqrng
    - r-ggplot2
    - r-ggrepel
    - r-lattice
    - r-matrix
    - r-rcpp
    - r-reshape2
    - libblas
    - liblapack
  run:
    - 'bioconductor-beachmat >=2.10.0,<2.11.0'
    - 'bioconductor-biocparallel >=1.28.0,<1.29.0'
    - 'bioconductor-biocsingular >=1.10.0,<1.11.0'
    - 'bioconductor-delayedarray >=0.20.0,<0.21.0'
    - 'bioconductor-delayedmatrixstats >=1.16.0,<1.17.0'
    - r-base
    - r-bh
    - r-cowplot
    - r-dqrng
    - r-ggplot2
    - r-ggrepel
    - r-lattice
    - r-matrix
    - r-rcpp
    - r-reshape2
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - make
test:
  commands:
    - '$R -e "library(''{{ name }}'')"'
about:
  home: 'https://bioconductor.org/packages/{{ bioc }}/bioc/html/{{ name }}.html'
  license: GPL-3
  summary: 'PCAtools: Everything Principal Components Analysis'
  description: 'Principal Component Analysis (PCA) is a very powerful technique that has wide applicability in data science, bioinformatics, and further afield. It was initially developed to analyse large volumes of data in order to tease out the differences/relationships between the logical entities being analysed. It extracts the fundamental structure of the data without the need to build any model to represent it. This ''summary'' of the data is arrived at through a process of reduction that can transform the large number of variables into a lesser number that are uncorrelated (i.e. the ''principal components''), while at the same time being capable of easy interpretation on the original data. PCAtools provides functions for data exploration via PCA, and allows the user to generate publication-ready figures. PCA is performed via BiocSingular - users can also identify optimal number of principal components via different metrics, such as elbow method and Horn''s parallel analysis, which has relevance for data reduction in single-cell RNA-seq (scRNA-seq) and high dimensional mass cytometry data.'
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'

