Skip to content

Improve error handling and clarity. Updated parameter handling to use… #223

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

Merged
merged 5 commits into from
Jul 21, 2025

Conversation

stemangiola
Copy link
Collaborator

… quosures and enhanced the error message for inconsistent factor values across samples.

… quosures and enhanced the error message for inconsistent factor values across samples.
@stemangiola stemangiola requested a review from Copilot July 19, 2025 06:32
@stemangiola stemangiola linked an issue Jul 19, 2025 that may be closed by this pull request
Copilot

This comment was marked as outdated.

…and refining data processing steps. Added group_by and summarise imports, and improved handling of factor variables in check_sample_consistency_of_factors function.
…Added n_distinct and all_of to enhance data processing capabilities.
@stemangiola stemangiola requested a review from Copilot July 20, 2025 00:58
Copy link
Contributor

@Copilot 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

This PR improves error handling and parameter consistency in the check_sample_consistency_of_factors function. The changes focus on updating parameter handling to use quosures properly and providing more detailed error messages when factor values are inconsistent across samples.

  • Updated parameter handling from enquo-based to sym-based for consistency with main methods
  • Enhanced error message formatting to provide specific details about conflicting factor values
  • Added new dplyr imports to support improved data processing logic

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
R/validation.R Refactored check_sample_consistency_of_factors function with improved parameter handling and detailed error reporting
R/sccomp_estimate.R Updated function call to pass string parameters instead of quosure expressions
NAMESPACE Added imports for new dplyr functions used in the validation logic
DESCRIPTION Version bump from 2.1.16 to 2.1.17

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@stemangiola stemangiola merged commit b9f6230 into master Jul 21, 2025
10 checks passed
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.

sccomp says: your factor(s) is(are) mismatched across samples
1 participant