{% set name = "snapatac2" %}
{% set version = "2.7.1" %}
{% set sha256 = "18c206153112fbf9ca97c690d6d8d1e51cb5d125739ead6e8a3aece8f01cbd66" %}

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

source:
  url: https://github.com/kaizhang/SnapATAC2/archive/refs/tags/v{{ version }}.tar.gz
  sha256: {{ sha256 }}
  patches:
    - cargo.toml.patch
    - pyproject.toml.patch

build:
  number: 0
  skip: True  # [py < 39 or py > 312]
  run_exports:
    - {{ pin_subpackage('snapatac2', max_pin="x") }}

requirements:
  build:
    - {{ compiler('rust') }}
    - {{ compiler('c') }}
    - make
    - cmake
  host:
    - python
    - pip
    - maturin
    - zlib
  run:
    - python
    - anndata
    - python-igraph >=0.10.3
    - multiprocess
    - macs3
    - natsort
    - numpy >=1.16.0
    - pandas >=1.0,<2.1.2
    - plotly >=5.19.0
    - polars >=1.0
    - pooch >=1.6.0
    - pyarrow
    - pyfaidx >=0.7.0,<0.8.0
    - python-kaleido
    - rustworkx
    - scipy >=1.4
    - scikit-learn >=1.0
    - tqdm >=4.62
    - typing_extensions
    - typeguard >=4.0

test:
  imports:
    - snapatac2

about:
  home: "https://github.com/kaizhang/SnapATAC2"
  summary: "SnapATAC2: Single-cell epigenomics analysis pipeline."
  license: MIT
  license_family: MIT
  license_file: snapatac2-python/LICENSE
  doc_url: "https://kzhang.org/SnapATAC2"
  dev_url: "https://github.com/kaizhang/SnapATAC2"

extra:
  identifiers:
    - biotools:snapatac
    - doi:10.1038/s41592-023-02139-9
    - usegalaxy-eu:snapatac2_preprocessing
    - usegalaxy-eu:snapatac2_clustering
    - usegalaxy-eu:snapatac2_peaks_and_motif
    - usegalaxy-eu:snapatac2_plotting
