OriKron commited on
Commit
59c709f
·
verified ·
1 Parent(s): 4eebd8e

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +181 -0
README.md ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.4.2
10
+ - anndata_version:0.12.7
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/stable/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/stable/tutorials/notebooks/scrna/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
+ Not provided by uploader
56
+
57
+ The gene-wise coefficient of variation summarizes how well variation between different genes is
58
+ preserved by the generated model expression. This value is usually quite high.
59
+
60
+ **Gene-wise Coefficient of Variation**:
61
+
62
+ Not provided by uploader
63
+
64
+ </details>
65
+
66
+ <details>
67
+ <summary><strong>Differential expression metric</strong></summary>
68
+
69
+ The differential expression metric provides a summary of the differential expression analysis
70
+ between cell types or input clusters. We provide here the F1-score, Pearson Correlation
71
+ Coefficient of Log-Foldchanges, Spearman Correlation Coefficient, and Area Under the Precision
72
+ Recall Curve (AUPRC) for the differential expression analysis using Wilcoxon Rank Sum test for each
73
+ cell-type.
74
+
75
+ **Differential expression**:
76
+
77
+ Not provided by uploader
78
+
79
+ </details>
80
+
81
+ # Model Properties
82
+
83
+ We provide here key parameters used to setup and train the model.
84
+
85
+ <details>
86
+ <summary><strong>Model Parameters</strong></summary>
87
+
88
+ These provide the settings to setup the original model:
89
+ ```json
90
+ {
91
+ "n_hidden": 128,
92
+ "n_latent": 20,
93
+ "n_layers": 3,
94
+ "dropout_rate": 0.05,
95
+ "dispersion": "gene",
96
+ "gene_likelihood": "nb",
97
+ "use_observed_lib_size": true,
98
+ "linear_classifier": false,
99
+ "datamodule": null,
100
+ "latent_distribution": "normal",
101
+ "use_batch_norm": "none",
102
+ "use_layer_norm": "both",
103
+ "encode_covariates": true
104
+ }
105
+ ```
106
+
107
+ </details>
108
+
109
+ <details>
110
+ <summary><strong>Setup Data Arguments</strong></summary>
111
+
112
+ Arguments passed to setup_anndata of the original model:
113
+ ```json
114
+ {
115
+ "labels_key": "cell_type",
116
+ "unlabeled_category": "unknown",
117
+ "layer": "counts",
118
+ "batch_key": "donor_assay",
119
+ "size_factor_key": null,
120
+ "categorical_covariate_keys": null,
121
+ "continuous_covariate_keys": null,
122
+ "use_minified": false
123
+ }
124
+ ```
125
+
126
+ </details>
127
+
128
+ <details>
129
+ <summary><strong>Data Registry</strong></summary>
130
+
131
+ Registry elements for AnnData manager:
132
+ | Registry Key | scvi-tools Location |
133
+ |--------------------------|--------------------------------------|
134
+ | X | adata.layers['counts'] |
135
+ | batch | adata.obs['_scvi_batch'] |
136
+ | labels | adata.obs['_scvi_labels'] |
137
+ | latent_qzm | adata.obsm['scanvi_latent_qzm'] |
138
+ | latent_qzv | adata.obsm['scanvi_latent_qzv'] |
139
+ | minify_type | adata.uns['_scvi_adata_minify_type'] |
140
+ | observed_lib_size | adata.obs['observed_lib_size'] |
141
+
142
+ - **Data is Minified**: False
143
+
144
+ </details>
145
+
146
+ <details>
147
+ <summary><strong>Summary Statistics</strong></summary>
148
+
149
+ | Summary Stat Key | Value |
150
+ |--------------------------|-------|
151
+ | n_batch | 2 |
152
+ | n_cells | 3055 |
153
+ | n_extra_categorical_covs | 0 |
154
+ | n_extra_continuous_covs | 0 |
155
+ | n_labels | 17 |
156
+ | n_latent_qzm | 20 |
157
+ | n_latent_qzv | 20 |
158
+ | n_vars | 3000 |
159
+
160
+ </details>
161
+
162
+
163
+ <details>
164
+ <summary><strong>Training</strong></summary>
165
+
166
+ <!-- If your model is not uploaded with any data (e.g., minified data) on the Model Hub, then make
167
+ sure to provide this field if you want users to be able to access your training data. See the
168
+ scvi-tools documentation for details. -->
169
+ **Training data url**: Not provided by uploader
170
+
171
+ If provided by the original uploader, for those interested in understanding or replicating the
172
+ training process, the code is available at the link below.
173
+
174
+ **Training Code URL**: https://github.com/YosefLab/scvi-hub-models/blob/main/src/scvi_hub_models/TS_train_all_tissues.ipynb
175
+
176
+ </details>
177
+
178
+
179
+ # References
180
+
181
+ The Tabula Sapiens Consortium. The Tabula Sapiens: A multiple-organ, single-cell transcriptomic atlas of humans. Science, May 2022. doi:10.1126/science.abl4896