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

proportional sketching #7444

Open
wants to merge 1 commit into
base: seurat5
Choose a base branch
from
Open

Conversation

inofechm
Copy link

I have added a parameter to the SketchData function which allows one to sketch a proportion of total cells per layer/dataset rather than a fixed ncells.
This is particularly useful if integrating multiple datasets that different vastly in size and where we want to sample these datasets proportionally. ie. if one dataset has 20 000 cells and another has 200 000 cells and prop.ncells=0.1 it sketches 2000 cells from first dataset and 20000 cells from the next.

@winner0809
Copy link

has this parameter been tested successfully? I run the following script but the end result just showed default setting of 5K from each RNA count layer was sketched rather than proportionally based on the cell number in each layer.

obj <- SketchData( object = obj, prop.ncells = 0.04, method = "LeverageScore", sketched.assay = "sketch" )

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.

None yet

2 participants