Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -1,27 +1,115 @@
|
|
1 |
---
|
2 |
-
license: cc-by-4.0
|
3 |
library_name: scvi-tools
|
|
|
4 |
tags:
|
5 |
- biology
|
6 |
- genomics
|
7 |
- single-cell
|
8 |
- model_cls_name:SCANVI
|
9 |
-
- scvi_version:1.
|
10 |
-
- anndata_version:0.
|
11 |
- modality:rna
|
12 |
-
- tissue:
|
13 |
- annotated:True
|
14 |
---
|
15 |
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
Tabula Sapiens is a benchmark, first-draft human cell atlas of nearly 500,000 cells from 24 organs of 15 normal human subjects.
|
19 |
|
20 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
-
|
|
|
23 |
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
```json
|
26 |
{
|
27 |
"n_hidden": 128,
|
@@ -38,7 +126,12 @@ Many model properties are in the model tags. Some more are listed below.
|
|
38 |
}
|
39 |
```
|
40 |
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
42 |
```json
|
43 |
{
|
44 |
"labels_key": "cell_ontology_class",
|
@@ -47,11 +140,34 @@ Many model properties are in the model tags. Some more are listed below.
|
|
47 |
"batch_key": "donor_assay",
|
48 |
"size_factor_key": null,
|
49 |
"categorical_covariate_keys": null,
|
50 |
-
"continuous_covariate_keys": null
|
|
|
51 |
}
|
52 |
```
|
53 |
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
| Summary Stat Key | Value |
|
56 |
|--------------------------|-------|
|
57 |
| n_batch | 2 |
|
@@ -61,40 +177,27 @@ Many model properties are in the model tags. Some more are listed below.
|
|
61 |
| n_labels | 14 |
|
62 |
| n_latent_qzm | 20 |
|
63 |
| n_latent_qzv | 20 |
|
64 |
-
| n_vars |
|
65 |
-
|
66 |
-
**model_data_registry**:
|
67 |
-
| Registry Key | scvi-tools Location |
|
68 |
-
|-------------------|----------------------------------------|
|
69 |
-
| X | adata.X |
|
70 |
-
| batch | adata.obs['_scvi_batch'] |
|
71 |
-
| labels | adata.obs['_scvi_labels'] |
|
72 |
-
| latent_qzm | adata.obsm['_scanvi_latent_qzm'] |
|
73 |
-
| latent_qzv | adata.obsm['_scanvi_latent_qzv'] |
|
74 |
-
| minify_type | adata.uns['_scvi_adata_minify_type'] |
|
75 |
-
| observed_lib_size | adata.obs['_scanvi_observed_lib_size'] |
|
76 |
-
|
77 |
-
**model_parent_module**: scvi.model
|
78 |
|
79 |
-
|
80 |
|
81 |
-
# Training data
|
82 |
|
83 |
-
|
84 |
-
|
85 |
|
86 |
<!-- If your model is not uploaded with any data (e.g., minified data) on the Model Hub, then make
|
87 |
-
sure to provide this field if you want users to be able to access your training data. See the
|
88 |
-
documentation for details. -->
|
|
|
89 |
|
90 |
-
|
|
|
91 |
|
92 |
-
|
93 |
|
94 |
-
|
95 |
|
96 |
-
Training code url: N/A
|
97 |
|
98 |
# References
|
99 |
|
100 |
-
The Tabula Sapiens Consortium. The Tabula Sapiens: A multiple-organ, single-cell transcriptomic atlas of humans. Science, May 2022. doi:10.1126/science.abl4896
|
|
|
1 |
---
|
|
|
2 |
library_name: scvi-tools
|
3 |
+
license: cc-by-4.0
|
4 |
tags:
|
5 |
- biology
|
6 |
- genomics
|
7 |
- single-cell
|
8 |
- model_cls_name:SCANVI
|
9 |
+
- scvi_version:1.2.0
|
10 |
+
- anndata_version:0.11.1
|
11 |
- modality:rna
|
12 |
+
- tissue:various
|
13 |
- annotated:True
|
14 |
---
|
15 |
|
16 |
+
|
17 |
+
ScANVI is a variational inference model for single-cell RNA-seq data that can learn an underlying
|
18 |
+
latent space, integrate technical batches and impute dropouts.
|
19 |
+
In addition, to scVI, ScANVI is a semi-supervised model that can leverage labeled data to learn a
|
20 |
+
cell-type classifier in the latent space and afterward predict cell types of new data.
|
21 |
+
The learned low-dimensional latent representation of the data can be used for visualization and
|
22 |
+
clustering.
|
23 |
+
|
24 |
+
scANVI takes as input a scRNA-seq gene expression matrix with cells and genes as well as a
|
25 |
+
cell-type annotation for a subset of cells.
|
26 |
+
We provide an extensive [user guide](https://docs.scvi-tools.org/en/1.2.0/user_guide/models/scanvi.html).
|
27 |
+
|
28 |
+
- See our original manuscript for further details of the model:
|
29 |
+
[scANVI manuscript](https://www.embopress.org/doi/full/10.15252/msb.20209620).
|
30 |
+
- See our manuscript on [scvi-hub](https://www.biorxiv.org/content/10.1101/2024.03.01.582887v2)
|
31 |
+
how to leverage pre-trained models.
|
32 |
+
|
33 |
+
This model can be used for fine tuning on new data using our Arches framework:
|
34 |
+
[Arches tutorial](https://docs.scvi-tools.org/en/1.0.0/tutorials/notebooks/scarches_scvi_tools.html).
|
35 |
+
|
36 |
+
|
37 |
+
# Model Description
|
38 |
|
39 |
Tabula Sapiens is a benchmark, first-draft human cell atlas of nearly 500,000 cells from 24 organs of 15 normal human subjects.
|
40 |
|
41 |
+
# Metrics
|
42 |
+
|
43 |
+
We provide here key performance metrics for the uploaded model, if provided by the data uploader.
|
44 |
+
|
45 |
+
<details>
|
46 |
+
<summary><strong>Coefficient of variation</strong></summary>
|
47 |
+
|
48 |
+
The cell-wise coefficient of variation summarizes how well variation between different cells is
|
49 |
+
preserved by the generated model expression. Below a squared Pearson correlation coefficient of 0.4
|
50 |
+
, we would recommend not to use generated data for downstream analysis, while the generated latent
|
51 |
+
space might still be useful for analysis.
|
52 |
+
|
53 |
+
**Cell-wise Coefficient of Variation**:
|
54 |
+
|
55 |
+
| Metric | Training Value | Validation Value |
|
56 |
+
|-------------------------|----------------|------------------|
|
57 |
+
| Mean Absolute Error | 1.87 | 1.95 |
|
58 |
+
| Pearson Correlation | 0.90 | 0.90 |
|
59 |
+
| Spearman Correlation | 0.88 | 0.88 |
|
60 |
+
| R² (R-Squared) | 0.78 | 0.78 |
|
61 |
+
|
62 |
+
The gene-wise coefficient of variation summarizes how well variation between different genes is
|
63 |
+
preserved by the generated model expression. This value is usually quite high.
|
64 |
+
|
65 |
+
**Gene-wise Coefficient of Variation**:
|
66 |
+
|
67 |
+
| Metric | Training Value |
|
68 |
+
|-------------------------|----------------|
|
69 |
+
| Mean Absolute Error | 16.76 |
|
70 |
+
| Pearson Correlation | 0.68 |
|
71 |
+
| Spearman Correlation | 0.70 |
|
72 |
+
| R² (R-Squared) | -1.26 |
|
73 |
+
|
74 |
+
</details>
|
75 |
|
76 |
+
<details>
|
77 |
+
<summary><strong>Differential expression metric</strong></summary>
|
78 |
|
79 |
+
The differential expression metric provides a summary of the differential expression analysis
|
80 |
+
between cell types or input clusters. We provide here the F1-score, Pearson Correlation
|
81 |
+
Coefficient of Log-Foldchanges, Spearman Correlation Coefficient, and Area Under the Precision
|
82 |
+
Recall Curve (AUPRC) for the differential expression analysis using Wilcoxon Rank Sum test for each
|
83 |
+
cell-type.
|
84 |
+
|
85 |
+
**Differential expression**:
|
86 |
+
|
87 |
+
| Index | gene_f1 | lfc_mae | lfc_pearson | lfc_spearman | roc_auc | pr_auc | n_cells |
|
88 |
+
| --- | --- | --- | --- | --- | --- | --- | --- |
|
89 |
+
| epithelial cell | 0.97 | 0.91 | 0.58 | 0.90 | 0.13 | 0.85 | 6637.00 |
|
90 |
+
| basal cell of prostate epithelium | 0.92 | 0.80 | 0.64 | 0.94 | 0.48 | 0.89 | 3198.00 |
|
91 |
+
| CD8-positive, alpha-beta T cell | 0.93 | 2.89 | 0.63 | 0.84 | 0.30 | 0.82 | 1081.00 |
|
92 |
+
| endothelial cell | 0.79 | 2.84 | 0.67 | 0.85 | 0.47 | 0.85 | 471.00 |
|
93 |
+
| mature NK T cell | 0.87 | 4.49 | 0.55 | 0.74 | 0.34 | 0.78 | 430.00 |
|
94 |
+
| macrophage | 0.82 | 3.00 | 0.69 | 0.83 | 0.44 | 0.84 | 317.00 |
|
95 |
+
| club cell | 0.77 | 2.36 | 0.62 | 0.81 | 0.52 | 0.80 | 290.00 |
|
96 |
+
| smooth muscle cell | 0.85 | 2.94 | 0.67 | 0.82 | 0.49 | 0.83 | 285.00 |
|
97 |
+
| fibroblast | 0.87 | 3.21 | 0.70 | 0.81 | 0.46 | 0.80 | 207.00 |
|
98 |
+
| luminal cell of prostate epithelium | 0.70 | 3.89 | 0.65 | 0.73 | 0.48 | 0.76 | 60.00 |
|
99 |
+
| erythroid progenitor cell | 0.44 | 4.78 | 0.44 | 0.43 | 0.42 | 0.95 | 52.00 |
|
100 |
+
| monocyte | 0.63 | 5.83 | 0.68 | 0.81 | 0.20 | 0.64 | 33.00 |
|
101 |
+
| stromal cell | 0.34 | 7.66 | 0.47 | 0.53 | 0.22 | 0.46 | 32.00 |
|
102 |
+
|
103 |
+
</details>
|
104 |
+
|
105 |
+
# Model Properties
|
106 |
+
|
107 |
+
We provide here key parameters used to setup and train the model.
|
108 |
+
|
109 |
+
<details>
|
110 |
+
<summary><strong>Model Parameters</strong></summary>
|
111 |
+
|
112 |
+
These provide the settings to setup the original model:
|
113 |
```json
|
114 |
{
|
115 |
"n_hidden": 128,
|
|
|
126 |
}
|
127 |
```
|
128 |
|
129 |
+
</details>
|
130 |
+
|
131 |
+
<details>
|
132 |
+
<summary><strong>Setup Data Arguments</strong></summary>
|
133 |
+
|
134 |
+
Arguments passed to setup_anndata of the original model:
|
135 |
```json
|
136 |
{
|
137 |
"labels_key": "cell_ontology_class",
|
|
|
140 |
"batch_key": "donor_assay",
|
141 |
"size_factor_key": null,
|
142 |
"categorical_covariate_keys": null,
|
143 |
+
"continuous_covariate_keys": null,
|
144 |
+
"use_minified": false
|
145 |
}
|
146 |
```
|
147 |
|
148 |
+
</details>
|
149 |
+
|
150 |
+
<details>
|
151 |
+
<summary><strong>Data Registry</strong></summary>
|
152 |
+
|
153 |
+
Registry elements for AnnData manager:
|
154 |
+
| Registry Key | scvi-tools Location |
|
155 |
+
|-------------------|--------------------------------------|
|
156 |
+
| X | adata.X |
|
157 |
+
| batch | adata.obs['_scvi_batch'] |
|
158 |
+
| labels | adata.obs['_scvi_labels'] |
|
159 |
+
| latent_qzm | adata.obsm['scanvi_latent_qzm'] |
|
160 |
+
| latent_qzv | adata.obsm['scanvi_latent_qzv'] |
|
161 |
+
| minify_type | adata.uns['_scvi_adata_minify_type'] |
|
162 |
+
| observed_lib_size | adata.obs['observed_lib_size'] |
|
163 |
+
|
164 |
+
- **Data is Minified**: False
|
165 |
+
|
166 |
+
</details>
|
167 |
+
|
168 |
+
<details>
|
169 |
+
<summary><strong>Summary Statistics</strong></summary>
|
170 |
+
|
171 |
| Summary Stat Key | Value |
|
172 |
|--------------------------|-------|
|
173 |
| n_batch | 2 |
|
|
|
177 |
| n_labels | 14 |
|
178 |
| n_latent_qzm | 20 |
|
179 |
| n_latent_qzv | 20 |
|
180 |
+
| n_vars | 3000 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
|
182 |
+
</details>
|
183 |
|
|
|
184 |
|
185 |
+
<details>
|
186 |
+
<summary><strong>Training</strong></summary>
|
187 |
|
188 |
<!-- If your model is not uploaded with any data (e.g., minified data) on the Model Hub, then make
|
189 |
+
sure to provide this field if you want users to be able to access your training data. See the
|
190 |
+
scvi-tools documentation for details. -->
|
191 |
+
**Training data url**: Not provided by uploader
|
192 |
|
193 |
+
If provided by the original uploader, for those interested in understanding or replicating the
|
194 |
+
training process, the code is available at the link below.
|
195 |
|
196 |
+
**Training Code URL**: https://github.com/YosefLab/scvi-hub-models/blob/main/src/scvi_hub_models/TS_train_all_tissues.ipynb
|
197 |
|
198 |
+
</details>
|
199 |
|
|
|
200 |
|
201 |
# References
|
202 |
|
203 |
+
The Tabula Sapiens Consortium. The Tabula Sapiens: A multiple-organ, single-cell transcriptomic atlas of humans. Science, May 2022. doi:10.1126/science.abl4896
|