{% set version = "1.54.0" %}
{% set name = "cn.farms" %}
{% set bioc = "3.20" %}

about:
  description: This package implements the cn.FARMS algorithm for copy number variation (CNV) analysis. cn.FARMS allows to analyze the most common Affymetrix (250K-SNP6.0) array types, supports high-performance computing using snow and ff.
  home: https://bioconductor.org/packages/{{ bioc }}/bioc/html/{{ name }}.html
  license: LGPL (>= 2.0)
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/LGPL-3'
  summary: cn.FARMS - factor analysis for copy number estimation

build:
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/
  run_exports: '{{ pin_subpackage("bioconductor-cn.farms", max_pin="x.x") }}'

extra:
  identifiers:
    - biotools:cn.farms
    - doi:10.1093/nar/gkr197
  parent_recipe:
    name: bioconductor-cn.farms
    path: recipes/bioconductor-cn.farms
    version: 1.28.0

package:
  name: bioconductor-{{ name|lower }}
  version: '{{ version }}'

# Suggests: pd.mapping250k.sty, pd.mapping250k.nsp, pd.genomewidesnp.5, pd.genomewidesnp.6
requirements:
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
    - make
  host:
    - bioconductor-affxparser >=1.78.0,<1.79.0
    - bioconductor-biobase >=2.66.0,<2.67.0
    - bioconductor-dnacopy >=1.80.0,<1.81.0
    - bioconductor-oligo >=1.70.0,<1.71.0
    - bioconductor-oligoclasses >=1.68.0,<1.69.0
    - bioconductor-preprocesscore >=1.68.0,<1.69.0
    - r-base
    - r-dbi
    - r-ff
    - r-lattice
    - r-snow
    - libblas
    - liblapack
  run:
    - bioconductor-affxparser >=1.78.0,<1.79.0
    - bioconductor-biobase >=2.66.0,<2.67.0
    - bioconductor-dnacopy >=1.80.0,<1.81.0
    - bioconductor-oligo >=1.70.0,<1.71.0
    - bioconductor-oligoclasses >=1.68.0,<1.69.0
    - bioconductor-preprocesscore >=1.68.0,<1.69.0
    - r-base
    - r-dbi
    - r-ff
    - r-lattice
    - r-snow

source:
  md5: 19b06587ff4179b8c96a74795ecac02e
  url:
    - https://bioconductor.org/packages/{{ bioc }}/bioc/src/contrib/{{ name }}_{{ version }}.tar.gz
    - https://bioconductor.org/packages/{{ bioc }}/bioc/src/contrib/Archive/{{ name }}/{{ name }}_{{ version }}.tar.gz
    - https://bioarchive.galaxyproject.org/{{ name }}_{{ version }}.tar.gz
    - https://depot.galaxyproject.org/software/bioconductor-{{ name }}/bioconductor-{{ name }}_{{ version }}_src_all.tar.gz

test:
  commands:
    - $R -e "library('{{ name }}')"

