Interoperability: How to convert Spectre data.table to object compatible with CATALYST package? #92
-
|
Hi there, I lov Spectre package especially with the well-crafted tutorials and explanation. But, I also hope to use some features provided by the CATALYST package. CATALYST package organizes their data as a SingleCellExperiment class (https://bioconductor.org/packages/release/bioc/vignettes/CATALYST/inst/doc/differential.html). Do you have a recommended way to do this? Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
@denvercal1234GitHub it's pretty straightforward to construct a SingleCellExperiment from a |
Beta Was this translation helpful? Give feedback.
-
|
Sorry for the huge delay! I haven't written a full tutorial, but I'll attach a brief one here which should help: With sce, cell-specific (e.g., what sample or group each cell belongs to) or marker-specific (e.g., what are the channels) must be separate from the actual data. Next, to load them up into sce, we start with just the data, like the following: Note a couple of things:
Then we load up the marker- and cell- specific information as rowData and colData respectively, while also giving the row and column in the sce object a unique id. For markers (rows), it can just be the name, for cells (columns), you will probably have to make it up using something like Check your object: and it should look like this: Hope this help! Let me know if you get stuck or need more info. I'll write up a proper tutorial in the coming days. |
Beta Was this translation helpful? Give feedback.
@denvercal1234GitHub
Sorry for the huge delay! I haven't written a full tutorial, but I'll attach a brief one here which should help:
With sce, cell-specific (e.g., what sample or group each cell belongs to) or marker-specific (e.g., what are the channels) must be separate from the actual data.
See the following where I mock up my data and store it as
dt, and the cell- and marker-specific information ascell_infoandmarker_info.