{% set version = "5.5.0" %}
{% set sha256 = "c800d9226350817471e9f51267c91f7cab99dbc9b26c980527fc1019e7d90a76" %}

package:
  name: transdecoder
  version: '{{version}}'

source:
  url: https://github.com/TransDecoder/TransDecoder/archive/TransDecoder-v{{version}}.tar.gz
  sha256: '{{sha256}}'

build:
  noarch: generic
  number: 2

requirements:
  host:
    - perl

  run:
    - perl
    - perl-db-file
    - perl-uri

test:
  commands:
    - TransDecoder.Predict --version | grep -q "TransDecoder.Predict {{version}}"
    - TransDecoder.LongOrfs --version | grep -q "TransDecoder.LongOrfs {{version}}"
    - 'start_codon_refinement.pl 2>&1 | grep -q optional:'

about:
  home: https://transdecoder.github.io/
  license: Broad Institute
  summary: TransDecoder identifies candidate coding regions within transcript sequences,
    such as those generated by de novo RNA-Seq transcript assembly using Trinity,
    or constructed based on RNA-Seq alignments to the genome using Tophat and Cufflinks.
  dev_url: https://github.com/TransDecoder/TransDecoder
