{% set version = '1.0.1' %}

{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/sccore_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/sccore/sccore_{{ version }}.tar.gz
  sha256: 75220c8309b41598ebc12235e6d16ab8e08a231d86cc2d63e6729c2b99074c6b

build:
  merge_build_host: True  # [win]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]

  host:
    - r-base
    - r-matrix
    - r-rcpp
    - r-rcpparmadillo
    - r-rcppeigen
    - r-rcppprogress
    - r-dplyr
    - r-ggplot2
    - r-ggrepel
    - r-igraph
    - r-irlba
    - r-magrittr
    - r-proc
    - r-pbmcapply
    - r-rlang
    - r-scales
    - r-tibble
    - r-uwot
    - r-withr

  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-matrix
    - r-rcpp
    - r-rcpparmadillo
    - r-rcppeigen
    - r-rcppprogress
    - r-dplyr
    - r-ggplot2
    - r-ggrepel
    - r-igraph
    - r-irlba
    - r-magrittr
    - r-proc
    - r-pbmcapply
    - r-rlang
    - r-scales
    - r-tibble
    - r-uwot
    - r-withr

test:
  commands:
    - $R -e "library('sccore')"           # [not win]
    - "\"%R%\" -e \"library('sccore')\""  # [win]

about:
  home: https://github.com/kharchenkolab/sccore
  license: GPL-3.0-only
  summary: Core utilities for single-cell RNA-seq data analysis. Contained within are utility
    functions for working with differential expression (DE) matrices and count matrices,
    a collection of functions for manipulating and plotting data via 'ggplot2', and
    functions to work with cell graphs and cell embeddings. Graph-based methods include
    embedding kNN cell graphs into a UMAP <doi:10.21105/joss.00861>, collapsing vertices
    of each cluster in the graph, and propagating graph labels.
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'


extra:
  recipe-maintainers:
    - conda-forge/r
    - raivivek

# The original CRAN metadata for this package was:

# Package: sccore
# Title: Core Utilities for Single-Cell RNA-Seq
# Version: 1.0.1
# Authors@R: c(person("Viktor","Petukhov", email="viktor.s.petuhov@ya.ru", role="aut"), person("Ramus","Rydbirk", email="rasmus.rydbirk@bric.ku.dk", role="aut"), person("Peter", "Kharchenko", email = "peter_kharchenko@hms.harvard.edu", role = "aut"), person("Evan","Biederstedt", email="evan.biederstedt@gmail.com", role=c("aut", "cre")))
# Description: Core utilities for single-cell RNA-seq data analysis. Contained within are utility functions for working with differential expression (DE) matrices and count matrices, a collection of functions for manipulating and plotting data via 'ggplot2', and functions to work with cell graphs and cell embeddings. Graph-based methods include embedding kNN cell graphs into a UMAP <doi:10.21105/joss.00861>, collapsing vertices of each cluster in the graph, and propagating graph labels.
# License: GPL-3
# Encoding: UTF-8
# LazyData: true
# Imports: dplyr, ggplot2, ggrepel, graphics, grDevices, igraph, irlba, magrittr, Matrix, methods, parallel, pbmcapply, pROC, Rcpp, rlang, scales, tibble, utils, uwot, withr
# Depends: R (>= 3.5.0)
# Suggests: ggrastr (>= 0.1.7), rmumps, testthat
# RoxygenNote: 7.1.2
# LinkingTo: Rcpp, RcppArmadillo, RcppProgress, RcppEigen
# NeedsCompilation: yes
# SystemRequirements: C++11
# URL: https://github.com/kharchenkolab/sccore
# BugReports: https://github.com/kharchenkolab/sccore/issues
# Author: Viktor Petukhov [aut], Ramus Rydbirk [aut], Peter Kharchenko [aut], Evan Biederstedt [aut, cre]
# Maintainer: Evan Biederstedt <evan.biederstedt@gmail.com>
# Packaged: 2021-12-12 04:55:16 UTC; evanbiederstedt
# Repository: CRAN
# Date/Publication: 2021-12-12 05:40:01 UTC

# See
# https://docs.conda.io/projects/conda-build for
# more information about meta.yaml
