insightsengineering / teal

Exploratory Web Apps for Analyzing Clinical Trial Data
https://insightsengineering.github.io/teal/
Other
168 stars 33 forks source link

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

Closed lcd2yyz closed 1 month ago

lcd2yyz commented 3 months ago

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

Examples of potential use cases for post-processing can be

Tasks:

chlebowa commented 3 months ago

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

gogonzo commented 1 month ago

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 https://github.com/insightsengineering/nestdevs-tasks/issues/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" https://github.com/insightsengineering/teal.modules.clinical/issues/1187