-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (41 loc) · 1.33 KB
/
setup.py
File metadata and controls
50 lines (41 loc) · 1.33 KB
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
#!/usr/bin/env python
from setuptools import setup
import versioneer
import subprocess
def samtools():
v = subprocess.check_output(['samtools', '--version']).decode().split()[1].split('.')
major = int(v[0])
minor = int(v[1])
if major >= 1 and minor >= 4:
return True
return False
def bedtools():
v = subprocess.check_output(['bedtools', '--version']).decode().split()[1].split('.')
major = v[0].strip('v')
if int(major) >= 2 and int(v[1]) >= 24:
return True
return False
if __name__ == "__main__":
if not samtools():
raise Exception("TEPID requires samtools >= v1.1 and < v1.3")
if not bedtools():
raise Exception("TEPID requires bedtools v2.25.0 or greater")
setup(
name = 'TEPID',
version = versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description="TEPID: transposable element polymorphism identification",
author = 'Tim Stuart',
install_requires = [
'pysam<0.9, >0.8',
'numpy>=1.9.2',
'pybedtools>=0.6.9',
'pandas',
'nose'
],
author_email = 'timstuart90@gmail.com',
url = 'https://github.com/ListerLab/TEPID',
scripts = ["Scripts/tepid-map", "Scripts/tepid-map-se", "Scripts/tepid-discover", "Scripts/tepid-refine"],
packages = ['tepid'],
test_suite="nose.collector"
)