{% set name = "gcta" %}
{% set version = "1.94.1" %}

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

source:
  - url: https://yanglab.westlake.edu.cn/software/{{ name }}/bin/{{ name }}-{{ version }}-linux-kernel-3-x86_64.zip # [linux]
    sha256: f2fc3f46b98f5eb2bbe0886a2c60268c6b634583f7a3fed51cfeb15e9f33fb0d # [linux]
  - url: https://yanglab.westlake.edu.cn/software/{{ name }}/bin/{{ name }}-{{ version }}-macOS-x86_64.zip # [osx]
    sha256: 51c2a5c622cb7ab8d246252abece9d28bf6e41c0e54a0b820a0871695a269441 # [osx]

build:
  number: 0

test:
  commands:
    - gcta | grep "Analysis started"

about:
  home: "https://yanglab.westlake.edu.cn/software/gcta"
  license: GPL-3.0-only
  summary: GCTA (Genome-wide Complex Trait Analysis) estimates the proportion of phenotypic variance explained by all genome-wide SNPs for complex traits.

extra:
  identifiers:
    - biotools:gcta
    - doi:10.1016/j.ajhg.2010.11.011 
  skip-lints:
    - should_be_noarch_generic
    - should_not_be_noarch_source
