Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter.genes.by.cluster.expression error #195

Open
Junedays opened this issue Dec 1, 2022 · 0 comments
Open

filter.genes.by.cluster.expression error #195

Junedays opened this issue Dec 1, 2022 · 0 comments

Comments

@Junedays
Copy link

Junedays commented Dec 1, 2022

When we use the clusters and embedding information from seurat, if some of the clusters have only one cell, then, when we do the rna velocity following lines in this tutorial http://pklab.med.harvard.edu/velocyto/notebooks/R/DG1.nb.html

emat <- filter.genes.by.cluster.expression(emat,cluster.label,min.max.cluster.average = 0.5)
nmat <- filter.genes.by.cluster.expression(nmat,cluster.label,min.max.cluster.average = 0.05)

it might cause an error like : Error in base::rowMeans(x, na.rm = na.rm, dims = dims, ...) : 'x' must be an array of at least two dimensions.

To avoid this error, we could remove those clusters with only one cell .

Hope this could be fixed in the next version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant