You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got an error Error in expr[i, ] : subscript out of bounds when I was trying to apply function rogue() to my cell clusters. I tried to traced what happened in this function and found an issue in function ent.toli(). This function was used in rogue() 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 check tmp.res of my cell cluster, I found there is no gene with p.adj < 0.05, causing sig.gene is an empty list and make expr[sig.gene,] an error.
So I have some questions here:
How should I understand no gene with 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.)
The function ent.toli() is to remove outlier cells before calculating ROGUE as you mentioned in code. Is that necessary?
Should I skip ent.toli() step manually when I have this issue?
Thanks for your help! :)
The text was updated successfully, but these errors were encountered:
@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 check
tmp.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! :)
The text was updated successfully, but these errors were encountered: