Skip to content

Shiny app that generates synthetic null data based off of work by Dr. Deepak Mav at Sciome

Notifications You must be signed in to change notification settings

combspk/SaNDGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synthetic and Null Data Generator (SaNDGen)

The Synthetic and Null Data Generator (SaNDGen) application is an R Shiny app developed by Parker Combs (NIH/NIEHS) and adapted from code by Deepak Mav, PhD (Sciome, LLC) with input from Scott Auerbach, PhD (NIH/NIEHS). Given an input file of a specific format (see ./examples/ subdirectory), the app can:

  • Generate some number N of synthetic null samples based off of the existing null samples only in the input file.
  • Generate some number N of synthetic null samples based off of the existing null samples only in the input file and randomly sample and categorize them into arbitrary dosage levels of size Mi ... Mj where Mi is the first defined dosage level and Mj is the last defined dosage level.
  • Generate some number N of synthetic null samples for each dosage level in the input file and randomly sample and categorize them into arbitrary dosage levels of size Mi ... Mj where Mi is the first defined dosage level and Mj is the last defined dosage level.

Usage

  1. First, click the "Browse..." button to open the file browser. Select one or more input files to upload to the app.

![Upload input files](https://github.com/combspk/SaNDGen/assets/148355901/18473ecb-e44c-4770-868c-6f23379c3aaf)
  1. Next, select the output mode.

![Specifying output mode](https://github.com/combspk/SaNDGen/assets/148355901/78ac738a-62fb-4352-a865-d54ceba00d94)
  1. For the Generate synthetic null control samples mode, you can set the number of synthetic samples option to determine the total number of original + synthesized samples to be output.

![Generate synthetic null samples options](https://github.com/combspk/SaNDGen/assets/148355901/9c4d0558-7701-4219-8e31-5d3abc63374d)
  1. For the Generate synthetic null control samples & create expression data files mode, you can set the following options:
  • number of synthetic samples - The total number of original + synthesized samples to be output.
  • number of expression data files - The number of output files to be created. Each output file will have a different sampling of the total samples specified in the number of synthetic samples.
  • dose input mode - How the dosage levels for each sample should be generated.
  1. For the Automatic generation dose input mode, you can set the following options:
  • Number of treatment groups (including D0) - The total number of dosage groups, including the null dosage group (dose = 0).
  • Number of replicates = D0 - The total number of samples per output file where dose = 0.
  • Number of replicates ≠ D0 - The total number of samples per output file where dose ≠ 0 (this is applied to each nonzero dose level).
  • Top dose - The maximum dose level to include in each output file.
  • Dose spacing - The spacing between each dose level.
  1. For the Manual input dose input mode, you can click the Add dose level button to specify a new dose level as well as the number of repetitions for each level.

![Options for automatic dose level spacing](https://github.com/combspk/SaNDGen/assets/148355901/cf4d473c-eb1f-4e9a-a9b0-b206311586ef)
![Options for manual dose level spacing](https://github.com/combspk/SaNDGen/tree/main/img/5.png?raw=true)
  1. For the Supplement existing data mode, you can configure the options similarly to the previous modes to generate new samples for each dose level given one or more input data file(s).

![Options for supplementing existing data](https://github.com/combspk/SaNDGen/assets/148355901/2fe236f6-7f1a-442d-abf9-11a109d13e07)
  1. Press the GO! button to start the sample generation process.

  2. Once the sample and file generation is complete, a new button will appear that allows you to download a .zip archive of the files generated.

About

Shiny app that generates synthetic null data based off of work by Dr. Deepak Mav at Sciome

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages