Skip to content

Commit

Permalink
update rgi4.2.2 recipe (#12282)
Browse files Browse the repository at this point in the history
* update to enforce python3.6 and load card.json

* remove lines from build.sh

* update build number

* make PR comment changes

* add test to verify db is loaded

* update build script

* update build script

* fix lint errors

* fix linting errors

* fix liniting errors

* fix linting errors

* fix linting errors

* fix linting errors

* fix linting errors

* fix linting errors

* fix linting errors

* fix linting errors

* fix linting errors

* revert test change
  • Loading branch information
mjram0s authored and apetkau committed Dec 3, 2018
1 parent f2f2103 commit 46ee15d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
7 changes: 7 additions & 0 deletions recipes/rgi/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

$PYTHON setup.py install --single-version-externally-managed --record=record.txt

# Load the CARD database JSON file
python `which rgi` load -i card-data/card.json
rm -rf card-data
30 changes: 23 additions & 7 deletions recipes/rgi/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,44 @@
{% set name = "rgi" %}
{% set version = "4.2.2" %}
{% set sha256 = "ab4a5614e359884129064ec318d8dda2516052b26aa38cfd480245d24e0c96e7" %}
{% set sha256database = "a98a7cfff770f1eb92b901d96fc82c7884a62bf0a837f896414e16e7ed32a368" %}

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

source:
url: https://github.com/arpcard/rgi/archive/{{ version }}.tar.gz
sha256: {{ sha256 }}
- url: https://github.com/arpcard/rgi/archive/{{ version }}.tar.gz
sha256: {{ sha256 }}
- url: https://card.mcmaster.ca/download/0/broadstreet-v3.0.0.tar.gz
sha256: {{ sha256database }}
folder: card-data

build:
skip: True # [win or py27]
number: 0
script: python setup.py install --single-version-externally-managed --record=record.txt
skip: True # [win or py27 or py34]
number: 1

requirements:
build:
- {{ compiler('c') }}
host:
- python
- setuptools
- biopython
- blast ==2.6.0
- six >=1.7.0
- zlib
- prodigal ==2.6.3
- diamond ==0.8.36
- biopython >=1.60
- filetype >=1.0.0
- pytest >=3.0.0
- mock >=2.0.0
- pandas >=0.15.0
- matplotlib >=2.1.2
- seaborn >=0.8.1
- pyfaidx >=0.5.4.1
- pyahocorasick >=1.1.7
- setuptools

run:
# RGI requires these exact versions of blast prodigal and diamond, or else --alignment_mode DIAMOND fails
- python
Expand All @@ -44,6 +59,7 @@ requirements:

test:
commands:
- rgi database | grep "3.0.0"
- rgi load -h
- rgi main -h
- rgi tab -h
Expand Down

0 comments on commit 46ee15d

Please sign in to comment.