Skip to content

Refactor filtering method to be case-insensitive#72

Open
wong-nw wants to merge 6 commits into
mainfrom
filter_cells_patch
Open

Refactor filtering method to be case-insensitive#72
wong-nw wants to merge 6 commits into
mainfrom
filter_cells_patch

Conversation

@wong-nw

@wong-nw wong-nw commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Changes

Minor bug fix to filter_cells.R to permit case-insensitivity on filtering method when using function manually

Issues

No issue opened

PR Checklist

(Strikethrough any points that are not applicable.)

  • This comment contains a description of changes with justifications, with any relevant issues linked.
  • [ ] Write unit tests for any new features, bug fixes, or other code changes.
  • [ ] Update the docs if there are any API changes (roxygen2 comments, vignettes, readme, etc.).
  • [ ] Update NEWS.md with a short description of any user-facing changes and reference the PR number. Follow the style described in https://style.tidyverse.org/news.html
  • Run devtools::check() locally and fix all notes, warnings, and errors.
  • R-CMD-check succeeds on the most recent user commit.

Update to filter_cells.R to permit case-insensitivity on filtering method when using function manually
@github-actions github-actions Bot added the SCOT RepoName label Jun 16, 2026
@wong-nw wong-nw requested a review from kelly-sovacool June 18, 2026 17:21
@wong-nw wong-nw marked this pull request as ready for review June 18, 2026 17:21
Comment thread R/filter_cells.R
)] <- "keep"
} else {
warning(
"No valid filtering method selected. All cells with nFeature_RNA > 200 retained"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't hard-code this number

Suggested change
"No valid filtering method selected. All cells with nFeature_RNA > 200 retained"
glue::glue("No valid filtering method selected. All cells with nFeature_RNA > {nFeature_RNA_min} retained")

p.s. is this statement in the warning message accurate? I don't see any filtering logic, so it looks like all cells are kept?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

SCOT RepoName

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants