{% set version = "1.16.0" %}
{% set name = "msPurity" %}
{% set bioc = "3.12" %}

package:
  name: 'bioconductor-{{ name|lower }}'
  version: '{{ version }}'
source:
  url:
    - 'https://bioconductor.org/packages/{{ bioc }}/bioc/src/contrib/{{ name }}_{{ version }}.tar.gz'
    - 'https://bioarchive.galaxyproject.org/{{ name }}_{{ version }}.tar.gz'
    - 'https://depot.galaxyproject.org/software/bioconductor-{{ name|lower }}/bioconductor-{{ name|lower }}_{{ version }}_src_all.tar.gz'
  md5: 45bc8aaab65adb9a76f0deafae99efac
build:
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/
# Suggests: testthat, xcms, BiocStyle, knitr, rmarkdown, msPurityData, CAMERA, RPostgres, RMySQL
requirements:
  host:
    - 'bioconductor-mzr >=2.24.0,<2.25.0'
    - r-base
    - r-dbi
    - r-dbplyr
    - r-dosnow
    - r-dplyr
    - r-fastcluster
    - r-foreach
    - r-ggplot2
    - r-jsonlite
    - r-magrittr
    - r-plyr
    - r-rcpp
    - r-reshape2
    - r-rsqlite
    - r-stringr
    - r-uuid
    - libblas
    - liblapack
  run:
    - 'bioconductor-mzr >=2.24.0,<2.25.0'
    - r-base
    - r-dbi
    - r-dbplyr
    - r-dosnow
    - r-dplyr
    - r-fastcluster
    - r-foreach
    - r-ggplot2
    - r-jsonlite
    - r-magrittr
    - r-plyr
    - r-rcpp
    - r-reshape2
    - r-rsqlite
    - r-stringr
    - r-uuid
  build:
    - {{ compiler('c') }}
    - {{ compiler('cxx') }}
test:
  commands:
    - '$R -e "library(''{{ name }}'')"'
about:
  home: 'https://bioconductor.org/packages/{{ bioc }}/bioc/html/{{ name }}.html'
  license: 'GPL (>= 2)'
  summary: 'Automated Evaluation of Precursor Ion Purity for Mass Spectrometry Based Fragmentation in Metabolomics'
  description: 'msPurity R package was developed to: 1) Assess the spectral quality of fragmentation spectra by evaluating the "precursor ion purity". 2) Process fragmentation spectra. 3) Perform spectral matching. What is precursor ion purity? -What we call "Precursor ion purity" is a measure of the contribution of a selected precursor peak in an isolation window used for fragmentation. The simple calculation involves dividing the intensity of the selected precursor peak by the total intensity of the isolation window. When assessing MS/MS spectra this calculation is done before and after the MS/MS scan of interest and the purity is interpolated at the recorded time of the MS/MS acquisition. Additionally, isotopic peaks can be removed, low abundance peaks are removed that are thought to have limited contribution to the resulting MS/MS spectra and the isolation efficiency of the mass spectrometer can be used to normalise the intensities used for the calculation.'
  license_file: '{{ environ["PREFIX"] }}/lib/R/share/licenses/GPL-3'
extra:
  identifiers:
    - biotools:mspurity
    - doi:10.1021/acs.analchem.6b04358
  parent_recipe:
    name: bioconductor-mspurity
    path: recipes/bioconductor-mspurity
    version: 1.6.2

