canergen commited on
Commit
770cad9
1 Parent(s): 52c3cfa

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +150 -37
README.md CHANGED
@@ -1,27 +1,125 @@
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.1.0
10
- - anndata_version:0.10.3
11
  - modality:rna
12
- - tissue:Salivary_Gland
13
  - annotated:True
14
  ---
15
 
16
- # Description
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
- # Model properties
 
21
 
22
- Many model properties are in the model tags. Some more are listed below.
23
 
24
- **model_init_params**:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  ```json
26
  {
27
  "n_hidden": 128,
@@ -38,7 +136,12 @@ Many model properties are in the model tags. Some more are listed below.
38
  }
39
  ```
40
 
41
- **model_setup_anndata_args**:
 
 
 
 
 
42
  ```json
43
  {
44
  "labels_key": "cell_ontology_class",
@@ -47,11 +150,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
- **model_summary_stats**:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  | Summary Stat Key | Value |
56
  |--------------------------|-------|
57
  | n_batch | 4 |
@@ -61,40 +187,27 @@ Many model properties are in the model tags. Some more are listed below.
61
  | n_labels | 24 |
62
  | n_latent_qzm | 20 |
63
  | n_latent_qzv | 20 |
64
- | n_vars | 4000 |
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
- **data_is_minified**: True
80
 
81
- # Training data
82
 
83
- This is an optional link to where the training data is stored if it is too large
84
- to host on the huggingface Model hub.
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 scvi-tools
88
- documentation for details. -->
 
89
 
90
- Training data url: https://zenodo.org/records/7608635/files/Salivary_Gland_training_data.h5ad
 
91
 
92
- # Training code
93
 
94
- This is an optional link to the code used to train the model.
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.26 | 1.32 |
58
+ | Pearson Correlation | 0.94 | 0.93 |
59
+ | Spearman Correlation | 0.93 | 0.92 |
60
+ | R² (R-Squared) | 0.88 | 0.85 |
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 | 19.15 |
70
+ | Pearson Correlation | 0.71 |
71
+ | Spearman Correlation | 0.79 |
72
+ | R² (R-Squared) | -0.82 |
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
+ | acinar cell of salivary gland | 0.95 | 0.56 | 0.75 | 0.96 | 0.14 | 0.94 | 10147.00 |
90
+ | memory B cell | 0.92 | 1.23 | 0.66 | 0.93 | 0.38 | 0.88 | 2879.00 |
91
+ | fibroblast | 0.99 | 1.04 | 0.69 | 0.93 | 0.44 | 0.88 | 2169.00 |
92
+ | CD8-positive, alpha-beta T cell | 0.95 | 2.14 | 0.67 | 0.88 | 0.22 | 0.77 | 1979.00 |
93
+ | macrophage | 0.84 | 1.31 | 0.66 | 0.92 | 0.48 | 0.88 | 1761.00 |
94
+ | duct epithelial cell | 0.93 | 1.25 | 0.67 | 0.90 | 0.39 | 0.83 | 1693.00 |
95
+ | CD4-positive helper T cell | 0.98 | 2.04 | 0.64 | 0.87 | 0.32 | 0.83 | 1221.00 |
96
+ | naive B cell | 0.94 | 2.38 | 0.65 | 0.85 | 0.33 | 0.84 | 1120.00 |
97
+ | basal cell | 0.86 | 1.30 | 0.76 | 0.92 | 0.55 | 0.90 | 922.00 |
98
+ | adventitial cell | 0.91 | 2.22 | 0.68 | 0.87 | 0.37 | 0.80 | 442.00 |
99
+ | monocyte | 0.89 | 2.78 | 0.65 | 0.81 | 0.41 | 0.81 | 426.00 |
100
+ | plasma cell | 0.86 | 2.14 | 0.72 | 0.82 | 0.21 | 0.85 | 345.00 |
101
+ | endothelial cell | 0.82 | 2.36 | 0.69 | 0.81 | 0.48 | 0.83 | 323.00 |
102
+ | endothelial cell of lymphatic vessel | 0.79 | 2.33 | 0.71 | 0.85 | 0.51 | 0.83 | 320.00 |
103
+ | mature NK T cell | 0.83 | 3.19 | 0.65 | 0.78 | 0.39 | 0.80 | 317.00 |
104
+ | T cell | 0.74 | 3.86 | 0.53 | 0.58 | 0.30 | 0.59 | 227.00 |
105
+ | myoepithelial cell | 0.88 | 3.48 | 0.63 | 0.69 | 0.34 | 0.68 | 196.00 |
106
+ | CD4-positive, alpha-beta T cell | 0.44 | 6.24 | 0.46 | 0.60 | 0.21 | 0.72 | 182.00 |
107
+ | pericyte | 0.76 | 3.19 | 0.67 | 0.73 | 0.42 | 0.74 | 146.00 |
108
+ | B cell | 0.33 | 2.80 | 0.58 | 0.76 | 0.44 | 0.75 | 137.00 |
109
+ | neutrophil | 0.87 | 4.26 | 0.62 | 0.60 | 0.33 | 0.77 | 115.00 |
110
+ | ionocyte | 0.76 | 4.25 | 0.64 | 0.66 | 0.40 | 0.73 | 87.00 |
111
+ | salivary gland cell | 0.54 | 3.56 | 0.66 | 0.72 | 0.55 | 0.81 | 45.00 |
112
+
113
+ </details>
114
+
115
+ # Model Properties
116
+
117
+ We provide here key parameters used to setup and train the model.
118
+
119
+ <details>
120
+ <summary><strong>Model Parameters</strong></summary>
121
+
122
+ These provide the settings to setup the original model:
123
  ```json
124
  {
125
  "n_hidden": 128,
 
136
  }
137
  ```
138
 
139
+ </details>
140
+
141
+ <details>
142
+ <summary><strong>Setup Data Arguments</strong></summary>
143
+
144
+ Arguments passed to setup_anndata of the original model:
145
  ```json
146
  {
147
  "labels_key": "cell_ontology_class",
 
150
  "batch_key": "donor_assay",
151
  "size_factor_key": null,
152
  "categorical_covariate_keys": null,
153
+ "continuous_covariate_keys": null,
154
+ "use_minified": false
155
  }
156
  ```
157
 
158
+ </details>
159
+
160
+ <details>
161
+ <summary><strong>Data Registry</strong></summary>
162
+
163
+ Registry elements for AnnData manager:
164
+ | Registry Key | scvi-tools Location |
165
+ |-------------------|--------------------------------------|
166
+ | X | adata.X |
167
+ | batch | adata.obs['_scvi_batch'] |
168
+ | labels | adata.obs['_scvi_labels'] |
169
+ | latent_qzm | adata.obsm['scanvi_latent_qzm'] |
170
+ | latent_qzv | adata.obsm['scanvi_latent_qzv'] |
171
+ | minify_type | adata.uns['_scvi_adata_minify_type'] |
172
+ | observed_lib_size | adata.obs['observed_lib_size'] |
173
+
174
+ - **Data is Minified**: False
175
+
176
+ </details>
177
+
178
+ <details>
179
+ <summary><strong>Summary Statistics</strong></summary>
180
+
181
  | Summary Stat Key | Value |
182
  |--------------------------|-------|
183
  | n_batch | 4 |
 
187
  | n_labels | 24 |
188
  | n_latent_qzm | 20 |
189
  | n_latent_qzv | 20 |
190
+ | n_vars | 3000 |
 
 
 
 
 
 
 
 
 
 
 
 
 
191
 
192
+ </details>
193
 
 
194
 
195
+ <details>
196
+ <summary><strong>Training</strong></summary>
197
 
198
  <!-- If your model is not uploaded with any data (e.g., minified data) on the Model Hub, then make
199
+ sure to provide this field if you want users to be able to access your training data. See the
200
+ scvi-tools documentation for details. -->
201
+ **Training data url**: Not provided by uploader
202
 
203
+ If provided by the original uploader, for those interested in understanding or replicating the
204
+ training process, the code is available at the link below.
205
 
206
+ **Training Code URL**: https://github.com/YosefLab/scvi-hub-models/blob/main/src/scvi_hub_models/TS_train_all_tissues.ipynb
207
 
208
+ </details>
209
 
 
210
 
211
  # References
212
 
213
+ The Tabula Sapiens Consortium. The Tabula Sapiens: A multiple-organ, single-cell transcriptomic atlas of humans. Science, May 2022. doi:10.1126/science.abl4896