cellgeni / sceasy

A package to help convert different single-cell data formats to each other
GNU General Public License v3.0
374 stars 54 forks source link

Export feature loadings in `anndata2seurat` #74

Open Zepeng-Mu opened 1 year ago

Zepeng-Mu commented 1 year ago

Hello, It seems that currently anndata2seurat does not export feature loadings from PCA. https://github.com/cellgeni/sceasy/blob/0cfc0e39da4b3ce4abf19d2171daa0e4d2acdd03/R/functions.R#L461 I think this data should be in the anndata and it would be great if this could be exported. In some Seurat analysis like multi-modal integration, it uses this information in ways like rownames(seuratObj@reductions$pca@feature.loading). Not having this from anndata means that pca pre-calculated by scanpy cannot be used.

Thanks!