-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
executable file
·57 lines (51 loc) · 1.64 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
import os
import sys
from setuptools import setup, find_packages
from subprocess import check_output
def req_file(filename):
"""
We're using a requirements.txt file so that pyup.io can use this for security checks
"""
with open(filename) as f:
content = f.readlines()
content = filter(lambda x: not x.startswith("#"), content)
return [x.strip() for x in content]
def most_recent_tag():
"""
Get the most recent tag for the repo.
"""
return (
check_output(["git", "describe", "--tags"])
.decode("utf-8")
.strip()
.split("-")
.pop(0)
)
setup(
name="MiMSI",
version="v0.4.4",
description="A deep, multiple instance learning based classifier for identifying Microsatellite Instability from NGS",
url="https://github.com/mskcc/mimsi",
author="John Ziegler",
author_email="[email protected]",
license="GNU General Public License v3.0",
install_requires=req_file("requirements.txt"),
classifiers=[
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Programming Language :: Python :: 2.7",
],
packages=find_packages(exclude=["tests*"]),
py_modules=["analyze"],
python_requires=">=2.7",
package_data={"model": ["*.model"]},
include_package_data=True,
entry_points={
"console_scripts": [
"analyze = analyze:main",
"create_data = data.generate_vectors.create_data:main",
"visualize_instance = data.visualize_instance:main",
"evaluate_sample = main.evaluate_sample:main",
"mi_msi_train_test = main.mi_msi_train_test:main",
]
},
)