{% set version = "1.0" %}
{% set name = "epicseg" %}

package:
  name: '{{ name|lower }}'
  version: '{{ version }}'

source:
  url: https://github.com/BIMSBbioinfo/{{ name }}/archive/v{{ version }}.tar.gz
  sha256: e3094ad54044c19a9c7fd027c4b64c9ae7793bed84cec3442aedf495d0fb4b2b

build:
  number: 2
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}
  host:
    - r-base
    - r-rcpp >=0.11.3
    - r-rcolorbrewer
    - bioconductor-iranges
    - bioconductor-genomicranges
    - bioconductor-bamsignals
    - bioconductor-edger
    - bioconductor-s4vectors
    - kfoots
  run:
    - r-base
    - r-rcpp >=0.10.6
    - r-rcolorbrewer
    - bioconductor-iranges
    - bioconductor-genomicranges
    - bioconductor-bamsignals
    - bioconductor-edger
    - bioconductor-s4vectors
    - kfoots

test:
  commands:
    - '$R -e "library(''{{ name }}'')"'

about:
  home: 'http://github.com/lamortenera/{{ name }}'
  license: GPL-3
  summary: 'EpiCSeg (Epigenome Count-based Segmentation) is a software for annotating the genome based on the state of the chromatin. It provides tools for extracting count data from BAM files, typlically corresponding to ChIP-seq experiments for histone marks (but other choices are possible) it learns a statistical model for the read counts based on a HMM, it annotates the genome, and it provides tools for displaying and analyzing the obtained models and segmentations. EpiCSeg can be used as an R package or from the command line via Rscript.'
