-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsetup.py
79 lines (75 loc) · 3.15 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
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
from codecs import open
from pathlib import Path
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.rst"), encoding="utf-8") as f:
long_description = f.read()
extensions = [
Extension("pegasus.cylib.fast_utils", ["ext_modules/fast_utils.pyx"]),
Extension("pegasus.cylib.cfisher", ["ext_modules/cfisher.pyx"]),
Extension("pegasus.cylib.de_utils", ["ext_modules/diff_expr_utils.pyx"]),
]
setup(
name="pegasuspy",
use_scm_version=True,
description="Pegasus is a Python package for analyzing sc/snRNA-seq data of millions of cells",
long_description=long_description,
url="https://github.com/lilab-bcb/pegasus",
author="Yiming Yang, Joshua Gould and Bo Li",
author_email="[email protected]",
classifiers=[ # https://pypi.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 4 - Beta",
"Framework :: Jupyter",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Topic :: Software Development :: Build Tools",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
keywords="single cell/nucleus genomics analysis",
packages=find_packages(),
install_requires=[
l.strip() for l in Path("requirements.txt").read_text("utf-8").splitlines()
],
ext_modules=cythonize(extensions),
setup_requires=["Cython", "setuptools_scm"],
extras_require=dict(
tsne=["fitsne"],
louvain=["louvain"],
scanorama=["scanorama"],
torch=["torch", "harmony-pytorch", "nmf-torch"],
forceatlas=["forceatlas2-python"],
mkl=["mkl"],
rpy2=["rpy2"],
scvi=["scvi-tools"],
pseudobulk=["pydeseq2", "gseapy"],
all=["fitsne", "louvain", "scanorama", "torch", "harmony-pytorch", "nmf-torch", "rpy2", "forceatlas2-python", "scvi-tools", "pydeseq2", "gseapy"]
),
python_requires="~=3.8",
package_data={
"pegasus.annotate_cluster": [
"human_immune_cell_markers.json",
"human_brain_cell_markers.json",
"human_lung_cell_markers.json",
"mouse_immune_cell_markers.json",
"mouse_brain_cell_markers.json",
"mouse_liver_cell_markers.json",
"mouse_lung_cell_markers.json",
],
"pegasus.check_sample_indexes": ["chromium-shared-sample-indexes-plate.json", "Chromium-i7-Multiplex-Kit-N-Set-A-sample-indexes-plate.json"],
"pegasus": ["data_files/*.gmt"],
},
entry_points={"console_scripts": ["pegasus=pegasus.__main__:main"]},
)