Closed xliu38 closed 1 year ago
Hi @GeorgescuC,
To provide more information, I traced down the embedded functions to inferCNV_hidden_spike.R
and below is relevant to my question
normal_cells_idx_lists = infercnvobj@reference_grouped_cell_indices
normal_cells_idx = normal_cells_idx_lists[["B_cell"]]
normal_cells_expr = infercnvobj@expr.data[,normal_cells_idx]
gene_means_orig = rowMeans(normal_cells_expr)
Running these lines alone does not generate the error, but calling infercnv does.
Hope this is useful, Xueying
Problem solved - the error is actually due to gene names from gene expression file (all upper case) different from annotation file.
Hi @GeorgescuC,
Thank you for building the nice tool, and I have been successfully running it on multiple datasets for my project. This error occurred on a subset of my data, as copied below. I have read several posts with this similar error, and it seems that all the reference cells types in my subset have more than one cell (in fact, the B_cell that causes the error has 7 cells).
The script goes like this:
And here is the output and error messgae:
These 7 B_cell each has some read counts on the 18 genes (from step 2), makes me wonder what went wrong here.
Thanks in advance! Xueying