Skip to content

Interoperability: How to convert Spectre data.table to object compatible with CATALYST package? #92

Discussion options

You must be logged in to vote

@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 as cell_info and marker_info.

dt <- data.table(
    CD4=sample(1:100, 20, replace = TRUE),
    CD8=sample(1:100, 20, replace = TRUE),
    CD3=sample(1:100, 20, replace = TRUE))

marker_info <- data.table(
    name=c("CD4", "CD8", "CD3"),
    type=rep("Cell type", 3)
)

cell_info <- data.table…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@ghar1821
Comment options

@denvercal1234GitHub
Comment options

@denvercal1234GitHub
Comment options

@ghar1821
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by denvercal1234GitHub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants