{% set name = "liger" %}
{% set version = '2.1.0' %}

package:
  name: r-{{ name }}
  version: {{ version|replace("-", "_") }}

source:
  url:
    - {{ cran_mirror }}/src/contrib/rliger_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/rliger/rliger_{{ version }}.tar.gz
  sha256: 16b79fdcd1467e4c192f9fb38bb4f35a6710aee319839639edfdf5d87e086e74

build:
  number: 1
  script: R CMD INSTALL --build .
  rpaths:
    - lib/R/lib/
    - lib/
  run_exports:
    - {{ pin_subpackage("r-liger", max_pin="x") }}

requirements:
  build:
    - {{ compiler('cxx') }}
    - make
  host:
    - r-base
    - r-rcpp >=0.12.10
    - r-rcpparmadillo
    - r-rcppprogress
    - r-rtsne
    - r-cowplot
    - r-dplyr
    - r-ggplot2
    - r-ica
    - r-irlba
    - r-mclust
    - r-uwot
    - r-hdf5r
    - r-rann
    - r-circlize
    - bioconductor-complexheatmap
    - r-leidenalg >=1.1.1
    - bioconductor-s4vectors
    - r-cli
    - r-rlang
    - r-matrix
    - r-lifecycle
    - r-magrittr
    - r-scales
    - r-rcolorbrewer
    - r-viridis
  run:
    - r-base
    - r-rcpp >=0.12.10
    - r-rcpparmadillo
    - r-rcppprogress
    - r-rtsne
    - r-cowplot
    - r-dplyr
    - r-ggplot2
    - r-ica
    - r-irlba
    - r-mclust
    - r-uwot
    - r-hdf5r
    - r-rann
    - r-circlize
    - bioconductor-complexheatmap
    - r-leidenalg >=1.1.1
    - bioconductor-s4vectors
    - r-cli
    - r-rlang
    - r-matrix
    - r-lifecycle
    - r-magrittr
    - r-scales
    - r-rcolorbrewer
    - r-viridis
test:
  commands:
    - $R -e "library('rliger')"

about:
  home: https://github.com/MacoskoLab/liger
  license: GPL-3.0-or-later
  summary: Uses an extension of nonnegative matrix factorization to identify shared and dataset-specific
    factors. See Welch J, Kozareva V, et al (2019) <doi:10.1016/j.cell.2019.05.006>,
    and Liu J, Gao C, Sodicoff J, et al (2020) <doi:10.1038/s41596-020-0391-8> for more
    details.
  license_family: GPL3
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'
  doc_url: https://welch-lab.github.io/liger/index.html
  dev_url: https://github.com/MacoskoLab/liger

extra:
  recipe-maintainers:
    - theAeon
    - raivivek
  identifiers:
    - doi:10.1016/j.cell.2019.05.006
