Closed ntran95 closed 4 years ago
tl;dr the convertTo()
function converts to Monocle 2's CellDataSet
.
Monocle 3 isn't on Bioconductor yet so I can't convert to something that doesn't exist outside of a production environment. Fortunately, Monocle 3's data structure is based on the SingleCellExperiment
, so the coercion may actually be as easy as doing something like:
as(sce, "cell_data_set")
Of course, this assumes that they defined an appropriate setAs
method to do this. Pinging @hpliner.
Perfect, thank you for the alternative method.
as(sce, "cell_data_set")
did the trick. Closing issue now, thanks!
Hello developers,
I'm encountering an error when trying to convert my SingleCellExperiment object to a CellDataSet object from the Monocle3 package.
My code and error is as follows:
> test_convert <- scran::convertTo(sce_obj, type="monocle")
Here's my version of the Monocle3 package:
> packageVersion("monocle3")
Here's my sessionInfo:
Any insights is greatly appreciated!