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

Data subsetting method #17

Closed
ahy1221 opened this issue Apr 6, 2018 · 8 comments
Closed

Data subsetting method #17

ahy1221 opened this issue Apr 6, 2018 · 8 comments

Comments

@ahy1221
Copy link

ahy1221 commented Apr 6, 2018

Is there a plan to add data subset method for extracting some particular cells for the anndata object ?

@falexwolf
Copy link
Member

What do you mean beyond subsetting via adata[my_cells] where my_cells could be any valid numpy indexing object?

@elfore
Copy link

elfore commented Apr 21, 2019

Do we have this method now? "subsetting via adata[my_cells] where my_cells could be any valid numpy indexing object"

@ivirshup
Copy link
Member

Does adata[my_cells] not work for you?

@elfore
Copy link

elfore commented Apr 25, 2019

It worked for me, thanks

@brianpenghe
Copy link

Does anyone know why adata[my_cells,:] stopped working?

@ivirshup
Copy link
Member

ivirshup commented Feb 26, 2020

@brianpenghe, could you elaborate on that? A traceback and versions would be useful.

@brianpenghe
Copy link

@brianpenghe, could you elaborate on that? A traceback and versions would be useful.

It seems that subsetting an anndata used to work by two methods:
adata[my_cells,:]
adata[my_cells]

But it seems that recently only the second method works, after I've already subsetted the anndata once.

@ivirshup
Copy link
Member

Hmm. I can't immediately reproduce that. Could you open a new issue and provide some more info there? Things like version numbers and the traceback. It'd be especially helpful if you could reproduce this with some randomly generated data or one of the example datasets.

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

5 participants