{% set version = "4.2" %}
{% set beta_suffix = "" %}
{% set sha256 = "df55aefd05b664d7af815684cb19a39011c932ecc0bdc70692ae8597bda41811" %}

package:
  name: hmftools-purple
  version: '{{ version }}'

source:
  url: https://github.com/hartwigmedical/hmftools/releases/download/purple-v{{ version }}/purple_v{{ version }}{{ beta_suffix }}.jar
  sha256: '{{ sha256 }}'

build:
  noarch: generic
  number: 0
  run_exports:
    - {{ pin_subpackage('hmftools-purple', max_pin="x") }}

requirements:
  run:
    - zlib
    - openjdk >=8,<=21
    - xorg-libxtst
    - circos >=0.69.6
    - perl-gd >=2.76 # Fixes missing GD perl module error (even though circos does install GD)
    - bioconductor-variantannotation
    - r-cairo
    - r-cowplot
    - r-dplyr
    - r-ggplot2
    - r-tidyr

test:
  commands:
    - 'purple -version | grep Purple'

about:
  home: https://github.com/hartwigmedical/hmftools/tree/master/purple
  license: GPL-3.0-only
  license_family: GPL3
  summary: PURPLE is a purity ploidy estimator for tumor samples.
