-
Notifications
You must be signed in to change notification settings - Fork 152
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
anndata - deleting specific row #73
Comments
Checkout the basic tutorial. What you want specifically is
Or you can also do
where Depending on the scenario, one or the other will be more convenient. PS: AnnData stores observations as rows and variables as columns as common in machine learning, statistics and Python, but opposite to the genomics convention. |
I ran the above solution, only to get memory error, I am running 64 bit python, is there a way to delete a row based on observation value? essentially |
No, sorry, there is no way to delete a row as storage is in contiguous arrays. |
How come you are getting a memory error from the above? Are you dealing with a huge matrix on a machine with very little memory? |
you can do like this: |
Hi there,
Sorry for the simple question, but I just started using anndata within Scanpy and was wondering: is there a way to remove a specific row? Something like
(It is to remove some mitochondrial genes)
Thank you!
The text was updated successfully, but these errors were encountered: