Skip to content
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

[Feature Request]: Pre/post-processing mechanism with teal modules #1180

Closed
lcd2yyz opened this issue Mar 22, 2024 · 2 comments
Closed

[Feature Request]: Pre/post-processing mechanism with teal modules #1180

lcd2yyz opened this issue Mar 22, 2024 · 2 comments
Labels
core enhancement New feature or request

Comments

@lcd2yyz
Copy link
Contributor

lcd2yyz commented Mar 22, 2024

Feature description

Consider two workflow cases below

  1. Original dataset -> filter data via teal filter panel -> perform additional data processing, data manipulation, or calculation based on the filtered datasets -> summary/visualization with existing teal modules
  2. Original dataset -> filter data via teal filter panel -> summary/visualization with existing teal modules -> perform additional processing or formatting based on the analysis result returned from teal modules -> display in teal app

It will be a very useful feature to create a mechanism to allow customizable pre-processing of filtered data before entering teal modules or post-processing of data/results coming out of the teal modules.

Examples of potential use cases for pre-processing can be

  • Performing simulation or statistical bootstrapping on filtered datasets
  • Creating new variables on-the-fly based on filtered datasets
  • Flexible pooling and/or grouping based on user interaction
  • Passing-in additional data processing code to manipulate filtered datasets
  • Additional UI selectors different from the out-of-box teal modules

Examples of potential use cases for post-processing can be

  • Re-formatting of analysis results from teal modules
  • Performing additional derivations and calculation of analysis results
  • Extracting selective statistics from teal modules

Tasks:

  • [Research] Propose the design and PoC to fulfill the use case
  • Implementation
@lcd2yyz lcd2yyz added enhancement New feature or request core labels Mar 22, 2024
@chlebowa
Copy link
Contributor

It sounds like having a GUI to an interactive R session. This may be exceeding the scope of teal.

@gogonzo
Copy link
Contributor

gogonzo commented May 23, 2024

Consider two workflow cases below

I'm closing this issue in favour of two more specific.

  1. Original dataset -> filter data via teal filter panel -> perform additional data processing, data manipulation, or calculation based on the filtered datasets -> summary/visualization with existing teal modules

For the first item we have teal_transform_module insightsengineering/nestdevs-tasks#58 or the milestone https://github.com/insightsengineering/teal/milestone/7

  1. Original dataset -> filter data via teal filter panel -> summary/visualization with existing teal modules -> perform additional processing or formatting based on the analysis result returned from teal modules -> display in teal app

Second one is called "output decorator" #1384

@gogonzo gogonzo closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants