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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/polysat_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/polysat/polysat_{{ version }}.tar.gz
  sha256: 0543047f227c5e3a63aa7ccf8d7002e0b37c0511783446c4a468ff0af2c25e40

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-rcpp
  run:
    - r-base
    - {{ native }}gcc-libs         # [win]
    - r-rcpp

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

about:
  home: https://github.com/lvclark/polysat/wiki
  license: GPL-2.0-only
  summary: A collection of tools to handle microsatellite data of any ploidy (and samples of mixed ploidy) where allele copy number is not known in partially heterozygous genotypes.  It can import and export data in ABI 'GeneMapper', 'Structure', 'ATetra', 'Tetrasat'/'Tetra', 'GenoDive', 'SPAGeDi', 'POPDIST', 'STRand', and
    binary presence/absence formats.  It can calculate pairwise distances between individuals using a stepwise mutation model or infinite alleles model, with or without taking ploidies and allele frequencies into account.  These distances can be used for the calculation of clonal diversity statistics or used for further
    analysis in R.  Allelic diversity statistics and Polymorphic Information Content are also available.  polysat can  assist the user in estimating the ploidy of samples, and it can estimate allele  frequencies in populations, calculate pairwise or global differentiation statistics  based on those frequencies, and export
    allele frequencies to 'SPAGeDi' and 'adegenet'.   Functions are also included for assigning alleles to isoloci in cases where one pair  of microsatellite primers amplifies alleles from two or more independently segregating isoloci.  polysat is described by Clark and Jasieniuk (2011) <doi:10.1111/j.1755-0998.2011.02985.x>
    and Clark and Schreier (2017) <doi:10.1111/1755-0998.12639>.
  license_family: GPL2
  license_file: {{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-2

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

# Package: polysat
# Version: 1.7-4
# Date: 2019-03-03
# Title: Tools for Polyploid Microsatellite Analysis
# Authors@R: c(person("Lindsay V.", "Clark", email = "lvclark@illinois.edu", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-3881-9252")), person("Alistair J.", "Hall", role = "ctb", comment = c(ORCID = "0000-0001-9293-8909")), person("Handunnethi Nihal", "de Silva", role = "ctb"), person("Tyler William", "Smith", role = "ctb", comment = c(ORCID = "0000-0001-7683-2653")))
# Imports: methods, stats, utils, grDevices, graphics, Rcpp
# Suggests: ade4, adegenet, ape
# LinkingTo: Rcpp
# Description: A collection of tools to handle microsatellite data of any ploidy (and samples of mixed ploidy) where allele copy number is not known in partially heterozygous genotypes.  It can import and export data in ABI 'GeneMapper', 'Structure', 'ATetra', 'Tetrasat'/'Tetra', 'GenoDive', 'SPAGeDi', 'POPDIST', 'STRand', and binary presence/absence formats.  It can calculate pairwise distances between individuals using a stepwise mutation model or infinite alleles model, with or without taking ploidies and allele frequencies into account.  These distances can be used for the calculation of clonal diversity statistics or used for further analysis in R.  Allelic diversity statistics and Polymorphic Information Content are also available.  polysat can  assist the user in estimating the ploidy of samples, and it can estimate allele  frequencies in populations, calculate pairwise or global differentiation statistics  based on those frequencies, and export allele frequencies to 'SPAGeDi' and 'adegenet'.   Functions are also included for assigning alleles to isoloci in cases where one pair  of microsatellite primers amplifies alleles from two or more independently segregating isoloci.  polysat is described by Clark and Jasieniuk (2011) <doi:10.1111/j.1755-0998.2011.02985.x> and Clark and Schreier (2017) <doi:10.1111/1755-0998.12639>.
# License: GPL-2
# URL: https://github.com/lvclark/polysat/wiki
# NeedsCompilation: yes
# Packaged: 2019-03-04 17:36:08 UTC; lvclark
# Author: Lindsay V. Clark [aut, cre] (<https://orcid.org/0000-0002-3881-9252>), Alistair J. Hall [ctb] (<https://orcid.org/0000-0001-9293-8909>), Handunnethi Nihal de Silva [ctb], Tyler William Smith [ctb] (<https://orcid.org/0000-0001-7683-2653>)
# Maintainer: Lindsay V. Clark <lvclark@illinois.edu>
# Repository: CRAN
# Date/Publication: 2019-03-06 22:10:12 UTC
