Skip to content

Commit d956919

Browse files
committed
python setup installation added...
1 parent 7464b56 commit d956919

18 files changed

+103
-59
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
*.pyc
44
.~*
55
.cache
6+
*~
7+
dist
8+
*.egg-info
9+

scgv/__init__.py

Whitespace-only changes.

scgv/commands/executor.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
'''
66

77
import sys # @UnusedImport
8-
from commands import command
9-
from commands.command import Command
8+
from scgv.commands import command
9+
from scgv.commands.command import Command
1010
if sys.version_info[0] < 3:
1111
import Queue as queue # @UnusedImport @UnresolvedImport
1212
else:

scgv/commands/open.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
import threading
88
import traceback
99

10-
from models.model import DataModel
11-
from commands.executor import CommandExecutor
12-
from commands.command import Command
10+
from scgv.models.model import DataModel
11+
from scgv.commands.executor import CommandExecutor
12+
from scgv.commands.command import Command
1313

1414

1515
class SetModelCommand(Command):

scgv/commands/profiles.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
44
@author: lubo
55
'''
6-
from tkviews.tkimport import * # @UnusedWildImport
6+
from scgv.tkviews.tkimport import * # @UnusedWildImport
77

88

9-
from commands.command import Command
10-
from controllers.controller import SamplesController
11-
from tkviews.samples_window import SamplesWindow
9+
from scgv.commands.command import Command
10+
from scgv.controllers.controller import SamplesController
11+
from scgv.tkviews.samples_window import SamplesWindow
1212

1313

1414
class ShowProfilesCommand(Command):

scgv/commands/show.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
44
@author: lubo
55
'''
6-
from tkviews.tkimport import * # @UnusedWildImport
7-
from models.featuremat_model import FeaturematModel
8-
from controllers.controller import FeaturematController, SectorsController
9-
from models.subject import DataSubject, ProfilesSubject
10-
from tkviews.base_window import BaseHeatmapWindow
11-
from commands.executor import CommandExecutor
12-
from commands.command import Command
13-
from models.sector_model import SectorsDataModel
14-
from tkviews.sectors_window import SectorsWindow
6+
from scgv.tkviews.tkimport import * # @UnusedWildImport
7+
from scgv.models.featuremat_model import FeaturematModel
8+
from scgv.controllers.controller import FeaturematController, SectorsController
9+
from scgv.models.subject import DataSubject, ProfilesSubject
10+
from scgv.tkviews.base_window import BaseHeatmapWindow
11+
from scgv.commands.executor import CommandExecutor
12+
from scgv.commands.command import Command
13+
from scgv.models.sector_model import SectorsDataModel
14+
from scgv.tkviews.sectors_window import SectorsWindow
1515

1616

1717
class ShowFeaturesCommand(Command):

scgv/commands/widget.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
@author: lubo
55
'''
6-
from tkviews.tkimport import * # @UnusedWildImport
7-
from commands.command import Command
6+
from scgv.tkviews.tkimport import * # @UnusedWildImport
7+
from scgv.commands.command import Command
88

99

1010
class DisableCommand(Command):

scgv/models/subject.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@author: lubo
55
'''
66
import traceback
7-
from utils.observer import ProfilesObserver, DataObserver
7+
from scgv.utils.observer import ProfilesObserver, DataObserver
88

99

1010
class DataSubject(object):

scgv/tkmain.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
@author: lubo
55
'''
66
import matplotlib as mpl
7-
from models.subject import DataSubject, ProfilesSubject
8-
from commands.executor import CommandExecutor
7+
from scgv.models.subject import DataSubject, ProfilesSubject
8+
from scgv.commands.executor import CommandExecutor
99
mpl.use('TkAgg')
1010

1111
from tkviews.tkimport import * # @UnusedWildImport @NoMove @IgnorePep8

scgv/tkviews/base_window.py

+18-17
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,34 @@
33
44
@author: lubo
55
'''
6-
from tkviews.tkimport import * # @UnusedWildImport
6+
from scgv.tkviews.tkimport import * # @UnusedWildImport
77

8-
from tkviews.canvas_window import CanvasWindow
9-
from controllers.controller import SingleSectorController
8+
from scgv.tkviews.canvas_window import CanvasWindow
9+
from scgv.controllers.controller import SingleSectorController
1010

1111
import numpy as np
12-
from models.sector_model import SingleSectorDataModel
12+
from scgv.models.sector_model import SingleSectorDataModel
1313

1414
import matplotlib.pyplot as plt
1515
import matplotlib.colors as col
1616

17-
from views.clone import CloneViewer
18-
from views.heatmap import HeatmapViewer
19-
from views.sector import SectorViewer
20-
from views.gate import GateViewer
21-
from views.multiplier import MultiplierViewer
22-
from views.error import ErrorViewer
17+
from scgv.views.clone import CloneViewer
18+
from scgv.views.heatmap import HeatmapViewer
19+
from scgv.views.sector import SectorViewer
20+
from scgv.views.gate import GateViewer
21+
from scgv.views.multiplier import MultiplierViewer
22+
from scgv.views.error import ErrorViewer
2323
import traceback
24-
from views.dendrogram import DendrogramViewer
25-
from utils.observer import DataObserver, ProfilesObserver
26-
from models.subject import DataSubject, ProfilesSubject
27-
from commands.executor import CommandExecutor
28-
from commands.profiles import ShowProfilesCommand,\
24+
from scgv.views.dendrogram import DendrogramViewer
25+
from scgv.utils.observer import DataObserver, ProfilesObserver
26+
from scgv.models.subject import DataSubject, ProfilesSubject
27+
from scgv.commands.executor import CommandExecutor
28+
from scgv.commands.profiles import ShowProfilesCommand,\
2929
ClearProfilesCommand, AddProfilesCommand
30+
from scgv.utils.color_map import ColorMap
31+
from scgv.commands.command import Command
32+
3033
from PIL import ImageTk, Image
31-
from utils.color_map import ColorMap
32-
from commands.command import Command
3334

3435

3536
class AddProfileDialog(simpledialog.Dialog):

scgv/tkviews/main_window.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
'''
66
from tkviews.tkimport import * # @UnusedWildImport
77

8-
from commands.command import MacroCommand, Command
9-
from commands.executor import CommandExecutor
10-
from commands.show import ShowFeaturesCommand
11-
from commands.show import ShowSectorsReorderCommand
12-
from commands.widget import EnableCommand, DisableCommand
13-
from tkviews.base_window import BaseHeatmapWindow
14-
from utils.observer import DataObserver
15-
from commands.open import OpenCommand
16-
from models.subject import DataSubject
8+
from scgv.commands.command import MacroCommand, Command
9+
from scgv.commands.executor import CommandExecutor
10+
from scgv.commands.show import ShowFeaturesCommand
11+
from scgv.commands.show import ShowSectorsReorderCommand
12+
from scgv.commands.widget import EnableCommand, DisableCommand
13+
from scgv.tkviews.base_window import BaseHeatmapWindow
14+
from scgv.utils.observer import DataObserver
15+
from scgv.commands.open import OpenCommand
16+
from scgv.models.subject import DataSubject
1717

1818

1919
class FeaturesButton(DataObserver):

scgv/views/clone.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
@author: lubo
55
'''
6-
from views.base import ViewerBase
7-
from utils.color_map import ColorMap
6+
from scgv.views.base import ViewerBase
7+
from scgv.utils.color_map import ColorMap
88

99

1010
class CloneViewer(ViewerBase):

scgv/views/gate.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
44
@author: lubo
55
'''
6-
from views.base import ViewerBase
6+
from scgv.views.base import ViewerBase
77
# import matplotlib.pyplot as plt
8-
from utils.color_map import ColorMap
8+
from scgv.utils.color_map import ColorMap
99

1010

1111
class GateViewer(ViewerBase):

scgv/views/heatmap.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# import matplotlib.patches as patches
88

99
# from utils.color_map import ColorMap
10-
from views.base import ViewerBase
11-
from utils.color_map import ColorMap
10+
from scgv.views.base import ViewerBase
11+
from scgv.utils.color_map import ColorMap
1212

1313

1414
class HeatmapViewer(ViewerBase):

scgv/views/multiplier.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
@author: lubo
55
'''
66
# from matplotlib import cm
7-
from views.base import ViewerBase
7+
from scgv.views.base import ViewerBase
88
# import matplotlib.pyplot as plt
9-
from utils.color_map import ColorMap
9+
from scgv.utils.color_map import ColorMap
1010

1111

1212
class MultiplierViewer(ViewerBase):

scgv/views/sector.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
44
@author: lubo
55
'''
6-
from views.base import ViewerBase
7-
from utils.color_map import ColorMap
6+
from scgv.views.base import ViewerBase
7+
from scgv.utils.color_map import ColorMap
88

99

1010
class SectorViewer(ViewerBase):

setup.cfg

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[metadata]
2+
license_file = LICENSE
3+
4+
[bdist_wheel]
5+
universal=1

setup.py

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
import setuptools
3+
4+
with open("README.md", "r") as fh:
5+
long_description = fh.read()
6+
7+
setuptools.setup(
8+
name="scgv",
9+
version="1.0.1",
10+
author="Lubomir Chorbadjiev",
11+
author_email="[email protected]",
12+
description="SCGV is an interacive graphical tool for single-cell genomics data, with emphasis on single-cell genomics of cancer",
13+
long_description=long_description,
14+
long_description_content_type="text/markdown",
15+
url="https://github.com/KrasnitzLab/SCGV",
16+
packages=setuptools.find_packages(
17+
# 'scgv',
18+
exclude=['docs', 'tests']
19+
),
20+
# package_dir={'':'scgv'},
21+
entry_points={
22+
'console_scripts': [
23+
'scgview=scgv.tkmain:main',
24+
]
25+
},
26+
classifiers=(
27+
"Development Status :: 4 - Beta",
28+
"Programming Language :: Python :: 3.6",
29+
"License :: OSI Approved :: MIT License",
30+
"Operating System :: OS Independent",
31+
),
32+
python_requires='>=3.6',
33+
34+
)

0 commit comments

Comments
 (0)