Entering edit mode
2.2 years ago
ZheFrench
▴
500
I try to convert sce object to seurat . it works but I'm loosing features containes in rowData/colData. How to get them in the seurat object ? What am I missing ? (https://satijalab.org/seurat/archive/v3.0/conversion_vignette.html)
> sce.to.seurat <- as.Seurat(seurat.to.sce)
class: SingleCellExperiment
dim: 33694 4570
metadata(0):
assays(2): counts logcounts
rownames(33694): RP11-34P13.3 FAM138A ... AC213203.1 FAM231B
rowData names(9): vst.mean vst.variance ... **feature_ensembl**
**feature_symbol**
colnames(4570): OSI_TIPI_Vertes_AAACCCAAGGTAAGGA-1
OSI_TIPI_Vertes_AAACCCATCGAACACT-1 ...
OSI_TIPI_Rouges_TTTGTTGGTCCAATCA-1 OSI_TIPI_Rouges_TTTGTTGGTGGTCTTA-1
colData names(12): orig.ident nCount_RNA ... detected total
reducedDimNames(0):
altExpNames(0):
>head(sce.to.seurat@meta.data))
OSI_TIPI_Vertes 36827 6424
OSI_TIPI_Vertes_AAACCCATCGAACACT-1 OSI_TIPI_Vertes 56588 7438
log10GenesPerUMI mitoRatio S.Score
OSI_TIPI_Vertes_AAACCCAAGGTAAGGA-1 0.8339174 2.51989030 -0.04258605
G2M.Score Phase ident sum
OSI_TIPI_Vertes_AAACCCAAGGTAAGGA-1 -0.09878542 G1 OSI_TIPI_Vertes 36827
detected total
Thanks a lot. That worked for colData but not for rowData(the super intuitive one :).
Ah. I got that bit from this issue, which is a bit old at this point. I do not know French, so I can't comment on the error. It seems like maybe they're adding support for this soon at least.