forked from pachterlab/sircel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
59 lines (46 loc) · 1.25 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
"""
"""
import shlex
import sys
import os
import json
from setuptools import setup, find_packages
params = {}
args = shlex.split(' '.join(sys.argv))
print(args)
if('--kallisto' in args):
index = args.index('--kallisto')
assert(index < len(args)), \
'--kallisto option requires a path'
kallisto_path = args[index + 1]
assert os.path.exists(kallisto_path), \
'kallisto path is invalid.\n%s' % kallisto_path
params['kallisto'] = kallisto_path
sys.argv.remove('--kallisto')
sys.argv.remove(kallisto_path)
else:
params['kallisto'] = 'kallisto'
"""
prepare params.json
"""
with open('./sircel/params.json', 'w') as writer:
writer.write(json.dumps(params, indent = 3))
setup(name='sircel',
version = '0.1.2',
packages = find_packages(),
install_requires = [
'numpy',
'scipy',
'python-Levenshtein',
'matplotlib',
'scikit-learn'],
package_data = {'': ['params.json']},
include_package_data = True,
entry_points = {
'console_scripts' : [
'sircel = sircel.__main__:main']},
description = 'Identify and error correct barcodes for single-cell genomics',
url = 'https://github.com/pachterlab/Sircel',
author = 'Akshay Tambe',
author_email = '[email protected]',
license = 'MIT',)