Skip to content

Assay in SingleCellExperiment not being transposed #388

@ekageyama

Description

@ekageyama

Hello, I have a SingleCellExperiment of 3 samples and 3 genes, when trying to convert it to annData i get the following:

> sce
class: SingleCellExperiment
dim: 3 3
metadata(1): .internal
assays(2): counts X
rownames(3): 3xLinker MIR1302-2HG FAM138A
rowData names(1): Symbol
colnames(3): SAM24451293_rep1-AAACCCAAGAAATCCA
  SAM24451293_rep1-AAACCCAAGACAGTCG SAM24451293_rep1-AAACCCACAGACCCGT
colData names(2): Sample Barcode 
reducedDimNames(0):
mainExpName: NULL
altExpNames(0):
> as_AnnData(sce)
Error in `private$.validate_aligned_mapping()`:
! `rownames(layers[['counts']])` is not as expected
ℹ Expected row names: "SAM24451293_rep1-AAACCCAAGAAATCCA", "SAM24451293_rep1-AAACCCAAGACAGTCG", "SAM24451293_rep1-AAACCCACAGACCCGT"
ℹ Provided row names: "3xLinker", "MIR1302-2HG", "FAM138A"

Not sure why the assay is not being transposed, or why it infers it shouldnt be transposed

Metadata

Metadata

Assignees

Labels

SingleCellExperimentIssues related to SingleCellExperiment object conversion

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions