I noticed that in the celltrek object that is created in the main celltrek function, only the @data matrix is kept. Is it possible to also transfer the @counts and @scale.data? I noticed these slots were empty in my final object (liver_celltrek_6b), but present in my original single nucleus seurat object (liver_sc_6b).
Technically, you could extract the SCT assay from the input ST object and attach it to the celltreck object. But you are right. It would be great we don't need to do so.
I noticed that in the celltrek object that is created in the main
celltrek
function, only the@data
matrix is kept. Is it possible to also transfer the@counts
and@scale.data
? I noticed these slots were empty in my final object (liver_celltrek_6b
), but present in my original single nucleus seurat object (liver_sc_6b
).Thank you! Kate
liver_celltrek_6b <- CellTrek::celltrek( st_sc_int=traint_6b, int_assay='traint', sc_data=liver_sc_6b, sc_assay = 'SCT', reduction='pca', intp=T, intp_pnt=5000, intp_lin=F, nPCs=30, ntree=1000, dist_thresh=0.55, top_spot=5, spot_n=5, repel_r=20, repel_iter=20, keep_model=T)$celltrek