sclab 0.2.4__py3-none-any.whl → 0.2.5__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.
Potentially problematic release.
This version of sclab might be problematic. Click here for more details.
- sclab/__init__.py +1 -1
- sclab/_sclab.py +10 -3
- {sclab-0.2.4.dist-info → sclab-0.2.5.dist-info}/METADATA +2 -1
- {sclab-0.2.4.dist-info → sclab-0.2.5.dist-info}/RECORD +6 -6
- {sclab-0.2.4.dist-info → sclab-0.2.5.dist-info}/WHEEL +0 -0
- {sclab-0.2.4.dist-info → sclab-0.2.5.dist-info}/licenses/LICENSE +0 -0
sclab/__init__.py
CHANGED
sclab/_sclab.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import inspect
|
|
2
2
|
from io import BytesIO
|
|
3
3
|
from pathlib import Path
|
|
4
|
+
import tempfile
|
|
4
5
|
|
|
5
6
|
from anndata import AnnData
|
|
6
7
|
from IPython.display import display
|
|
@@ -256,14 +257,20 @@ class DataLoader(VBox):
|
|
|
256
257
|
|
|
257
258
|
match path.suffix:
|
|
258
259
|
case ".h5":
|
|
259
|
-
|
|
260
|
+
with tempfile.NamedTemporaryFile(suffix=".h5") as tmp:
|
|
261
|
+
tmp.write(contents.getbuffer())
|
|
262
|
+
tmp.flush()
|
|
263
|
+
adata = read_10x_h5(tmp.name)
|
|
260
264
|
case ".h5ad":
|
|
261
|
-
|
|
265
|
+
with tempfile.NamedTemporaryFile(suffix=".h5ad") as tmp:
|
|
266
|
+
tmp.write(contents.getbuffer())
|
|
267
|
+
tmp.flush()
|
|
268
|
+
adata = read_h5ad(tmp.name)
|
|
262
269
|
case _:
|
|
263
270
|
self.upload_info.clear_output()
|
|
264
271
|
with self.upload_info:
|
|
265
272
|
print(f"`{filename}` is not valid")
|
|
266
|
-
print("Please upload a 10x h5 or h5ad file")
|
|
273
|
+
print("Please upload a 10x .h5 or .h5ad file")
|
|
267
274
|
return
|
|
268
275
|
|
|
269
276
|
if var_names in adata.var:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sclab
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: sclab
|
|
5
5
|
Author-email: Argenis Arriojas <ArriojasMaldonado001@umb.edu>
|
|
6
6
|
Requires-Python: >=3.10,<3.13
|
|
@@ -15,6 +15,7 @@ Requires-Dist: anndata
|
|
|
15
15
|
Requires-Dist: anywidget
|
|
16
16
|
Requires-Dist: ipywidgets
|
|
17
17
|
Requires-Dist: itables
|
|
18
|
+
Requires-Dist: matplotlib
|
|
18
19
|
Requires-Dist: numpy<2.2
|
|
19
20
|
Requires-Dist: pandas
|
|
20
21
|
Requires-Dist: plotly<6.0
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
sclab/__init__.py,sha256=
|
|
1
|
+
sclab/__init__.py,sha256=wkce6wEC7pfIGHWjYbTJ0_ZAoXv1zRmeOrtEvuBUp8E,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=-ukFb0bWX5MPZsKnoXBJ9SvKyQpuTK4VUCzmWYnAVNM,9062
|
|
5
5
|
sclab/dataset/__init__.py,sha256=f9PoXIMAPnC3Var1ODr3mXkotW6u6NRPQvlgcWYXk54,143
|
|
6
6
|
sclab/dataset/_dataset.py,sha256=dJeiEfo-f6eM866-d53H6FUF9IR-OK4vwDojSq_og0Q,14248
|
|
7
7
|
sclab/dataset/_exceptions.py,sha256=g8RJL8PiRmD4--PkOs5CZth_qeaduvieMlKJNkrUIYA,45
|
|
@@ -39,7 +39,7 @@ sclab/scanpy/readwrite.py,sha256=yixHonShUZ2Ms3Sv3UXw_VXlY00XDApvmyN2mZWFAcs,370
|
|
|
39
39
|
sclab/scanpy/plotting/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
40
40
|
sclab/scanpy/plotting/_rcmod.py,sha256=pc53dasHh2RFfTHVTbTb8v1z8vW032zjvum-WQLgjXA,1970
|
|
41
41
|
sclab/scanpy/plotting/palettes.py,sha256=zHTM_CVfKazb32YreRx0-INllFssZP5rY_B7JTeaBhA,4782
|
|
42
|
-
sclab-0.2.
|
|
43
|
-
sclab-0.2.
|
|
44
|
-
sclab-0.2.
|
|
45
|
-
sclab-0.2.
|
|
42
|
+
sclab-0.2.5.dist-info/licenses/LICENSE,sha256=LO7qldZoHIo9hc-HMBqclBh5800kZ9US9xTbLAQdHpg,1523
|
|
43
|
+
sclab-0.2.5.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
44
|
+
sclab-0.2.5.dist-info/METADATA,sha256=q_ELS5JEz0AuZ9kaN0yHVFM2cHb4pUJ6iXbiMfJHom4,4299
|
|
45
|
+
sclab-0.2.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|