-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
50 lines (42 loc) · 1.16 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
"""PEAK-QC a quality control tool for ATAC-seq data."""
from setuptools import setup
import re
import os
def find_version(f: str) -> str:
"""
Get package version from version file.
Parameters
----------
f : str
Path to version file.
Returns
-------
str
Version string.
Raises
------
RuntimeError
If version string is missing.
"""
version_file = open(f).read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
if version_match:
return version_match.group(1)
else:
raise RuntimeError("Unable to find version string.")
setup(
name="peakqc",
description='Module for quality control of ATAC-seq data',
version=find_version(os.path.join("peakqc", "_version.py")),
license='MIT',
packages=['peakqc'],
python_requires='>=3.9',
install_requires=["numpy",
"pandas",
"matplotlib",
"tqdm",
"beartype",
"matplotlib",
"scanpy>=1.9",
"pysam",
"scipy"])