forked from YosefLab/Cassiopeia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·113 lines (104 loc) · 3.11 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
#!/usr/bin/env python3.6
# -*- coding: utf-8 -*-
from setuptools import setup, Extension, Distribution, find_packages
from setuptools import find_packages
from Cython.Build import cythonize
from Cython.Distutils import build_ext
import numpy
with open("README.md") as readme_file:
readme = readme_file.read()
requirements = [
"Biopython>=1.71",
"bokeh>=0.12.15",
"cython>=0.29.2",
"ete3>=3.1.1",
"hits",
"itolapi",
"matplotlib>=2.2.2",
"nbconvert>=5.4.0",
"nbformat>=4.4.0",
"networkx>=2.5",
"ngs-tools>=1.5.6",
"numba>=0.51.0",
"numpy>=1.19.5",
"pandas>=1.1.4",
"plotly>=5.0.0",
"pysam>=0.14.1",
"pyseq-align>=1.0.2",
"PyYAML>=3.12",
"scipy>=1.2.0",
"typing-extensions>=3.7.4",
"tqdm>=4",
"cvxpy",
"parameterized",
]
author = "Matthew Jones, Alex Khodaverdian, Richard Zhang, Sebastian Prillo, Joseph Min"
cmdclass = {"build_ext": build_ext}
# files to wrap with cython
to_cythonize = [
Extension(
"cassiopeia.preprocess.collapse_cython",
["cassiopeia/preprocess/collapse_cython.pyx"],
),
Extension(
"cassiopeia.solver.ilp_solver_utilities",
["cassiopeia/solver/ilp_solver_utilities.pyx"],
include_dirs=[numpy.get_include()],
),
]
extension_modules_with_custom_compile_args = [
Extension(
"cassiopeia.tools.branch_length_estimator._iid_exponential_bayesian",
sources=[
"cassiopeia/tools/branch_length_estimator/_iid_exponential_bayesian.pyx",
"cassiopeia/tools/branch_length_estimator/_iid_exponential_bayesian_cpp.cpp",
],
extra_compile_args=[
"-std=c++17",
"-Wall",
"-Wextra",
"-pedantic",
"-O3",
],
language="c++",
),
]
setup(
name="cassiopeia-lineage",
python_requires=">=3.6",
ext_modules=cythonize(
to_cythonize, compiler_directives={"language_level": "3"}
)
+ extension_modules_with_custom_compile_args,
# ext_modules=to_cythonize,
setup_requires=["cython", "numpy"],
cmdclass=cmdclass,
entry_points={
"console_scripts": [
"cassiopeia-preprocess = cassiopeia.preprocess.cassiopeia_preprocess:main"
]
},
author_email="[email protected]",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Topic :: Scientific/Engineering :: Bio-Informatics",
],
long_description=readme + "\n\n",
description="Single Cell Lineage Reconstruction with Cas9-Enabled Lineage Recorders",
install_requires=requirements,
license="MIT license",
include_package_data=True,
packages=find_packages(),
keywords="scLT",
url="https://github.com/YosefLab/Cassiopeia",
version="2.0.0",
zip_safe=False,
test_suite="nose.collector",
tests_require=["nose"],
)