Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -1,27 +1,117 @@
|
|
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 +128,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 +142,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 | 5 |
|
@@ -61,40 +179,27 @@ Many model properties are in the model tags. Some more are listed below.
|
|
61 |
| n_labels | 16 |
|
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.75 | 1.85 |
|
58 |
+
| Pearson Correlation | 0.87 | 0.86 |
|
59 |
+
| Spearman Correlation | 0.78 | 0.77 |
|
60 |
+
| R² (R-Squared) | 0.54 | 0.43 |
|
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.40 |
|
70 |
+
| Pearson Correlation | 0.71 |
|
71 |
+
| Spearman Correlation | 0.75 |
|
72 |
+
| R² (R-Squared) | 0.01 |
|
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 |
+
| fibroblast | 0.96 | 1.04 | 0.77 | 0.96 | 0.34 | 0.90 | 5557.00 |
|
90 |
+
| macrophage | 0.92 | 1.04 | 0.73 | 0.95 | 0.30 | 0.88 | 5338.00 |
|
91 |
+
| bladder urothelial cell | 0.92 | 0.86 | 0.82 | 0.97 | 0.42 | 0.91 | 4151.00 |
|
92 |
+
| T cell | 0.93 | 1.90 | 0.72 | 0.89 | 0.24 | 0.87 | 2916.00 |
|
93 |
+
| myofibroblast cell | 0.93 | 1.99 | 0.65 | 0.87 | 0.35 | 0.84 | 2078.00 |
|
94 |
+
| plasma cell | 0.89 | 1.88 | 0.72 | 0.89 | 0.14 | 0.86 | 1141.00 |
|
95 |
+
| mast cell | 0.94 | 2.78 | 0.61 | 0.82 | 0.21 | 0.80 | 1029.00 |
|
96 |
+
| pericyte | 0.94 | 2.27 | 0.70 | 0.86 | 0.28 | 0.78 | 875.00 |
|
97 |
+
| mature NK T cell | 0.85 | 3.16 | 0.65 | 0.81 | 0.43 | 0.87 | 508.00 |
|
98 |
+
| smooth muscle cell | 0.89 | 3.01 | 0.70 | 0.79 | 0.29 | 0.83 | 290.00 |
|
99 |
+
| vein endothelial cell | 0.80 | 3.19 | 0.68 | 0.85 | 0.36 | 0.79 | 278.00 |
|
100 |
+
| B cell | 0.85 | 3.81 | 0.59 | 0.69 | 0.35 | 0.75 | 253.00 |
|
101 |
+
| capillary endothelial cell | 0.75 | 3.42 | 0.69 | 0.74 | 0.40 | 0.76 | 77.00 |
|
102 |
+
| endothelial cell of lymphatic vessel | 0.80 | 4.67 | 0.64 | 0.72 | 0.30 | 0.70 | 74.00 |
|
103 |
+
| plasmacytoid dendritic cell | 0.61 | 6.04 | 0.52 | 0.47 | 0.34 | 0.74 | 18.00 |
|
104 |
+
|
105 |
+
</details>
|
106 |
+
|
107 |
+
# Model Properties
|
108 |
+
|
109 |
+
We provide here key parameters used to setup and train the model.
|
110 |
+
|
111 |
+
<details>
|
112 |
+
<summary><strong>Model Parameters</strong></summary>
|
113 |
+
|
114 |
+
These provide the settings to setup the original model:
|
115 |
```json
|
116 |
{
|
117 |
"n_hidden": 128,
|
|
|
128 |
}
|
129 |
```
|
130 |
|
131 |
+
</details>
|
132 |
+
|
133 |
+
<details>
|
134 |
+
<summary><strong>Setup Data Arguments</strong></summary>
|
135 |
+
|
136 |
+
Arguments passed to setup_anndata of the original model:
|
137 |
```json
|
138 |
{
|
139 |
"labels_key": "cell_ontology_class",
|
|
|
142 |
"batch_key": "donor_assay",
|
143 |
"size_factor_key": null,
|
144 |
"categorical_covariate_keys": null,
|
145 |
+
"continuous_covariate_keys": null,
|
146 |
+
"use_minified": false
|
147 |
}
|
148 |
```
|
149 |
|
150 |
+
</details>
|
151 |
+
|
152 |
+
<details>
|
153 |
+
<summary><strong>Data Registry</strong></summary>
|
154 |
+
|
155 |
+
Registry elements for AnnData manager:
|
156 |
+
| Registry Key | scvi-tools Location |
|
157 |
+
|-------------------|--------------------------------------|
|
158 |
+
| X | adata.X |
|
159 |
+
| batch | adata.obs['_scvi_batch'] |
|
160 |
+
| labels | adata.obs['_scvi_labels'] |
|
161 |
+
| latent_qzm | adata.obsm['scanvi_latent_qzm'] |
|
162 |
+
| latent_qzv | adata.obsm['scanvi_latent_qzv'] |
|
163 |
+
| minify_type | adata.uns['_scvi_adata_minify_type'] |
|
164 |
+
| observed_lib_size | adata.obs['observed_lib_size'] |
|
165 |
+
|
166 |
+
- **Data is Minified**: False
|
167 |
+
|
168 |
+
</details>
|
169 |
+
|
170 |
+
<details>
|
171 |
+
<summary><strong>Summary Statistics</strong></summary>
|
172 |
+
|
173 |
| Summary Stat Key | Value |
|
174 |
|--------------------------|-------|
|
175 |
| n_batch | 5 |
|
|
|
179 |
| n_labels | 16 |
|
180 |
| n_latent_qzm | 20 |
|
181 |
| n_latent_qzv | 20 |
|
182 |
+
| n_vars | 3000 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
|
184 |
+
</details>
|
185 |
|
|
|
186 |
|
187 |
+
<details>
|
188 |
+
<summary><strong>Training</strong></summary>
|
189 |
|
190 |
<!-- If your model is not uploaded with any data (e.g., minified data) on the Model Hub, then make
|
191 |
+
sure to provide this field if you want users to be able to access your training data. See the
|
192 |
+
scvi-tools documentation for details. -->
|
193 |
+
**Training data url**: Not provided by uploader
|
194 |
|
195 |
+
If provided by the original uploader, for those interested in understanding or replicating the
|
196 |
+
training process, the code is available at the link below.
|
197 |
|
198 |
+
**Training Code URL**: Not provided by uploader
|
199 |
|
200 |
+
</details>
|
201 |
|
|
|
202 |
|
203 |
# References
|
204 |
|
205 |
+
The Tabula Sapiens Consortium. The Tabula Sapiens: A multiple-organ, single-cell transcriptomic atlas of humans. Science, May 2022. doi:10.1126/science.abl4896
|