Skip to content

Conversation

@stemangiola
Copy link
Collaborator

No description provided.

…ameter for grouping. Implement is_range_slice_ungrouped_detected to handle range slices on ungrouped data, with corresponding tests to ensure correct behavior.

issue: #53
@stemangiola stemangiola requested a review from mblue9 October 25, 2025 05:23
@stemangiola stemangiola linked an issue Oct 25, 2025 that may be closed by this pull request
….by parameter for range slices on ungrouped data.
@stemangiola stemangiola requested a review from Copilot October 25, 2025 05:27
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

This PR adds support for the .by parameter in the slice() method for SummarizedExperiment objects and implements detection of ungrouped range slices to provide better error messages. The changes also update GitHub repository URLs and increment the package version.

Key Changes

  • Adds .by parameter support to the slice() method to enable per-operation grouping
  • Implements is_range_slice_ungrouped_detected() to detect and prevent range slicing on ungrouped data with helpful error messages
  • Updates GitHub repository references from stemangiola/tidySummarizedExperiment to tidyomics/tidySummarizedExperiment

Reviewed Changes

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

Show a summary per file
File Description
tests/testthat/test-is_range_slice_detected.R Comprehensive test suite for range slice detection and .by parameter handling
man/tidySummarizedExperiment-package.Rd Updated GitHub repository URLs to tidyomics organization
man/slice.Rd Added .by parameter documentation to slice method signature
R/utilities.R Implemented range slice detection logic and enhanced simulate_feature_sample_from_tibble() to support grouping columns
R/dplyr_methods.R Updated slice.SummarizedExperiment() to accept and pass through .by parameter
DESCRIPTION Version bump to 1.19.8 and RoxygenNote update to 7.3.3

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

Refactor is_range_slice_ungrouped_detected function to accept .data as the first argument for improved clarity. Update corresponding tests to reflect argument order change and ensure correct functionality with various input scenarios.
@stemangiola stemangiola requested a review from Copilot October 25, 2025 05:50
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

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


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

stemangiola and others added 2 commits October 25, 2025 16:22
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
@stemangiola stemangiola requested a review from Copilot October 25, 2025 05:57
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

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


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

@stemangiola stemangiola merged commit 7d03660 into master Oct 29, 2025
3 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.

slice using a range doesn't work on ungrouped data

2 participants