Skip to content

Conversation

@marohrdanz
Copy link
Contributor

This pull request implements the "Selections from R" feature request.

This allows users to select row/column labels when creating an NG-CHM that will be visible in the NG-CHM viewer.

Usage documentation and examples are in the panel_configuration constructor documentation.

All tests pass, and R CMD CHECK --as-cran yields no issues.

This allows users to select row/column labels when creating an NG-CHM
that will be visible in the NG-CHM viewer.

Usage documentaiton and examples are in the panel_configuration
constructor documentation.
@marohrdanz marohrdanz requested a review from Copilot July 7, 2025 17:21
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 specifying panel selections by row/column labels and converts them to indices for the NG-CHM viewer.

  • Introduces selections parameter throughout panel_configuration classes, methods, and documentation.
  • Implements label-to-index conversion via convertPanelSelectionsFromLabelToIndex, plus file‐reading helpers.
  • Adds tests covering hclust, dendrogram, and label-based selection conversion.

Reviewed Changes

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

Show a summary per file
File Description
tests/testthat/test-selections.R New tests for converting label-based selections to indices
man/panel_configuration.Rd Updated constructor docs to include selections and usage examples
man/panel_configuration-class.Rd Added selections slot documentation
man/default_panel_configuration.Rd Removed outdated default config docs
R/panelFunctions.R Made default_panel_configuration internal and added default selections
R/panelClasses.R Added selections slot and constructor argument to class
R/allMethods.R Added convertPanelSelectionsFromLabelToIndex and hooked into chmMake
R/ngchmshaidy.R Added getLabelsFromFile and getDendrogramOrderFromFile helpers
NAMESPACE Removed export of default_panel_configuration
Comments suppressed due to low confidence (1)

man/panel_configuration.Rd:45

  • [nitpick] This sentence is duplicated; remove one occurrence to avoid redundancy in the documentation.
Each element must be a detailMap, summaryMap, or pluginPane object.

Copy link
Member

@bmbroom bmbroom left a comment

Choose a reason for hiding this comment

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

Adds an important capability to the NGCHM R package as discussed in weekly NG-CHM meeting.

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.

2 participants