-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
160 lines (135 loc) · 4.57 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
#!/usr/bin/python
'''
HTSeqQC is an automated quality control analysis tool for a single and
paired-end high-throughput sequencing data (HTS) generated from Illumina
sequencing platforms.'''
import sys
from setuptools import Extension, setup
print("\nChecking for prerequisite...\n")
if sys.version_info[0] < 2 or sys.version_info[0] > 3:
sys.stderr.write("Error: Your Python version is not compatible\nThe SRAP works best with Python 2.7 or "
"higher\n\n")
sys.exit(1)
else:
print("Found Python %s" % sys.version)
try:
import numpy
print("Module numpy found")
except ImportError:
sys.stderr.write("\nError: module numpy not found\nInstall using 'pip3 install numpy'\n\n")
sys.exit(1)
try:
import termcolor
print("Module termcolor found")
except ImportError:
sys.stderr.write("\nError: module termcolor not found\nInstall using 'pip3 install termcolor'\n\n")
sys.exit(1)
try:
import subprocess
print("Module subprocess found")
except ImportError:
sys.stderr.write("\nError: module subprocess not found\nInstall using 'pip3 install subprocess'\n\n")
sys.exit(1)
try:
import gzip
print("Module gzip found")
except ImportError:
sys.stderr.write("\nError: module gzip not found\nInstall using 'pip install gzip'\n\n")
sys.exit(1)
# reserved for future release
'''
try:
import MySQLdb
print "Module MySQLdb found"
except ImportError:
sys.stderr.write("\nError: module MySQLdb not found\nInstall using 'pip install MySQL-python'\n\n")
sys.exit(1)
'''
try:
import pysam
print("Module pysam found")
except ImportError:
sys.stderr.write("\nError: module pysam not found\nInstall using 'pip3 install pysam'\n\n")
sys.exit(1)
try:
import shutil
print("Module shutil found")
except ImportError:
sys.stderr.write("\nError: module shutil not found\nInstall using 'pip3 install shutil'\n\n")
sys.exit(1)
try:
import glob
print("Module glob found")
except ImportError:
sys.stderr.write("\nError: module glob not found\nInstall using 'pip3 install glob'\n\n")
sys.exit(1)
try:
import collections
print("Module collections found")
except ImportError:
sys.stderr.write("\nError: module collection not found\nInstall using 'pip3 install Counter'\n\n")
sys.exit(1)
try:
import math
print("Module math found")
except ImportError:
sys.stderr.write("\nError: module math not found\nInstall using 'pip3 install math'\n\n")
sys.exit(1)
try:
import multiprocessing
print("Module multiprocessing found")
except ImportError:
sys.stderr.write("\nError: module multiprocessing not found\nInstall using 'pip3 install multiprocessing'\n\n")
sys.exit(1)
try:
import datetime
print("Module datetime found")
except ImportError:
sys.stderr.write("\nError: module datetime not found\nInstall using 'pip3 install datetime'\n\n")
sys.exit(1)
try:
import matplotlib
print("Module matplotlib found")
except ImportError:
sys.stderr.write("\nError: module matplotlib not found\nInstall using 'pip3 install matplotlib'\n\n")
sys.exit(1)
try:
import csv
print("Module csv found")
except ImportError:
sys.stderr.write("\nError: module csv not found\nInstall using 'pip3 install csv'\n\n")
sys.exit(1)
try:
import itertools
print("Module itertools found")
except ImportError:
sys.stderr.write("\nError: module itertools not found\nInstall using 'pip3 install itertools'\n\n")
sys.exit(1)
setup(
name='HTSeqQC',
version=1.0,
url='https://github.com/reneshbedre/HTSeqQC.git',
license='MIT',
author='Renesh Bedre',
author_email='reneshbe@gmail.com',
description='HTSeqQC: Quality control analysis of single and paired-end sequence data',
classifiers=[
'Intended Audience :: Developers'
'Intended Audience :: Education',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 3',
'Operating System :: POSIX :: Linux',
'Environment :: Console',
'Topic :: Scientific/Engineering :: Bioinformatics',
],
scripts=['ngsmodules/filter.py',
'ngsmodules/Filter_Single.py',
'ngsmodules/Filter_Pair.py',
'ngsmodules/StatisticSingle.py',
'ngsmodules/StatisticPair.py',
'ngsmodules/common_functions.py',
],
requires=['numpy', 'python', 'itertools', 'csv', 'matplotlib', 'datetime', 'multiprocessing', 'math',
'collections', 'glob', 'shutil', 'pysam', 'subprocess', 'termcolor'],
)