Skip to content

Warning message for reference SCT model counts correction#10329

Open
mccormickceci wants to merge 1 commit intomainfrom
fix/sct_reference_correct_counts
Open

Warning message for reference SCT model counts correction#10329
mccormickceci wants to merge 1 commit intomainfrom
fix/sct_reference_correct_counts

Conversation

@mccormickceci
Copy link
Contributor

Adding a warning message so that users know if they use a reference SCT model we will hard set do.correct.umi to FALSE. We do this since count correction across models is not statistically sound, but we will send a message so that users know their counts will not be corrected.

Copilot AI review requested due to automatic review settings March 13, 2026 19:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds user-facing notification in SCTransform.Assay when a reference.SCT.model is supplied, clarifying that UMI count correction is disabled in that mode.

Changes:

  • Emit a note when reference.SCT.model is provided and do.correct.umi is forced to FALSE.
  • Preserve existing behavior of disabling centering/count correction under reference-model usage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +4163 to +4165
message(
"NOTE:A reference SCT model was provided, therefore counts are NOT corrected (Regardless of argument passed to do.correct.umi)"
)
do.correct.umi <- FALSE
do.center <- FALSE
message(
"NOTE:A reference SCT model was provided, therefore counts are NOT corrected (Regardless of argument passed to do.correct.umi)"
@anashen anashen force-pushed the fix/sct_reference_correct_counts branch from 424e3b5 to cf00d76 Compare March 18, 2026 16:46
@anashen anashen linked an issue Mar 18, 2026 that may be closed by this pull request
Copy link
Member

@anashen anashen left a comment

Choose a reason for hiding this comment

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

@mccormickceci Thanks for the PR! Can you use warning instead of message? You can also remove the "NOTE:" prefix in the warning text.

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.

SCTransform with reference.SCT.model and UMI correction

3 participants