-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (56 loc) · 1.91 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/env python
"""
Distribution script for DinrSR, a program to identify
differntial intron retention from short read data.
\author Mike Hamilton
"""
from distutils.core import setup
import sys
SCRIPTS = ['scripts/idiffir.py',
'scripts/getDepths.py',
'scripts/convertSam.py',
'scripts/simulate_IR.py',
'scripts/make_MISO_IR_GFF.py',
'scripts/make_MISO_AS_GFF.py',
'scripts/get_gene_expression.py',
'scripts/idiffir_plotter.py',
'scripts/run_miso_ir.py'
]
PACKAGES = [ 'iDiffIR',
'iDiffIR.SpliceGrapher',
'iDiffIR.SpliceGrapher.formats',
'iDiffIR.SpliceGrapher.plot',
'iDiffIR.SpliceGrapher.predict',
'iDiffIR.SpliceGrapher.shared',
'iDiffIR.SpliceGrapher.statistics',
'iDiffIR.SpliceGrapher.view',
]
REQUIRES = ['scipy',
'numpy',
'matplotlib',
'pysam'
]
# check for dependencies if we're building or installing
installable = True
if 'build' in sys.argv or 'install' in sys.argv:
sys.stderr.write('Checking for dependencies...\n')
for package in REQUIRES:
try:
p = __import__( package )
sys.stderr.write('package "%s" found (version %s)\n' % (package, p.__version__))
except ImportError:
installable = False
sys.stderr.write('\tRequired package `%s` not found\n' % package )
if not installable:
sys.exit('Missing dependencies--terminating installation')
setup(name='iDiffIR',
version='0.3.1',
description='Identifying differential intron retention from RNA-seq',
author='Michael Hamilton',
author_email='mike.hamilton7@gmail.com',
url='combi.cs.colostate.edu/idiffir',
packages=PACKAGES,
requires=REQUIRES,
scripts=SCRIPTS,
license='GNU General Public License'
)