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

Skip groups with fewer than default min.cells.group (Fixes #1971) #5079

Merged
merged 3 commits into from
Oct 28, 2021

Conversation

yamanq
Copy link
Contributor

@yamanq yamanq commented Sep 14, 2021

Problem

The current behavior of FindConservedMarkers is the following:
If a group has exactly 0 cells in an Identity, it skips with a warning and no error. If a group has between 1 and min.cells.group (default=3) cells in an Identity, it errors due to ValidateCellGroups. I think a better behavior would be for it to also skip with a warning in this case.

Related issue: #1971

Implementation

I checked for the number of cells in ident.1 before continuing and created a warning for that case.

I have implemented this behavior in the best way I could, but I am not sure if there is a better solution. Thank you.

@saketkc saketkc self-assigned this Oct 8, 2021
@yamanq
Copy link
Contributor Author

yamanq commented Oct 27, 2021

Hi! Any updates on this?

@saketkc saketkc merged commit 13617d3 into satijalab:develop Oct 28, 2021
@saketkc
Copy link
Collaborator

saketkc commented Oct 28, 2021

Thanks for your contribution @yamanq!

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