Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recipe for sparcc #12459

Merged
merged 6 commits into from
Dec 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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