-
Notifications
You must be signed in to change notification settings - Fork 104
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
recovering all genes for subsets #168
Comments
Why not just |
Thanks for your quick response! |
|
Okay. It makes sense to me. I just want to make sure I didn't miss any magical function to could accomplish this. Thank you very much again! |
Hi,
Thanks for the great package!
I would like to perform scvelo on a subset. To do that, I clustered my data with highly variable genes and subset the cluster of interest. At this point, the vars only contain the hvgs, and so I usually do the following to recover all the genes for reclustering:
T_cells = adata[adata.obs.louvain.str.contains('T cells')] T_cells=sc.AnnData(T_cells.raw.X,obs=T_cells.obs,var=T_cells.raw.var)
However, this approach does not recover the 'layers' (spliced/unspliced). Is there an easy way to do this that I missed?
Thanks again!
The text was updated successfully, but these errors were encountered: