forked from ManuSetty/wishbone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
56 lines (46 loc) · 1.61 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
import os
import sys
import shutil
from subprocess import call
from setuptools import setup
from warnings import warn
if sys.version_info.major != 3:
raise RuntimeError('Wishbone requires Python 3')
# install phenograph
call(['pip3', 'install', 'git+https://github.com/jacoblevine/phenograph.git'])
setup(name='wishbone',
version='0.4.2',
description='Wishbone algorithm for identifying bifurcating trajectories from single-cell data',
author='Manu Setty',
author_email='manu.talanki@gmail.com',
package_dir={'': 'src'},
packages=['wishbone'],
install_requires=[
'numpy>=1.12.0',
'pandas>=0.19.2',
'scipy>=0.18.1',
'bhtsne',
'matplotlib>=1.5.1sn',
'seaborn>=0.7.1',
'sklearn',
'networkx>=1.11',
'fcsparser>=0.1.2',
'statsmodels>=0.8.0'],
scripts=['src/wishbone/wishbone_gui.py'],
)
# get location of setup.py
setup_dir = os.path.dirname(os.path.realpath(__file__))
# install GSEA, diffusion components
tools_dir = os.path.expanduser('~/.wishbone/tools')
if os.path.isdir(tools_dir):
shutil.rmtree(tools_dir)
shutil.copytree(setup_dir + '/tools/', tools_dir)
shutil.unpack_archive(tools_dir + '/mouse_gene_sets.tar.gz', tools_dir)
shutil.unpack_archive(tools_dir + '/human_gene_sets.tar.gz', tools_dir)
# Copy test data
data_dir = os.path.expanduser('~/.wishbone/data')
if os.path.isdir(data_dir):
shutil.rmtree(data_dir)
shutil.copytree(setup_dir + '/data/', data_dir)
# Create directory for GSEA reports
os.makedirs( os.path.expanduser('~/.wishbone/gsea/'), exist_ok=True )