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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/adegenet_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/adegenet/adegenet_{{ version }}.tar.gz
  sha256: 57ebe642141a141469c2e7ccf53f5e68beda99500aafdeec57b3769168e1ab6b

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

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ posix }}filesystem        # [win]
    - {{ posix }}make
    - {{ posix }}sed               # [win]
    - {{ posix }}coreutils         # [win]
    - {{ posix }}zip               # [win]
  host:
    - r-base
    - r-mass
    - r-ade4
    - r-ape
    - r-boot
    - r-dplyr >=0.4.1
    - r-ggplot2
    - r-igraph
    - r-reshape2
    - r-seqinr
    - r-shiny
    - r-spdep
    - r-vegan
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-mass
    - r-ade4
    - r-ape
    - r-boot
    - r-dplyr >=0.4.1
    - r-ggplot2
    - r-igraph
    - r-reshape2
    - r-seqinr
    - r-shiny
    - r-spdep
    - r-vegan

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

about:
  home: https://github.com/thibautjombart/adegenet
  license: GPL-2.0-or-later
  summary: Toolset for the exploration of genetic and genomic data. Adegenet provides formal (S4) classes for storing and handling various genetic data, including genetic markers with varying ploidy and hierarchical population structure ('genind' class), alleles counts by populations ('genpop'), and genome-wide SNP data
    ('genlight'). It also implements original multivariate methods (DAPC, sPCA), graphics, statistical tests, simulation tools, distance and similarity measures, and several spatial methods. A range of both empirical and simulated datasets is also provided to illustrate various methods.
  license_family: GPL3
  license_file:
    - {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

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

# Package: adegenet
# Version: 2.1.1
# Encoding: UTF-8
# Title: Exploratory Analysis of Genetic and Genomic Data
# Author: Thibaut Jombart, Zhian N. Kamvar, Caitlin Collins, Roman Lustrik, Marie- Pauline Beugin, Brian J. Knaus, Peter Solymos, Vladimir Mikryukov, Klaus Schliep, Tiago MaiA, Libor Morkovsky, Ismail Ahmed, Anne Cori, Federico Calboli, RJ Ewing
# Maintainer: Thibaut Jombart <thibautjombart@gmail.com>
# Suggests: pegas, hierfstat, akima, maps, splancs, tripack, testthat, poppr
# Depends: R (>= 2.14), methods, ade4
# Imports: utils, stats, grDevices, MASS, igraph, ape, shiny, ggplot2, seqinr, parallel, spdep, boot, reshape2, dplyr (>= 0.4.1), vegan
# URL: https://github.com/thibautjombart/adegenet
# Description: Toolset for the exploration of genetic and genomic data. Adegenet provides formal (S4) classes for storing and handling various genetic data, including genetic markers with varying ploidy and hierarchical population structure ('genind' class), alleles counts by populations ('genpop'), and genome-wide SNP data ('genlight'). It also implements original multivariate methods (DAPC, sPCA), graphics, statistical tests, simulation tools, distance and similarity measures, and several spatial methods. A range of both empirical and simulated datasets is also provided to illustrate various methods.
# Collate: adegenet.package.R datasets.R dist.genlight.R orthobasis.R classes.R constructors.R accessors.R basicMethods.R handling.R auxil.R minorAllele.R setAs.R SNPbin.R strataMethods.R hierarchyMethods.R glHandle.R glFunctions.R glSim.R find.clust.R hybridize.R scale.R fstat.R import.R seqTrack.R chooseCN.R genind2genpop.R loadingplot.R sequences.R gstat.randtest.R makefreq.R colorplot.R monmonier.R spca.R coords.monmonier.R haploGen.R old2new.R global_local_tests.R dapc.R compoplot.R xvalDapc.R haploPop.R PCtest.R dist.genpop.R Hs.R propShared.R export.R HWE.R propTyped.R inbreeding.R glPlot.R gengraph.R simOutbreak.R mutations.R snpposi.R snpzip.R pairDist.R snapclust.R AIC.snapclust.R AICc.snapclust.R BIC.snapclust.R KIC.snapclust.R snapclust.choose.k.R servers.R showmekittens.R spca_randtest.R export_to_mvmapper.R doc_C_routines.R zzz.R
# License: GPL (>= 2)
# LazyLoad: yes
# RoxygenNote: 6.0.1
# NeedsCompilation: yes
# Packaged: 2018-02-02 16:20:48 UTC; thibaut
# Repository: CRAN
# Date/Publication: 2018-02-02 18:21:36 UTC
