Skip to content

altExps not being written to .h5ad file with writeH5AD #97

@ScreachingFire

Description

@ScreachingFire

Hello!

I am having an issue where Alternative Experiments aren't being loaded when I try to read a .h5ad file after writing with writeH5AD().
For example:

> scdata
class: SingleCellExperiment
dim: 21703 22058
metadata(0): 
assays(1): counts
rownames(21703): RP11-34P13.7 FO538757.2 ... BPIFB4 KLF1 
rowData names(0): 
colnames(22058): hu_092618_AAACCTGAGGGAACGG hu_092618_AAACCTGAGGGCTTCC ... hu_080619_TTTGTTGTCCCATGGG hu_080619_TTTGTTGTCTCAATCT 
colData names(2): sample sex 
reducedDimNames(0): 
mainExpName: NULL 
altExpNames(1): test

I generated an SCE object with an alternative experiment test storing a 3000x22058 matrix. However, when writing it out and then reading it back in I get the following:

writeH5AD(scdata, "path_to_file", compression = 'lzf')
scdata <- readH5AD("path_to_file")


> scdata
class: SingleCellExperiment
dim: 21703 22058
metadata(0):
assays(1): counts
rownames(21703): RP11-34P13.7 FO538757.2 ... BPIFB4 KLF1
rowData names(0): 
colnames(22058): hu_092618_AAACCTGAGGGAACGG hu_092618_AAACCTGAGGGCTTCC ... hu_080619_TTTGTTGTCCCATGGG hu_080619_TTTGTTGTCTCAATCT
colData names(2): sample sex
reducedDimNames(0):
mainExpName: NULL
altExpNames(0):

Is there anyway Alternative Experiments could be stored such that you can read/write them, as well as have them show up as a layer in anndata?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions