iTALK
iTALK copied to clipboard
Error: `order` should contain names of all sectors. when running LRPlot with DEG datatype
Hello,
I am trying to run differential expression between Tumor and Tcells LR pairs but am getting
Error: order should contain names of all sectors
I have converted my matrix numeric values to integers (although I received the error before converting as well)
The DEG commands I am running are
deg_Tumor<-DEG(data %>% filter(cell_type=='Tumor'),method='monocle',contrast=c("grouped_pd","grouped_pr")) deg_Tcells<-DEG(data %>% filter(cell_type=='T-cells'),method='monocle',contrast=c("grouped_pd","grouped_pr"))
When I run the for loop line by line I get the above error when running
LRPlot(res_cat_1[1:20,],datatype='DEG',cell_col=cell_col,link.arr.lwd=res_cat$cell_from_logFC[1:20],link.arr.width=res_cat$cell_to_logFC[1:20])
the first comm_type is the "growth factor" and the resulting res_cat matrix has these rows:
Additionally, my DEG objects contain NaNs and -Inf
How does iTALK create these NaNs and NAs? How does iTALK consider the -Infs when running differential expression? Do I need to convert these to a minimum integer value?
I have similar error after I delete some rows from the matrix:
Error: `order` should contain names of all sectors.
In addition: Warning message:
Since you have set `order`, you should better set `grid.col` as a named vector where
sector names are the vector names (should contain all sectors).
try "highly_exprs_genes$cell_type<-as.character(highly_exprs_genes$cell_type) "