sclab 0.3.1__py3-none-any.whl → 0.3.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sclab/__init__.py +1 -1
- sclab/_sclab.py +2 -1
- sclab/dataset/processor/_results_panel.py +26 -12
- sclab/examples/processor_steps/_differential_expression.py +2 -1
- {sclab-0.3.1.dist-info → sclab-0.3.2.dist-info}/METADATA +1 -1
- {sclab-0.3.1.dist-info → sclab-0.3.2.dist-info}/RECORD +8 -8
- {sclab-0.3.1.dist-info → sclab-0.3.2.dist-info}/WHEEL +0 -0
- {sclab-0.3.1.dist-info → sclab-0.3.2.dist-info}/licenses/LICENSE +0 -0
sclab/__init__.py
CHANGED
sclab/_sclab.py
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import inspect
|
|
2
2
|
from io import BytesIO
|
|
3
3
|
from pathlib import Path
|
|
4
|
-
import tempfile
|
|
5
4
|
|
|
6
5
|
from anndata import AnnData
|
|
7
6
|
from IPython.display import display
|
|
@@ -238,6 +237,8 @@ class DataLoader(VBox):
|
|
|
238
237
|
self.adata = adata
|
|
239
238
|
|
|
240
239
|
def on_upload(self, *args, **kwargs):
|
|
240
|
+
import tempfile
|
|
241
|
+
|
|
241
242
|
from .scanpy.readwrite import read_10x_h5, read_h5ad
|
|
242
243
|
|
|
243
244
|
files = self.upload.value
|
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
from ipywidgets import
|
|
1
|
+
from ipywidgets import Box, Dropdown, Layout, Stack, VBox, link
|
|
2
2
|
|
|
3
3
|
from sclab.event import EventBroker, EventClient
|
|
4
4
|
|
|
5
|
+
# Create a layout with a bottom border to act as the horizontal line
|
|
6
|
+
hr_layout = Layout(
|
|
7
|
+
border="1px solid black", # 1px width, solid style, black color
|
|
8
|
+
margin="10px 0", # Add margin for spacing above and below
|
|
9
|
+
width="100%", # Extend the line across the full width
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
# Create a Box widget with the styled layout
|
|
13
|
+
hr = Box(layout=hr_layout)
|
|
14
|
+
|
|
5
15
|
|
|
6
16
|
class _Results:
|
|
7
17
|
namespace: str
|
|
8
18
|
|
|
9
19
|
|
|
10
|
-
class ResultsPanel(
|
|
11
|
-
available_results:
|
|
20
|
+
class ResultsPanel(VBox, EventClient):
|
|
21
|
+
available_results: Dropdown
|
|
12
22
|
results_stack: Stack
|
|
13
23
|
|
|
14
24
|
events: list[str] = [
|
|
@@ -22,7 +32,7 @@ class ResultsPanel(GridBox, EventClient):
|
|
|
22
32
|
):
|
|
23
33
|
EventClient.__init__(self, broker)
|
|
24
34
|
|
|
25
|
-
self.available_results =
|
|
35
|
+
self.available_results = Dropdown(options={}, description="Category")
|
|
26
36
|
self.results_stack = Stack([])
|
|
27
37
|
|
|
28
38
|
link(
|
|
@@ -30,15 +40,19 @@ class ResultsPanel(GridBox, EventClient):
|
|
|
30
40
|
(self.results_stack, "selected_index"),
|
|
31
41
|
)
|
|
32
42
|
|
|
33
|
-
|
|
43
|
+
VBox.__init__(
|
|
34
44
|
self,
|
|
35
|
-
[
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
45
|
+
[
|
|
46
|
+
self.available_results,
|
|
47
|
+
hr,
|
|
48
|
+
self.results_stack,
|
|
49
|
+
],
|
|
50
|
+
# layout=Layout(
|
|
51
|
+
# width="100%",
|
|
52
|
+
# grid_template_columns="150px auto",
|
|
53
|
+
# grid_template_areas=""" "available-results selected-results_stack" """,
|
|
54
|
+
# border="0px solid black",
|
|
55
|
+
# ),
|
|
42
56
|
)
|
|
43
57
|
|
|
44
58
|
def add_result(self, results: _Results):
|
|
@@ -25,7 +25,7 @@ class DifferentialExpressionResults(VBox):
|
|
|
25
25
|
|
|
26
26
|
def __init__(self, dataset: SCLabDataset):
|
|
27
27
|
self.dataset = dataset
|
|
28
|
-
self.result_selector = Dropdown()
|
|
28
|
+
self.result_selector = Dropdown(description="Analysis Name")
|
|
29
29
|
self.group_selector = ToggleButtons()
|
|
30
30
|
self.table_output = Output()
|
|
31
31
|
|
|
@@ -198,6 +198,7 @@ class DifferentialExpression(ProcessorStepBase):
|
|
|
198
198
|
reference=reference,
|
|
199
199
|
layer=layer,
|
|
200
200
|
key_added=key_added,
|
|
201
|
+
pts=True,
|
|
201
202
|
)
|
|
202
203
|
|
|
203
204
|
self.results.sync_results_list(focus_result=key_added)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
sclab/__init__.py,sha256=
|
|
1
|
+
sclab/__init__.py,sha256=3ni3MpADkty43xRMRFsxvB_jIrmOjxyMKFGhHsYx8Ho,132
|
|
2
2
|
sclab/_io.py,sha256=5ISxIPbE233UiOt3QEs9fkLO8DLLEe5HrMnZoR-KLYE,2662
|
|
3
3
|
sclab/_methods_registry.py,sha256=RcffyRuuLzHqsnAdbBL4W1GmZx80d9AxdGjUnx1mbNg,1704
|
|
4
|
-
sclab/_sclab.py,sha256=
|
|
4
|
+
sclab/_sclab.py,sha256=m9y2EgDxFO5JHZAZIK1098bHdrZxaeWfBZNyGQkFCdA,9143
|
|
5
5
|
sclab/dataset/__init__.py,sha256=f9PoXIMAPnC3Var1ODr3mXkotW6u6NRPQvlgcWYXk54,143
|
|
6
6
|
sclab/dataset/_dataset.py,sha256=wsbWnBHnlGJ779RV1Vv7RfxlEzHCfUZKNT3FTI1mu9g,14248
|
|
7
7
|
sclab/dataset/_exceptions.py,sha256=g8RJL8PiRmD4--PkOs5CZth_qeaduvieMlKJNkrUIYA,45
|
|
@@ -11,7 +11,7 @@ sclab/dataset/plotter/_plotter.py,sha256=EXwk6KSM7FOyLLJ8HCgIB_2m730t0kHsVKWfQOx
|
|
|
11
11
|
sclab/dataset/plotter/_utils.py,sha256=ANm_R9PJd33-QJtZzqXCN5pJ_XrJ7AA4AvSHaDRbOMA,11595
|
|
12
12
|
sclab/dataset/processor/__init__.py,sha256=v8Qbusb6h8oSndv9q-12vzHrz5BDF3N2LCkQG9KC19I,104
|
|
13
13
|
sclab/dataset/processor/_processor.py,sha256=ink2eqi7hMt4DunHD4U1KqkKNQd23yJiDOgsmgZTsb8,41684
|
|
14
|
-
sclab/dataset/processor/_results_panel.py,sha256=
|
|
14
|
+
sclab/dataset/processor/_results_panel.py,sha256=fUxACVLCeoo5Y1EnRG7KaGFK7P2_kM_iLVGe_zzrEwQ,2782
|
|
15
15
|
sclab/dataset/processor/step/__init__.py,sha256=j8j4oU9NMdWHn6kVjft7Klm6xme8M6wzebxJj_zNehg,179
|
|
16
16
|
sclab/dataset/processor/step/_basic_processor_step.py,sha256=7NKC4W-I_EU3QBPi5BL9-NwAF_h6_oWl1l_kEk6gSAg,3640
|
|
17
17
|
sclab/dataset/processor/step/_processor_step_base.py,sha256=DpbL4F53W1YPI_xHuQ0T3gcvDGwwKG2Xp-n8DkMUf90,4133
|
|
@@ -22,7 +22,7 @@ sclab/event/_utils.py,sha256=LehiFhn7dopNEaTFERJhs6fiVgXCBvseRxWTSWc6u-k,456
|
|
|
22
22
|
sclab/examples/__init__.py,sha256=uSu4DMfF2K7xlZbLC_CmANyS3D56khGLMSVt6x9XXiI,68
|
|
23
23
|
sclab/examples/processor_steps/__init__.py,sha256=_b9nLeZhyVex17lk8Vvy44eXbvKhygrPOZXpaM1jfSo,575
|
|
24
24
|
sclab/examples/processor_steps/_cluster.py,sha256=olbri3HWPBU8p__r9kP9tgWaJoUJ2bK48pmHfdvf11c,1120
|
|
25
|
-
sclab/examples/processor_steps/_differential_expression.py,sha256=
|
|
25
|
+
sclab/examples/processor_steps/_differential_expression.py,sha256=bIR334XDWWkfL7EHgysFsx6PCwdvMuh23J-jnUuptJA,11617
|
|
26
26
|
sclab/examples/processor_steps/_doublet_detection.py,sha256=eFQtRsdvBWJ_v3HH08v-KbjYius-fj1pg1HBm0mjADg,2114
|
|
27
27
|
sclab/examples/processor_steps/_gene_expression.py,sha256=io_U53TQ3bpclGZ7xjuQHws4Lei5_nMpWTKbvD2zqs0,4216
|
|
28
28
|
sclab/examples/processor_steps/_integration.py,sha256=40nIM19VnBALMQXYO9XpYczH7gEcpIUb-DLdYraxzxs,3444
|
|
@@ -76,7 +76,7 @@ sclab/tools/labeling/__init__.py,sha256=o-FJWonGNr2h_pB0o3YfnGl_y1kKU06_rYLmTt8k
|
|
|
76
76
|
sclab/tools/labeling/sctype.py,sha256=jCsCFnqUgb_s1nTSK-N_5pEL_ZvZw-zUo12fUy9RLfs,8164
|
|
77
77
|
sclab/utils/__init__.py,sha256=Py3dPN9ptMs6D-f7IGYisoxOS2YuX0O1oyw75nci3Os,72
|
|
78
78
|
sclab/utils/_write_excel.py,sha256=DBZg9Kx7Ex6VqFrZFDZbSgvzMtu84iEwKo4nI3I2AT0,17017
|
|
79
|
-
sclab-0.3.
|
|
80
|
-
sclab-0.3.
|
|
81
|
-
sclab-0.3.
|
|
82
|
-
sclab-0.3.
|
|
79
|
+
sclab-0.3.2.dist-info/licenses/LICENSE,sha256=LO7qldZoHIo9hc-HMBqclBh5800kZ9US9xTbLAQdHpg,1523
|
|
80
|
+
sclab-0.3.2.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
81
|
+
sclab-0.3.2.dist-info/METADATA,sha256=YOX9WvDuWL1ew3JOIaAwY6MvpCHCEHxOdTc6dTCp9jM,4437
|
|
82
|
+
sclab-0.3.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|