Skip to content

Update run_singleR_db with bug fix and test suite#67

Open
wong-nw wants to merge 9 commits into
mainfrom
iss_65_singleR_db
Open

Update run_singleR_db with bug fix and test suite#67
wong-nw wants to merge 9 commits into
mainfrom
iss_65_singleR_db

Conversation

@wong-nw

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

Copy link
Copy Markdown
Collaborator

Changes

  • Fixes adding cell ontology annotation to Seurat object
  • Adds unit test for run_singleR_db
  • Adds mouse test dataset to tests/testthat/helper-functions.R and tests/testthat/setup.R
  • Minor typo corrections in preprocess_sample.R
  • Minor adjustment to fetch_celldex_ref.R to use cache parameter

Issues

Fixes #65

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.

wong-nw and others added 3 commits June 4, 2026 11:46
Metadata assignment in Seurat object was failing due to vector name values being retained in `CL:****`  format after relabeling from ontology to cell type. Assigning as vector "un-names" the values and allows for addition to Seurat metadata
@github-actions github-actions Bot added the SCOT RepoName label Jun 10, 2026
@wong-nw wong-nw requested a review from kelly-sovacool June 11, 2026 13:38

@kelly-sovacool kelly-sovacool left a comment

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.

Comment thread R/fetch_celldex_ref.R
Comment thread R/run_singleR_db.R
Comment thread tests/testthat/helper-functions.R Outdated
mm_bm,
pattern = "^mt-"
)
mm_bm <- subset(

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.

which subset() function is being used? does it support using columns as variable names e.g. percent.mt? (see linting errors below)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It's using the base::subset function, from what I can tell. Following the link from within leads to the base function
https://satijalab.org/seurat/articles/essential_commands#subset-seurat-objects

Comment thread tests/testthat/helper-functions.R Outdated
wong-nw and others added 2 commits June 11, 2026 13:12
full boolean

Co-authored-by: Kelly Sovacool, PhD <kelly-sovacool@users.noreply.github.com>
Co-authored-by: Kelly Sovacool, PhD <kelly-sovacool@users.noreply.github.com>
@wong-nw

wong-nw commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator Author

It's smaller than the last dataset. It looks like an upstream failure for the other dataset. Let me dig into it

@kelly-sovacool

Copy link
Copy Markdown
Member

@wong-nw I noticed R CMD Check is failing on main right now too, possibly related? #68

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.

run_singleR_db.R fails on cell ontology

2 participants