Skip to content

Commit

Permalink
Recipe for sparcc (#12459)
Browse files Browse the repository at this point in the history
* Recipe for SparCC

* Remove maintainers lines

* Add license info

* Mention pull request for patch

* Fix lint

* Build noarch
  • Loading branch information
pvanheus authored and druvus committed Dec 12, 2018
1 parent 83b460d commit e774f57
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
6 changes: 6 additions & 0 deletions recipes/sparcc/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

cp *.py $PREFIX/bin
for script in SparCC.py PseudoPvals.py MakeBootstraps.py ; do
chmod a+x $PREFIX/bin/$script
done
40 changes: 40 additions & 0 deletions recipes/sparcc/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{% set name = "SparCC" %}
{% set version = "0.1.0" %}
{% set commit = "3aff6141c3f1" %}
{% set sha256 = "00f00acb700de381d79d9d4d244f9834eb7b223780b3d018533d0ef2c853d63e" %}

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

source:
url: https://bitbucket.org/yonatanf/sparcc/get/{{ commit }}.zip
sha256: {{ sha256 }}
patches:
- pseudopvals.patch # https://bitbucket.org/yonatanf/sparcc/pull-requests/2/add-line-for-pseudopvalspy/diff

build:
noarch: python
number: 0

requirements:
run:
- python <3
- pandas
- numpy
- scipy

test:
commands:
- SparCC.py --help |grep SparCC
- PseudoPvals.py --help |grep PseudoPvals
- MakeBootstraps.py --help |grep MakeBootstraps

about:
home: https://bitbucket.org/yonatanf/sparcc
license: MIT
license_file: readme.rst
summary: 'SparCC is a python module for computing correlations in compositional data (16S, metagenomics, etc).'
extra:
identifiers:
- doi:10.1371/journal.pcbi.1002687
7 changes: 7 additions & 0 deletions recipes/sparcc/pseudopvals.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
--- PseudoPvals.py.orig 2018-11-23 06:13:47.531461000 +0000
+++ PseudoPvals.py 2018-11-23 06:13:56.611567000 +0000
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
'''
Created on Apr 8, 2013

0 comments on commit e774f57

Please sign in to comment.