scdataloader 1.0.5__py3-none-any.whl → 1.0.6__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.
- scdataloader/utils.py +6 -3
- {scdataloader-1.0.5.dist-info → scdataloader-1.0.6.dist-info}/METADATA +31 -3
- {scdataloader-1.0.5.dist-info → scdataloader-1.0.6.dist-info}/RECORD +6 -6
- {scdataloader-1.0.5.dist-info → scdataloader-1.0.6.dist-info}/LICENSE +0 -0
- {scdataloader-1.0.5.dist-info → scdataloader-1.0.6.dist-info}/WHEEL +0 -0
- {scdataloader-1.0.5.dist-info → scdataloader-1.0.6.dist-info}/entry_points.txt +0 -0
scdataloader/utils.py
CHANGED
|
@@ -433,7 +433,7 @@ def populate_my_ontology(
|
|
|
433
433
|
names = bt.Phenotype.public().df().index if not sex else sex
|
|
434
434
|
records = [
|
|
435
435
|
bt.Phenotype.from_source(
|
|
436
|
-
ontology_id=i,
|
|
436
|
+
ontology_id=i, source=bt.PublicSource.filter(name="pato").first()
|
|
437
437
|
)
|
|
438
438
|
for i in names
|
|
439
439
|
]
|
|
@@ -472,9 +472,12 @@ def populate_my_ontology(
|
|
|
472
472
|
|
|
473
473
|
names = bt.DevelopmentalStage.public(organism="mouse").df().index
|
|
474
474
|
records = [
|
|
475
|
-
bt.DevelopmentalStage.from_source(
|
|
475
|
+
bt.DevelopmentalStage.from_source(
|
|
476
|
+
ontology_id=i,
|
|
477
|
+
source=bt.PublicSource.filter(organism="mouse", name="mmusdv").first(),
|
|
478
|
+
)
|
|
479
|
+
for i in names.tolist()
|
|
476
480
|
]
|
|
477
|
-
records[-4] = records[-4][0]
|
|
478
481
|
ln.save(records)
|
|
479
482
|
# Disease
|
|
480
483
|
if diseases is not None:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: scdataloader
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.6
|
|
4
4
|
Summary: a dataloader for single cell data in lamindb
|
|
5
5
|
Home-page: https://github.com/jkobject/scDataLoader
|
|
6
6
|
License: GPL3
|
|
@@ -82,13 +82,41 @@ I needed to create this Data Loader for my PhD project. I am using it to load &
|
|
|
82
82
|
|
|
83
83
|
```bash
|
|
84
84
|
pip install scdataloader
|
|
85
|
+
# or
|
|
86
|
+
pip install scDataLoader[dev] # for dev dependencies
|
|
87
|
+
|
|
88
|
+
lamin login <email> --key <API-key>
|
|
89
|
+
lamin init --storage [folder-name-where-lamin-data-will-be-stored] --schema bionty
|
|
85
90
|
```
|
|
86
91
|
|
|
87
|
-
|
|
92
|
+
if you start with lamin and had to do a `lamin init`, you will also need to populate your ontologies. This is because scPRINT is using ontologies to define its cell types, diseases, sexes, ethnicities, etc.
|
|
93
|
+
|
|
94
|
+
you can do it manually or with our function:
|
|
95
|
+
|
|
96
|
+
```python
|
|
97
|
+
from scdataloader.utils import populate_my_ontology
|
|
98
|
+
|
|
99
|
+
populate_my_ontology() #to populate everything (recommended) (can take 2-10mns)
|
|
100
|
+
|
|
101
|
+
populate_my_ontology( #the minimum for scprint to run some inferences (denoising, grn inference)
|
|
102
|
+
organisms: List[str] = ["NCBITaxon:10090", "NCBITaxon:9606"],
|
|
103
|
+
sex: List[str] = ["PATO:0000384", "PATO:0000383"],
|
|
104
|
+
celltypes = None,
|
|
105
|
+
ethnicities = None,
|
|
106
|
+
assays = None,
|
|
107
|
+
tissues = None,
|
|
108
|
+
diseases = None,
|
|
109
|
+
dev_stages = None,
|
|
110
|
+
)
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Dev install
|
|
114
|
+
|
|
115
|
+
If you want to use the latest version of scDataLoader and work on the code yourself use `git clone` and `pip -e` instead of `pip install`.
|
|
88
116
|
|
|
89
117
|
```bash
|
|
90
118
|
git clone https://github.com/jkobject/scDataLoader.git
|
|
91
|
-
pip install -e scDataLoader
|
|
119
|
+
pip install -e scDataLoader[dev]
|
|
92
120
|
```
|
|
93
121
|
|
|
94
122
|
## Usage
|
|
@@ -8,9 +8,9 @@ scdataloader/data.py,sha256=3a9jUhREIzbxC797COGNSn6QqbRiiC30FzxXCoYsTNo,13773
|
|
|
8
8
|
scdataloader/datamodule.py,sha256=JZq8g274ce3ARW59qwg5GKAt2SzOTaMPGh3CySGQS70,16893
|
|
9
9
|
scdataloader/mapped.py,sha256=s_Fg-lwaXjHFyQcKnp9El2IceMoaEajynyUgOnpVnXQ,20750
|
|
10
10
|
scdataloader/preprocess.py,sha256=9dgsq7c5jD2l-CUGfwC2uG98MCIgnrYFkqknqAyu5dU,28841
|
|
11
|
-
scdataloader/utils.py,sha256=
|
|
12
|
-
scdataloader-1.0.
|
|
13
|
-
scdataloader-1.0.
|
|
14
|
-
scdataloader-1.0.
|
|
15
|
-
scdataloader-1.0.
|
|
16
|
-
scdataloader-1.0.
|
|
11
|
+
scdataloader/utils.py,sha256=8YIVpqJzNKkIIpAS5p01gyt57X2CrfaMEsC1EJs-q_A,21451
|
|
12
|
+
scdataloader-1.0.6.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
13
|
+
scdataloader-1.0.6.dist-info/METADATA,sha256=LhqbssiiI5Y-GZeYk1nXnHFNo2SNhuc6W9LwlIX_OCo,43336
|
|
14
|
+
scdataloader-1.0.6.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
15
|
+
scdataloader-1.0.6.dist-info/entry_points.txt,sha256=nLqucZaa5wiF7-1FCgMXO916WDQ9Qm0TcxQp0f1DwE4,59
|
|
16
|
+
scdataloader-1.0.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|