Open Rong-ao opened 3 months ago
getting the same error and confused as to what no gene with p.adj < 0.05
indicates
@Felix-Xie I tried to manually skip those 3 lines of codes in ent.toli()
to avoid this bug, which means that using all genes rather than filtered genes to calculate ROGUE index. It also works.
Actually this issue only occured in one cluster with high heterogeneity in my scRNA data, so I guess p.adj < 0.05
indicate the gene expression pattern in one cluster is too noisy than expectation.
I got an error
Error in expr[i, ] : subscript out of bounds
when I was trying to apply functionrogue()
to my cell clusters. I tried to traced what happened in this function and found an issue in functionent.toli()
. This function was used inrogue()
code:tmp.res <- ent.toli(tmp.res, tmp.matr, span = span, r = r, n = remove.outlier.n)
In
ent.toli()
, the issue was caused by code below:sig.gene <- ent %>% dplyr::filter(p.adj < 0.05) %>% dplyr::pull(Gene)
ng <- length(sig.gene)
expr <- expr[sig.gene,]
When I checktmp.res
of my cell cluster, I found there is no gene withp.adj < 0.05
, causingsig.gene
is an empty list and makeexpr[sig.gene,]
an error.So I have some questions here:
p.adj < 0.05
in a cluster? (I think they are not informative genes...right? I am a little bit confused about 'informative gene' actually.)ent.toli()
is to remove outlier cells before calculating ROGUE as you mentioned in code. Is that necessary?ent.toli()
step manually when I have this issue?Thanks for your help! :)