Skip to content

Unable to write monocle3 object to H5 in R #16

@spriyansh

Description

@spriyansh

Hi, thanks for this versatile tool. I was trying to write monocle3 output to an H5 file.

The function does not throw any error but doesn't write any h5 output.

R code

devtools::install_github('JiekaiLab/dior@HEAD')

monocle3Object <- readRDS("../data/output/cds_object_.RDS")

# in R
library(dior)
dior::write_h5(monocle3Object, file='../data/test/Monocle3.h5',
               object.type = "monocle", assay.name = "counts",
               )

Object structure


monocle3Object

class: cell_data_set 
dim: 35 1000 
metadata(2): cds_version citations
assays(1): counts
rownames(35): A1_TF1 A2_TF1 ... D5_TF1 D6_TF1
rowData names(1): gene_short_name
colnames(1000): cell1 cell10 ... cell998 cell999
colData names(4): step_ix simulation_i sim_time Size_Factor
reducedDimNames(2): PCA UMAP
mainExpName: NULL
altExpNames(0):

Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions