Skip to content

Commit e60b38b

Browse files
committed
clean API
1 parent 222b2e3 commit e60b38b

22 files changed

Lines changed: 348 additions & 5014 deletions

src/pySingleCellNet/__init__.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
"""PySingleCellNet"""
2-
3-
from .config import SCN_CATEGORY_COLOR_DICT
1+
"""PySingleCellNet"""
2+
3+
from .config import SCN_CATEGORY_COLOR_DICT
44
from .config import SCN_DIFFEXP_KEY
55
from . import plotting as pl
66
from . import utils as ut
77
from . import tools as tl
8-
from . import string_io as st
9-
10-
# Public API
8+
9+
# Public API
1110
__all__ = [
1211
"__version__",
1312
"pl",
1413
"ut",
1514
"tl",
16-
"st",
1715
]
18-
19-
16+
17+

src/pySingleCellNet/config.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,17 @@
1-
from palettable.cartocolors.qualitative import Safe_6
2-
# from palettable.tableau import GreenOrange_6
3-
from palettable.tableau import GreenOrange_12
41
from palettable.tableau import Tableau_20
52

63

74
# Annotation constants
85

96
# Colormaps
107

11-
# see https://jiffyclub.github.io/palettable/tableau/#greenorange_12
12-
tmp_color_list = GreenOrange_12.mpl_colors
8+
# Color list for SCN categories (using Tableau_20 palette)
139
tmp_color_list = Tableau_20.mpl_colors
1410

15-
# SCN_CATEGORY_NAMES = ["Rand", "None", "Singular", "Parent.Child", "Sibling", "Hybrid"]
16-
# SCN_CATEGORY_NAMES = ["Singular", "Intermediate", "Hybrid", "None", "Rand"]
17-
# indices = [0, 1, 3, 15, 14]
1811
SCN_CATEGORY_NAMES = ["Rand", "None", "Hybrid", "Intermediate", "Singular"]
1912
indices = [14, 15, 3, 1, 0]
2013

2114
selected_colors = [tmp_color_list[i] for i in indices]
22-
### SCN_CATEGORY_COLOR_DICT = dict(zip(SCN_CATEGORY_NAMES, tmp_color_list))
2315
SCN_CATEGORY_COLOR_DICT = dict(zip(SCN_CATEGORY_NAMES, selected_colors))
2416
del(tmp_color_list)
2517
del(selected_colors)

0 commit comments

Comments
 (0)