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

FRED2 as a conda package #11469

Merged
merged 4 commits into from
Oct 22, 2018
Merged
Show file tree
Hide file tree
Changes from 3 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
3 changes: 3 additions & 0 deletions recipes/fred/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Patch away the install requires, we're getting these through conda directly
sed -i 's/install_requires/#install_requires/g' setup.py
$PYTHON setup.py install
49 changes: 49 additions & 0 deletions recipes/fred/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{% set name = "fred" %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should that be fred2?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, could be - should I rename it ?

{% set version = "2.0.2" %}
{% set sha256 = "223f139b35357e25d98644eb2668b9140f1489f4befd1e337a83fa6253cc0d54" %}

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

source:
url: https://github.com/FRED-2/Fred2/archive/{{ version }}.tar.gz
sha256: '{{ sha256 }}'

build:
noarch: python
number: 0
skip: True # [not py27]

requirements:
host:
- python
- setuptools
- pyomo
- pandas
- pyvcf
- biopython
- mysql-python
run:
- python
- setuptools
- pyomo
- pandas
- pyvcf
- biopython
- mysql-python

test:
commands:
- python -c "from Fred2.Core import Allele, Peptide, Protein,generate_peptides_from_proteins"

about:
home: http://nf-co.re/
license: MIT
summary: 'Python package with helper tools for the nf-core community.'

extra:
container:
# click requires a unicode locale when used with Python 3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But you are not using click here isn't it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, thats a relict of my template. I'll remove it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed it, renamed the package as well to fred2

# extended-base generates en_US.UTF-8 locale and sets LC_ALL, LANG properly
extended-base: true