motifSimulationApp: motifSimulationApp: A Shiny-Based GUI for Motif Simulation

View source: R/shiny.R

motifSimulationAppR Documentation

motifSimulationApp: A Shiny-Based GUI for Motif Simulation

Description

The 'motifSimulationApp' is a Shiny-based graphical user interface (GUI) designed to simplify the execution of the 'motifSimulation' functions. The app allows users to interact with all motif simulation features in an intuitive and user-friendly manner, offering a seamless experience for generating and analyzing synthetic functional data with embedded motifs. It consistently provides summary plots to enhance data visualization and facilitate analysis.

Usage

motifSimulationApp(noise_str, mot_details)

Arguments

noise_str

A list corresponding to the number of motifs, specifying the noise structure to be applied to each motif. Users can choose between two noise types:

  • 'pointwise' Allows the specification of noise as a list of vectors or matrices. Each element of the list defines the amount of noise applied pointwise to the corresponding motif.

  • 'coeff' Enables the specification of noise in terms of coefficients, where a list of individual values or vectors can be provided to define the noise level for each motif.

mot_details

A list outlining the specifications for the motifs to be embedded within the functional curves. Each motif is characterized by its:

  • length The length of the motif (number of points or time steps).

  • coefficients An optional set of coefficients that can be provided to define the motif’s shape.

  • occurrences The number of occurrences of each motif within the curves. These can be specified by exact positions within the curves or by providing a total count of occurrences, in which case the algorithm will randomly assign the positions.

Details

The app provides an accessible platform for users to experiment with different motif definitions, noise structures, and curve characteristics. By interacting with the app, users can simulate functional data, visualize the results in real-time, and adjust the parameters accordingly to fine-tune the simulation process.

Value

A shiny app representing the simulated curves.

Examples


# Launch the motifSimulationApp with specified noise structure and motif details
funMoDisco::motifSimulationApp(noise_str, mot_details)



funMoDisco documentation built on April 16, 2025, 1:10 a.m.