Closed pariaaliour closed 2 months ago
I also get error when I follow step by step approach:
# Only calculate DE for als condition, with genes that are in the ligand-receptor network
DE_table <- FindAllMarkers(subset(seuratObj, subset = group_id == "als"),
min.pct = 0, logfc.threshold = 0, return.thresh = 1,
features = unique(unlist(lr_network_filtered)))
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 'rowSums': subscript out of bounds
Thank you for your help in advance! Paria
Hi,
Can you check that all of the genes in unique(unlist(lr_network_filtered)))
exist in your expression data?
Below I show an example of giving random feature names using the example data, which returns a similar error:
> DE_table <- FindAllMarkers(subset(seuratObj, subset = aggregate == "SS"),
min.pct = 0, logfc.threshold = 0, return.thresh = 1,
features = c("aa", "bb", "cc"))
Calculating cluster CD8 T
Calculating cluster CD4 T
Calculating cluster Treg
Calculating cluster B
Calculating cluster NK
Calculating cluster Mono
Calculating cluster DC
Warning: No DE genes identified
Warning: The following tests were not performed:
Warning: When testing CD8 T versus all:
error in evaluating the argument 'x' in selecting a method for function 'rowSums': subscript out of bounds
Warning: When testing CD4 T versus all:
error in evaluating the argument 'x' in selecting a method for function 'rowSums': subscript out of bounds
Warning: When testing Treg versus all:
error in evaluating the argument 'x' in selecting a method for function 'rowSums': subscript out of bounds
Warning: When testing B versus all:
error in evaluating the argument 'x' in selecting a method for function 'rowSums': subscript out of bounds
Warning: When testing NK versus all:
error in evaluating the argument 'x' in selecting a method for function 'rowSums': subscript out of bounds
Warning: When testing Mono versus all:
error in evaluating the argument 'x' in selecting a method for function 'rowSums': subscript out of bounds
Warning: When testing DC versus all:
error in evaluating the argument 'x' in selecting a method for function 'rowSums': subscript out of bounds
Thanks for your reply!
When I checked the unique(unlist(lr_network_filtered))
I noticed that the column names are printed with genes name. When I removed them it worked.
Thank you for your help!
Dear Saeyslab team, I am running nichener for my single cell analysis. I would like to prioritize the ligand-receptor pairs. However, I am getting an error. as below. Not sure if it's a bug or I am doing sth by mistake.
Cluster_id and group_id cluster are correctly defined. Not sure why it returns an error.
I really appreciate your help on this! Paria