-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
95 lines (87 loc) · 3.67 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
"""
Circe: Predict cis-Regulatory DNA Interactions from Single-Cell ATAC-seq Data
O - - - - - ⊙ O - - - - - O
O - - - - ⊙ * *0 - - - - o
O - - o ** * O - - o
O ** * O
o - - O ** * o - - O
o - - - - O ** * o - - - - O
o - - - - - O ▄▄** ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄▄* o - - - - - O
O - - - - - O █ ** █ █ █ █ █ O - - - - - O
O - - - - - ⊙* █ ** █ █▀▀▄ █ █▀▀▀ O - - - - - o
O - - - - o * ▀▄▄▄ **▄█▄ █ █ ▀▄▄▄ █▄▄▄ *0 - - - - o
O - - o * ** * O - - o
O * ** * O
o - - O * ** Predict * o - - O
o - - - - O * ** cis-Regulatory * o - - - - O
o - - - - - ⊙* ** DNA * o - - - - - O
O - - - - - o ** interactions * O - - - - - o
O - - - - - ⊙* *0 - - - - - O
About:
-------
Circe is a Python package designed to build co-accessibility networks from single-cell ATAC-seq data.
It implements the Cicero algorithm (Pliner et al., 2018) to predict cis-regulatory DNA interactions.
Author:
-------
Rémi Trimbour - [email protected]
"""
# setup.py
from setuptools import setup, Extension, find_packages
from setuptools.command.build_ext import build_ext
import numpy
import platform
from Cython.Build import cythonize
import sys
class BuildExt(build_ext):
def build_extensions(self):
compiler_type = self.compiler.compiler_type
for ext in self.extensions:
if platform.system() == "Darwin":
ext.extra_compile_args = ["-I/System/Library/Frameworks/vecLib.framework/Headers"]
if "ppc" in platform.machine():
ext.extra_compile_args.append("-faltivec")
ext.extra_link_args = ["-Wl,-framework", "-Wl,Accelerate"]
else:
ext.include_dirs.append("/usr/local/include")
ext.extra_compile_args += ["-msse2", "-O2", "-fPIC", "-w"]
ext.extra_link_args += ["-llapack"]
build_ext.build_extensions(self)
extensions = [
Extension(
"circe.pyquic",
sources=["pyquic_ext/QUIC.C", "pyquic_ext/pyquic.pyx"],
include_dirs=[numpy.get_include(), "pyquic_ext"],
libraries=['lapack', 'blas'],
language="c++",
),
]
setup(
name='circe-py',
version='0.3.4',
description='Circe: Package for building co-accessibility networks from ATAC-seq data.',
long_description="None",
author='Remi-Trimbour',
author_email='[email protected]',
maintainer='Remi-Trimbour',
maintainer_email='[email protected]',
url='https://github.com/cantinilab/circe',
packages=find_packages(),
package_data={'': ['*']},
python_requires='>=3.8,<4.0',
ext_modules=cythonize(extensions, language_level=3),
cmdclass={'build_ext': BuildExt},
include_dirs=[numpy.get_include()],
options={'bdist_wheel':{'universal':True}},
install_requires=[
'Cython',
'numpy<2.0.0',
'pandas>=2.1.1',
'scikit-learn>=1.3.1',
'joblib>=1.1.0',
'scanpy>=1.8.1',
'rich>=10.12.0',
],
classifiers=[
# Add appropriate classifiers
],
)