tanaylab / metacell

Metacell - Single-cell mRNA Analysis
https://tanaylab.github.io/metacell
Other
108 stars 30 forks source link

Assign id to metacell object #45

Open amissarova opened 3 years ago

amissarova commented 3 years ago

If I have a SingleCellExperiment object - I can convert it to metacell object. Now, how to assign id to this metacell object so I can call functions on it (e.g. mcell_plot_umis_per_cell) or is there a way to call functions on metacell objects directly, without referring to its id? Thanks!

amissarova commented 3 years ago

I believe I found it: scdb_add_mat would do the job for assigning metacell objects with id. Still wondering about the ways tor un the package functionalities on metacell files directly - is it possible?

akhiadber commented 3 years ago

Most functions that use an id instead of an object, internally call the object to memory (if not in memory) and than work on it. You can usually (but not always) call the inner functions with the object if you need. We understand the use case, but not sure we will add proper support for this general functionality in the near future. If you have a specific use case in mind, let us know and we'll take a look.