canergen commited on
Commit
f9102f8
1 Parent(s): 97c3046

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +140 -36
README.md CHANGED
@@ -1,27 +1,116 @@
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:Bone_Marrow
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 +127,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 +141,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 | 7 |
@@ -61,40 +178,27 @@ Many model properties are in the model tags. Some more are listed below.
61
  | n_labels | 15 |
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/Bone_Marrow_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 | 2.28 | 2.26 |
58
+ | Pearson Correlation | 0.85 | 0.85 |
59
+ | Spearman Correlation | 0.86 | 0.86 |
60
+ | R² (R-Squared) | 0.54 | 0.55 |
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 | 12.58 |
70
+ | Pearson Correlation | 0.61 |
71
+ | Spearman Correlation | 0.68 |
72
+ | R² (R-Squared) | -0.87 |
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
+ | neutrophil | 0.94 | 2.13 | 0.68 | 0.89 | 0.18 | 0.84 | 2911.00 |
90
+ | CD4-positive, alpha-beta T cell | 0.93 | 1.95 | 0.62 | 0.91 | 0.34 | 0.79 | 2025.00 |
91
+ | monocyte | 0.88 | 1.76 | 0.65 | 0.90 | 0.39 | 0.78 | 1389.00 |
92
+ | CD8-positive, alpha-beta T cell | 0.87 | 3.04 | 0.55 | 0.84 | 0.32 | 0.74 | 1147.00 |
93
+ | granulocyte | 0.77 | 2.38 | 0.64 | 0.89 | 0.45 | 0.83 | 853.00 |
94
+ | plasma cell | 0.79 | 2.25 | 0.73 | 0.92 | 0.19 | 0.85 | 825.00 |
95
+ | erythroid progenitor cell | 0.59 | 2.34 | 0.70 | 0.93 | 0.48 | 0.89 | 757.00 |
96
+ | mature NK T cell | 0.78 | 3.76 | 0.58 | 0.78 | 0.33 | 0.69 | 678.00 |
97
+ | hematopoietic stem cell | 0.90 | 2.20 | 0.67 | 0.89 | 0.53 | 0.85 | 617.00 |
98
+ | memory B cell | 0.87 | 4.15 | 0.61 | 0.72 | 0.32 | 0.69 | 310.00 |
99
+ | common myeloid progenitor | 0.70 | 2.72 | 0.70 | 0.89 | 0.55 | 0.88 | 287.00 |
100
+ | macrophage | 0.85 | 4.31 | 0.64 | 0.71 | 0.34 | 0.78 | 265.00 |
101
+ | naive B cell | 0.88 | 5.38 | 0.59 | 0.67 | 0.26 | 0.66 | 142.00 |
102
+ | erythrocyte | 0.90 | 4.94 | 0.57 | 0.52 | 0.31 | 0.90 | 87.00 |
103
+
104
+ </details>
105
+
106
+ # Model Properties
107
+
108
+ We provide here key parameters used to setup and train the model.
109
+
110
+ <details>
111
+ <summary><strong>Model Parameters</strong></summary>
112
+
113
+ These provide the settings to setup the original model:
114
  ```json
115
  {
116
  "n_hidden": 128,
 
127
  }
128
  ```
129
 
130
+ </details>
131
+
132
+ <details>
133
+ <summary><strong>Setup Data Arguments</strong></summary>
134
+
135
+ Arguments passed to setup_anndata of the original model:
136
  ```json
137
  {
138
  "labels_key": "cell_ontology_class",
 
141
  "batch_key": "donor_assay",
142
  "size_factor_key": null,
143
  "categorical_covariate_keys": null,
144
+ "continuous_covariate_keys": null,
145
+ "use_minified": false
146
  }
147
  ```
148
 
149
+ </details>
150
+
151
+ <details>
152
+ <summary><strong>Data Registry</strong></summary>
153
+
154
+ Registry elements for AnnData manager:
155
+ | Registry Key | scvi-tools Location |
156
+ |-------------------|--------------------------------------|
157
+ | X | adata.X |
158
+ | batch | adata.obs['_scvi_batch'] |
159
+ | labels | adata.obs['_scvi_labels'] |
160
+ | latent_qzm | adata.obsm['scanvi_latent_qzm'] |
161
+ | latent_qzv | adata.obsm['scanvi_latent_qzv'] |
162
+ | minify_type | adata.uns['_scvi_adata_minify_type'] |
163
+ | observed_lib_size | adata.obs['observed_lib_size'] |
164
+
165
+ - **Data is Minified**: False
166
+
167
+ </details>
168
+
169
+ <details>
170
+ <summary><strong>Summary Statistics</strong></summary>
171
+
172
  | Summary Stat Key | Value |
173
  |--------------------------|-------|
174
  | n_batch | 7 |
 
178
  | n_labels | 15 |
179
  | n_latent_qzm | 20 |
180
  | n_latent_qzv | 20 |
181
+ | n_vars | 3000 |
 
 
 
 
 
 
 
 
 
 
 
 
 
182
 
183
+ </details>
184
 
 
185
 
186
+ <details>
187
+ <summary><strong>Training</strong></summary>
188
 
189
  <!-- If your model is not uploaded with any data (e.g., minified data) on the Model Hub, then make
190
+ sure to provide this field if you want users to be able to access your training data. See the
191
+ scvi-tools documentation for details. -->
192
+ **Training data url**: Not provided by uploader
193
 
194
+ If provided by the original uploader, for those interested in understanding or replicating the
195
+ training process, the code is available at the link below.
196
 
197
+ **Training Code URL**: Not provided by uploader
198
 
199
+ </details>
200
 
 
201
 
202
  # References
203
 
204
+ The Tabula Sapiens Consortium. The Tabula Sapiens: A multiple-organ, single-cell transcriptomic atlas of humans. Science, May 2022. doi:10.1126/science.abl4896