This repository was archived by the owner on Oct 6, 2021. It is now read-only.
forked from FunctionLab/selene
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
76 lines (67 loc) · 2.03 KB
/
setup.py
File metadata and controls
76 lines (67 loc) · 2.03 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
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
import os
import numpy as np
from setuptools import find_packages
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), "README.md"),
encoding='utf-8') as readme:
long_description = readme.read()
try:
from Cython.Distutils.extension import Extension
from Cython.Distutils import build_ext
except ImportError:
from setuptools.extension import Extension
USING_CYTHON = False
else:
USING_CYTHON = True
ext = '.pyx' if USING_CYTHON else '.c'
genome_module = Extension(
"selene_sdk.sequences._sequence",
["selene_sdk/sequences/_sequence" + ext],
include_dirs=[np.get_include()])
genomic_features_module = Extension(
"selene_sdk.targets._genomic_features",
["selene_sdk/targets/_genomic_features" + ext],
include_dirs=[np.get_include()])
ext_modules = [genome_module, genomic_features_module]
cmdclass = {'build_ext': build_ext} if USING_CYTHON else {}
setup(name="selene-sdk",
version="0.3.0",
long_description=long_description,
long_description_content_type='text/markdown',
description=("framework for developing sequence-level "
"deep learning networks"),
packages=find_packages(),
url="https://github.com/FunctionLab/selene",
package_data={
"selene_sdk.interpret": [
"data/gencode_v28_hg38/*",
"data/gencode_v28_hg19/*"
],
"selene_sdk.sequences": [
"data/*"
]
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Topic :: Scientific/Engineering :: Bio-Informatics"
],
ext_modules=ext_modules,
cmdclass=cmdclass,
install_requires=[
"cython>=0.27.3",
"h5py",
"matplotlib>=2.2.3",
"numpy",
"pandas",
"plotly",
"pyfaidx",
"pytabix",
"pyyaml==3.13",
"scikit-learn",
"scipy",
"seaborn",
"statsmodels",
"torch>=0.4.1",
"torchvision"
])