Closed CChen0217 closed 1 year ago
Hi @CChen0217,
Thank you for your interest in our package.
I'm wondering
ct.select = CARD_object@info_parameters$ct.select
ct.varname = CARD_object@info_parameters$ct.varname
sample.varname = CARD_object@info_parameters$sample.varname
cat(paste0("## create reference matrix from scRNASeq...\n"))
sc_eset = CARD_object@sc_eset
Basis_ref = createscRef(sc_eset, ct.select, ct.varname, sample.varname)
Basis = Basis_ref$basis
Basis = Basis[,colnames(Basis) %in% ct.select]
library(SingleCellExperiment)
###### check if the cell types in the scRNA-seq reference is consistent with that in the reference basis matrix
print(ct.select)
print(unique(colData(sc_eset)[,ct.varname]))
intersectCT = intersect(ct.select,unique(colData(sc_eset)[,ct.varname]))
print(sum(intersectCT %in% ct.select) == length(ct.select))
##### it should print out TRUE
[1] TRUE
Thanks!
Follow up the issue with CARD_deconvolution()
. I am able to create an CARD object by function createCARDObject()
. However, I failed at CARD_deconvolution(CARD_object = CARD_obj)
. I guess this is due to MuSiC. I tried to install using BiocManager::install("MuSiC")
but failed. Could you please provide any guidance on this? Thanks in advance!
Hi @yiqisu,
Sorry for the late reply as I somehow missed your follow-up question. Have you tried to install MuSiC by devtools? For example,
devtools::install_github('xuranw/MuSiC')
Also, could you please tell me what is your error output of CARD_deconvolution(CARD_object = CARD_obj)? Thanks!
Best, Ying
Thank you, Ying! The installation of MuSiC solved the problem!
Hi, I have created CARD_obj through "creatCARDObject()", then I used this code:
CARD_obj = CARD_deconvolution(CARD_object = CARD_obj)
I will get this error:
create reference matrix from scRNASeq...
Select Informative Genes! ...
Error in Basis[, ict] : subscript out of bounds
This first time, this run, but when I run it again, this error appeared. Could you help me?