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

Added intelligent subsampling module #48

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

atarashansky
Copy link

@atarashansky atarashansky commented Jul 23, 2021

I'll be adding random functions I've found to be very useful for single-cell RNA sequencing analysis data wrangling. If this stuff belongs in its on repo, let me know!

This module performs intelligent downsampling of datasets given one or two annotation vectors.

If given one annotation vector, the method simply samples a proportional amount of cells from each label. If given two annotation vectors, the method samples a proportional amount of cell types in annotation vector 2 present in each label from annotation vector 1.

This is useful if you have two kinds of labels that are not perfectly nested that you'd like to have proportionally represented in your subsample.

@atarashansky atarashansky requested a review from aopisco July 23, 2021 17:33
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

Successfully merging this pull request may close these issues.

1 participant