{% set version = "2.9" %}
{% set sha256 = "b8fd43fc396a2184d9351fb4a459f95ae9bb5865b195a18e22436f643044c788" %}

package:
  name: bracken
  version: {{ version }}

source:
  url: https://github.com/jenniferlu717/Bracken/archive/v{{ version }}.tar.gz
  sha256: {{ sha256 }}
  patches:
    - osx.patch  # [osx]
    - py3.patch

build:
  skip: True  # [osx]
  number: 0
  run_exports:
    - {{ pin_subpackage('bracken', max_pin="x") }}

requirements:
  build:
    - {{ compiler('cxx') }}
    - llvm-openmp  # [osx]
    - libgomp      # [linux]
    - make
  host:
    - python
  run:
    - python
    - kraken2

test:
  commands:
    - bracken -h
    - bracken-build -h
    - est_abundance.py -h
    - generate_kmer_distribution.py -h
    - kmer2read_distr --help
    - combine_bracken_outputs.py -h

about:
  home: https://github.com/jenniferlu717/Bracken
  license: GPL-3.0
  license_file: LICENSE
  summary: 'Bracken (Bayesian Reestimation of Abundance with KrakEN) is a highly accurate statistical method that computes the abundance of species in DNA sequences from a metagenomics sample.'

extra:
  identifiers:
    - biotools:Bracken
    - doi:10.7717/peerj-cs.104
