canergen commited on
Commit
2ba1d21
·
verified ·
1 Parent(s): 43e8515

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +148 -37
README.md CHANGED
@@ -1,27 +1,123 @@
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:Skin
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 +134,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 +148,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 | 3 |
@@ -61,40 +185,27 @@ Many model properties are in the model tags. Some more are listed below.
61
  | n_labels | 22 |
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/Skin_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.33 | 2.31 |
58
+ | Pearson Correlation | 0.63 | 0.61 |
59
+ | Spearman Correlation | 0.61 | 0.59 |
60
+ | R² (R-Squared) | 0.10 | 0.11 |
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 | 13.92 |
70
+ | Pearson Correlation | 0.56 |
71
+ | Spearman Correlation | 0.61 |
72
+ | R² (R-Squared) | -1.21 |
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
+ | stromal cell | 0.90 | 1.29 | 0.70 | 0.95 | 0.46 | 0.90 | 2943.00 |
90
+ | endothelial cell | 0.84 | 1.70 | 0.66 | 0.92 | 0.36 | 0.85 | 1309.00 |
91
+ | CD8-positive, alpha-beta memory T cell | 0.88 | 3.52 | 0.61 | 0.77 | 0.23 | 0.76 | 857.00 |
92
+ | macrophage | 0.87 | 2.46 | 0.61 | 0.84 | 0.28 | 0.84 | 846.00 |
93
+ | mast cell | 0.90 | 3.31 | 0.61 | 0.79 | 0.20 | 0.75 | 645.00 |
94
+ | mature NK T cell | 0.84 | 3.97 | 0.58 | 0.74 | 0.24 | 0.75 | 605.00 |
95
+ | T cell | 0.91 | 4.45 | 0.56 | 0.70 | 0.22 | 0.73 | 519.00 |
96
+ | muscle cell | 0.91 | 3.40 | 0.61 | 0.79 | 0.36 | 0.79 | 437.00 |
97
+ | CD4-positive, alpha-beta memory T cell | 0.83 | 4.39 | 0.60 | 0.69 | 0.23 | 0.71 | 339.00 |
98
+ | CD1c-positive myeloid dendritic cell | 0.81 | 4.54 | 0.61 | 0.72 | 0.29 | 0.82 | 165.00 |
99
+ | CD8-positive, alpha-beta cytotoxic T cell | 0.80 | 5.81 | 0.52 | 0.54 | 0.31 | 0.71 | 129.00 |
100
+ | regulatory T cell | 0.85 | 5.06 | 0.60 | 0.63 | 0.30 | 0.77 | 126.00 |
101
+ | epithelial cell | 0.69 | 4.50 | 0.61 | 0.72 | 0.35 | 0.71 | 106.00 |
102
+ | naive thymus-derived CD8-positive, alpha-beta T cell | 0.84 | 5.45 | 0.57 | 0.55 | 0.28 | 0.75 | 88.00 |
103
+ | naive thymus-derived CD4-positive, alpha-beta T cell | 0.81 | 5.32 | 0.56 | 0.56 | 0.28 | 0.71 | 71.00 |
104
+ | melanocyte | 0.71 | 6.10 | 0.53 | 0.57 | 0.38 | 0.73 | 64.00 |
105
+ | CD4-positive helper T cell | 0.78 | 5.73 | 0.54 | 0.54 | 0.30 | 0.73 | 59.00 |
106
+ | Langerhans cell | 0.70 | 5.94 | 0.54 | 0.56 | 0.37 | 0.75 | 36.00 |
107
+ | plasma cell | 0.53 | 7.21 | 0.46 | 0.45 | 0.30 | 0.73 | 24.00 |
108
+ | CD141-positive myeloid dendritic cell | 0.64 | 6.55 | 0.52 | 0.52 | 0.28 | 0.75 | 17.00 |
109
+ | smooth muscle cell | 0.60 | 5.75 | 0.53 | 0.51 | 0.38 | 0.69 | 13.00 |
110
+
111
+ </details>
112
+
113
+ # Model Properties
114
+
115
+ We provide here key parameters used to setup and train the model.
116
+
117
+ <details>
118
+ <summary><strong>Model Parameters</strong></summary>
119
+
120
+ These provide the settings to setup the original model:
121
  ```json
122
  {
123
  "n_hidden": 128,
 
134
  }
135
  ```
136
 
137
+ </details>
138
+
139
+ <details>
140
+ <summary><strong>Setup Data Arguments</strong></summary>
141
+
142
+ Arguments passed to setup_anndata of the original model:
143
  ```json
144
  {
145
  "labels_key": "cell_ontology_class",
 
148
  "batch_key": "donor_assay",
149
  "size_factor_key": null,
150
  "categorical_covariate_keys": null,
151
+ "continuous_covariate_keys": null,
152
+ "use_minified": false
153
  }
154
  ```
155
 
156
+ </details>
157
+
158
+ <details>
159
+ <summary><strong>Data Registry</strong></summary>
160
+
161
+ Registry elements for AnnData manager:
162
+ | Registry Key | scvi-tools Location |
163
+ |-------------------|--------------------------------------|
164
+ | X | adata.X |
165
+ | batch | adata.obs['_scvi_batch'] |
166
+ | labels | adata.obs['_scvi_labels'] |
167
+ | latent_qzm | adata.obsm['scanvi_latent_qzm'] |
168
+ | latent_qzv | adata.obsm['scanvi_latent_qzv'] |
169
+ | minify_type | adata.uns['_scvi_adata_minify_type'] |
170
+ | observed_lib_size | adata.obs['observed_lib_size'] |
171
+
172
+ - **Data is Minified**: False
173
+
174
+ </details>
175
+
176
+ <details>
177
+ <summary><strong>Summary Statistics</strong></summary>
178
+
179
  | Summary Stat Key | Value |
180
  |--------------------------|-------|
181
  | n_batch | 3 |
 
185
  | n_labels | 22 |
186
  | n_latent_qzm | 20 |
187
  | n_latent_qzv | 20 |
188
+ | n_vars | 3000 |
 
 
 
 
 
 
 
 
 
 
 
 
 
189
 
190
+ </details>
191
 
 
192
 
193
+ <details>
194
+ <summary><strong>Training</strong></summary>
195
 
196
  <!-- If your model is not uploaded with any data (e.g., minified data) on the Model Hub, then make
197
+ sure to provide this field if you want users to be able to access your training data. See the
198
+ scvi-tools documentation for details. -->
199
+ **Training data url**: Not provided by uploader
200
 
201
+ If provided by the original uploader, for those interested in understanding or replicating the
202
+ training process, the code is available at the link below.
203
 
204
+ **Training Code URL**: https://github.com/YosefLab/scvi-hub-models/blob/main/src/scvi_hub_models/TS_train_all_tissues.ipynb
205
 
206
+ </details>
207
 
 
208
 
209
  # References
210
 
211
+ The Tabula Sapiens Consortium. The Tabula Sapiens: A multiple-organ, single-cell transcriptomic atlas of humans. Science, May 2022. doi:10.1126/science.abl4896