You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting_started.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -146,10 +146,10 @@ Dimensionality reduction results can be accessed in the `AnnData` objects using
146
146
147
147
```python
148
148
# principal component analysis results
149
-
processed_adata.obsm["X_PCA"]
149
+
processed_adata.obsm["X_pca"]
150
150
151
151
# UMAP results
152
-
processed_adata.obsm["X_UMAP"]
152
+
processed_adata.obsm["X_umap"]
153
153
```
154
154
155
155
See below for more resources on dimensionality reduction:
@@ -179,6 +179,8 @@ This list can be accessed using the following command in the `AnnData` objects:
179
179
processed_adata.uns["highly_variable_genes"]
180
180
```
181
181
182
+
Additionally, the `AnnData` objects contain a column in the `.var` slot, `"highly_variable"`, indicating whether or not a gene is found in the list of highly variable genes.
183
+
182
184
### Clustering
183
185
184
186
Cluster assignments obtained from [Graph-based clustering](http://bioconductor.org/books/3.16/OSCA.basic/clustering.html#clustering-graph) is also available in the processed objects.
Copy file name to clipboardExpand all lines: docs/merged_objects.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -394,15 +394,15 @@ Additional experiment metadata is available in the {ref}`metadata TSV file inclu
394
394
395
395
### AnnData dimensionality reduction results
396
396
397
-
The merged `AnnData` object contains a slot `.obsm` with both principal component analysis (`X_PCA`) and UMAP (`X_UMAP`) results.
397
+
The merged `AnnData` object contains a slot `.obsm` with both principal component analysis (`X_pca`) and UMAP (`X_umap`) results.
398
398
399
399
For information on how PCA and UMAP results were calculated see the {ref}`section on processed gene expression data <processing_information:Processed gene expression data>`.
400
400
401
401
The following command can be used to access the PCA and UMAP results:
|`is_feature_filtered`| Boolean indicating if the gene or feature is filtered out in the normalized matrix but is present in the raw matrix |
430
+
|`highly_variable`| Boolean indicating if the gene or feature is found in the highly variable gene list determined using `scran::modelGeneVar` and `scran::getTopHVGs`. Only present for `processed` objects |
430
431
431
432
432
433
### AnnData experiment metadata
@@ -447,20 +448,21 @@ The `AnnData` object also includes the following additional items in the `.uns`
|`schema_version`| CZI schema version used for `AnnData` formatting |
451
+
|`pca`| A dictionary object containing the parameters and variance weights associated with the PCA matrix found in `.obsm["X_pca"]`. Only available for processed objects |
450
452
451
453
452
454
### AnnData dimensionality reduction results
453
455
454
-
The H5AD file containing the processed `AnnData` object (`_processed_rna.h5ad`) contains a slot `.obsm` with both principal component analysis (`X_PCA`) and UMAP (`X_UMAP`) results.
456
+
The H5AD file containing the processed `AnnData` object (`_processed_rna.h5ad`) contains a slot `.obsm` with both principal component analysis (`X_pca`) and UMAP (`X_umap`) results stored as a `numpy.ndarray`.
455
457
For all other H5AD files, the `.obsm` slot will be empty as no dimensionality reduction was performed.
456
458
457
459
For information on how PCA and UMAP results were calculated see the {ref}`section on processed gene expression data <processing_information:Processed gene expression data>`.
458
460
459
461
The following command can be used to access the PCA and UMAP results:
460
462
461
463
```python
462
-
adata_object.obsm["X_PCA"] # pca results
463
-
adata_object.obsm["X_UMAP"] # umap results
464
+
adata_object.obsm["X_pca"] # pca results
465
+
adata_object.obsm["X_umap"] # umap results
464
466
```
465
467
466
468
### Additional AnnData components for CITE-seq libraries (with ADT tags)
0 commit comments