-
Notifications
You must be signed in to change notification settings - Fork 910
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
subset(downsample= X) #3033
Comments
Hi,
|
Thanks for this, but I really want to understand more how the downsample function actualy works. If I have an input of 2000 cells and downsample to 500, how are te 1500 cells excluded? What pareameters are excluding these cells? Thanks |
downsample is an input parameter from Maximum number of cells per identity class, default is Inf; downsampling will happen after all other operations, including inverting the cell selection |
It's a closed issue, but I stumbled across the same question as well, and went on to find the answer. You can see the code that is actually called as such: It first does all the selection and potential inversion of cells, and then this is the bit concerning downsampling:
So indeed, it groups it into the identity classes (e.g. clusters or whichever idents are chosen), and then for each of those groups calls |
Can you tell me, when I use the downsample function, how does seurat exclude or choose cells?
Thanks
Chris
The text was updated successfully, but these errors were encountered: