Results from Principal Component Analysis. Contains all the essential outputs from PCA analysis including the transformed data, variance explained by each component, and feature importance scores. ## Fields - `transformed`: Cell embeddings in the principal component space (cells × components) - `explained_variance_ratio`: Fraction of total variance explained by each component - `cumulative_expl
| 103 | /// let pc1_loadings = pca_result.feature_importance.column(0); |
| 104 | /// ``` |
| 105 | pub struct PCAResult<T> |
| 106 | where |
| 107 | T: FloatOpsTS, |
| 108 | { |
| 109 | /// Transformed data: cell embeddings in principal component space (n_cells × n_components) |
| 110 | pub transformed: Array2<T>, |
| 111 | /// Fraction of variance explained by each principal component |
| 112 | pub explained_variance_ratio: Array1<T>, |
| 113 | /// Cumulative fraction of variance explained up to each component |
| 114 | pub cumulative_explained_variance_ratio: Array1<T>, |
| 115 | /// Feature loadings/importance for each component (n_features × n_components) |
| 116 | pub feature_importance: Array2<T>, |
| 117 | } |
| 118 | |
| 119 | /// Perform Principal Component Analysis on sparse single-cell expression data. |
| 120 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected