Open ghost opened 2 years ago
Could you maybe share you matrix here? I suspect some formatting issue that at least I can not spot from this error alone.
Hi @LuisCanoA,
can you show the code you use to read that matrix and to pass it to immunedeconv? Do other deconvolution methods than CIBERSORT work fine? I'm not yet sure if it's a problem that occurs before running immunedeconv or if it could be an internal problem.
The matrix itself looks fine (it's a bit unusual that it uses ;
as separator and ,
as decimal symbol, but depending on how you read the data it'd be fine).
Best, Gregor
Hi @grst
Thanks for your answer, here the code the I used:
Toget the database from pub med, I created this function,
extractora <- function(x){
require(GEOquery)
require(dplyr)
require(Biobase)
require(janitor)
a <- GEOquery::getGEO(x,destdir = ".")[[1]]
expresiones <- a%>%exprs()%>%apply(2,function(x)(log2(x)))
fenotipos <- a%>%pData()%>%clean_names
gene_names <- a%>%fData()%>%as.data.frame%>%clean_names%>%
dplyr::select(c(1,matches("symbol")))
a <- list(expresiones,fenotipos,gene_names)
return(a)
}
b33814 <- extractora("GSE33814")
with tha dataset already created, i used this code to clean and start cibersort:
b33814[[1]]%>%as.data.frame%>%rownames_to_column("id")%>%
inner_join(b33814[[3]],by="id")%>%dplyr::select(-id)%>%
relocate(symbol, .before = 1)%>%distinct(symbol, .keep_all = T)%>%
column_to_rownames("symbol")%>%
normalizeBetweenArrays(method="quantile")%>%
deconvolute(method="cibersort")
Other methods works well, xcell for example... but I dont know what is happening with cibersort.
I assume the matrix you sent us is the normalized matrix you pipe into deconvolute
?
For cibersort, due to how it is implemented, immunedeconv writes the expression matrix to a temporary file, from where it is read by cibersort. I believe this is where the error occurs, but I have no clue yet how that could possibly fail.
Hi @grst , exact, that is the matrix that I pipe into deconvolute. I also tried to do without normalization method, but the problem still continue.
Sorry, I currently don't have time to look into this, but I'll try to reproduce the problem using the matrix you provided and come back to you!
@LuisCanoA maybe you could try to feed the matrix directly to CIBERSORT to see if the problem is really with immunedeconv or with CIBERSORT. That might speed things up.
I had a the same error message while using quantiseq. I had the values in a char dataframe which I then converted to a numeric matrix, due to which NA values were added by coercion. It looks like immune deconv was not able to parse those NA values which produces this error. I fixed the issue by removing all the NA values from my matrix.
Hi everyone
I'm working with cibersort in R, i downloaded this database from pubmed GSE33814, after some cleaning process I got the matrix with gene names as row names and patients as columms. but at the moment to run cibersort I received this errors:
My matrix has 25441 rows and 44 colums
I also did the same analysis with other databases (GSE62232 and GSE151158) and I have not problems with them. I don't know what is the problem with this database. and why I get this errors
Any help will be very appreciated