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

Adding setup.py for OptiType #9

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Created by .gitignore support plugin (hsz.mobi)

*.pyc
.gitignore
.gitignore

# build/
build/
.venv/
8 changes: 8 additions & 0 deletions bin/optitype
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env python
"""Entry point script for optitype package."""

import optitype.OptiTypePipeline
import sys

if __name__ == '__main__':
sys.exit(optitype.OptiTypePipeline.main())
16 changes: 0 additions & 16 deletions config.ini

This file was deleted.

125 changes: 85 additions & 40 deletions OptiTypePipeline.py → optitype/OptiTypePipeline.py

Large diffs are not rendered by default.

Empty file added optitype/__init__.py
Empty file.
16 changes: 16 additions & 0 deletions optitype/config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[MAPPING]
# The following expects the "razers3" binary to be on your PATH, update
# to provide a different path.
RAZERS3=razers3
THREADS=16

[LIBRARIES]
# Relative directories are relative to the module.
RNA_REF=./data/hla_reference_rna.fasta
DNA_REF=./data/hla_reference_dna.fasta
ALLELES=./data/alleles.h5

[OPTIMIZATION]
# Using COIN-OR CBC by default, the solver has to be supported by Coopr
SOLVER=cbc
THREADS=1
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion model.py → optitype/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"""

from __future__ import division
import coopr.environ
from coopr.pyomo import ConcreteModel, Set, Param, Var, Binary, Objective, Constraint, ConstraintList, maximize
from coopr.opt import SolverFactory
from collections import defaultdict
Expand Down
28 changes: 28 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/env python

from distutils.core import setup

setup(name='OptiType',
version='1.0',
description='Precision HLA typing from next-generation sequencing data',
author='Andras Szolek, Benjamin Schubert, Christopher Mohr',
url='https://github.com/FRED-2/OptiType',
license='LICENSE',
# provided packages
packages=['optitype'],
# data files required by optitype
package_data={'optitype': ['config.ini', 'data/*']},
# provided binary packages
scripts=['bin/optitype'],
# packages that we depend on
install_requires=[
'Coopr>=3.5,<4.0',
'argparse==1.2.1',
'biopython==1.65',
'matplotlib==1.4.3',
'wsgiref==0.1.2',
'numpy==1.9.2',
'pandas==0.16.2',
'tables==3.2.0',
]
)