{% set version = '0.1.10' %}

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

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

source:
  url:
    - {{ cran_mirror }}/src/contrib/shazam_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/shazam/shazam_{{ version }}.tar.gz
  sha256: 01c5a8b3b8a9125aa6406bb957c9b6bb3d082c668012942ef988148da0140de6

build:
  merge_build_host: True  # [win]

  number: 0
  skip: true  # [win32]

  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{posix}}zip               # [win]

  host:
    - r-base
    - r-kernsmooth
    - r-mass
    - r-sdmtools
    - r-alakazam >=0.2.11
    - r-ape
    - r-diptest
    - r-doparallel
    - r-dplyr >=0.5.0
    - r-foreach
    - r-ggplot2 >=2.0.0
    - r-igraph
    - r-iterators
    - r-kedd
    - r-lazyeval
    - r-progress
    - r-scales
    - r-seqinr
    - r-stringi >=1.1.3
    - r-tidyr

  run:
    - r-base
    - r-kernsmooth
    - r-mass
    - r-sdmtools
    - r-alakazam >=0.2.11
    - r-ape
    - r-diptest
    - r-doparallel
    - r-dplyr >=0.5.0
    - r-foreach
    - r-ggplot2 >=2.0.0
    - r-igraph
    - r-iterators
    - r-kedd
    - r-lazyeval
    - r-progress
    - r-scales
    - r-seqinr
    - r-stringi >=1.1.3
    - r-tidyr

test:
  commands:

    - $R -e "library('shazam')"           # [not win]
    - "\"%R%\" -e \"library('shazam')\""  # [win]

about:
  home: http://shazam.readthedocs.io
  license: CC BY-SA 4.0
  summary: 'Provides a computational framework for analyzing mutations in immunoglobulin (Ig)
    sequences. Includes methods for Bayesian estimation of antigen-driven selection
    pressure, mutational load quantification, building of somatic hypermutation (SHM)
    models, and model-dependent distance calculations. Also includes empirically derived
    models of SHM for both mice and humans. Citations:  Gupta and Vander Heiden, et
    al (2015) <doi:10.1093/bioinformatics/btv359>,  Yaari, et al (2012) <doi:10.1093/nar/gks457>,  Yaari,
    et al (2013) <doi:10.3389/fimmu.2013.00358>,  Cui, et al (2016) <doi:10.4049/jimmunol.1502263>.'

  license_family: CC
extra:
  recipe-maintainers:
    - MathiasHaudgaard
    - FrodePedersen
    - ArneKr
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
