inst/shiny/README_Shiny.md

ZetaSuite Shiny Application

A comprehensive web-based interface for the ZetaSuite R package, providing an intuitive way to analyze high-throughput screening data and perform single-cell RNA-seq quality control.

Features

Analysis Modules

1. Quality Control Analysis

2. Z-score Normalization

3. Event Coverage Analysis

4. Zeta Score Calculation

5. SVM Analysis

6. FDR Cutoff Analysis

7. Single Cell Quality Control

Installation

Prerequisites

Make sure you have R installed (version 3.6 or higher) and the following packages:

# Install required packages
install.packages(c("shiny", "shinydashboard", "DT", "plotly", "shinyjs"))

# Install ZetaSuite package dependencies
install.packages(c("RColorBrewer", "Rtsne", "e1071", "ggplot2", "reshape2", 
                   "gridExtra", "mixtools"))

Setup

  1. Install the ZetaSuite package
  2. Place the app.R file in your working directory
  3. Run the Shiny application

Usage

Starting the Application

# Load the ZetaSuite package
library(ZetaSuite)

# Run the Shiny app
shiny::runApp("app.R")

Quick Start with Example Data

  1. Load Example Data: Click the "Example Data" tab and press "Load Example Data"
  2. Quality Control: Go to the "Quality Control" tab and run QC analysis
  3. Z-score Analysis: Calculate normalized Z-scores
  4. Event Coverage: Generate event coverage analysis
  5. Zeta Score: Calculate regulatory effect scores
  6. FDR Cutoff: Determine optimal thresholds
  7. Hit Selection: Select significant hits based on Screen Strength
  8. Download Results: Export all analysis results

Using Your Own Data

Data Format Requirements

  1. Count Matrix (CSV):
  2. Rows: Genes/siRNAs
  3. Columns: Readouts/conditions
  4. First column should contain gene/siRNA identifiers
  5. Example: Gene,Readout1,Readout2,Readout3 Gene1,10.5,12.3,8.9 Gene2,15.2,14.1,16.7

  6. Negative Control Genes (CSV):

  7. First column: Gene/siRNA identifiers matching count matrix
  8. Example: Gene NegCtrl1 NegCtrl2 NegCtrl3

  9. Positive Control Genes (CSV):

  10. First column: Gene/siRNA identifiers matching count matrix
  11. Example: Gene PosCtrl1 PosCtrl2 PosCtrl3

  12. Non-expressed Genes (CSV, optional):

  13. First column: Gene/siRNA identifiers matching count matrix
  14. Used for FDR cutoff analysis

Single Cell Data

Single Cell Count Matrix (CSV): - Rows: Cells - Columns: Genes - First column should contain cell identifiers - Example: Cell,Gene1,Gene2,Gene3 Cell1,5,0,12 Cell2,0,8,3 Cell3,15,2,0

Analysis Workflow

  1. Data Upload: Upload your data files in the "Data Upload" tab
  2. Quality Control: Run QC analysis to assess data quality
  3. Z-score Analysis: Normalize your data using negative controls
  4. Event Coverage: Calculate event coverage across thresholds
  5. Zeta Score: Compute regulatory effect scores
  6. SVM Analysis (optional): Generate decision boundaries
  7. FDR Cutoff: Determine optimal thresholds
  8. Hit Selection: Select significant hits based on Screen Strength
  9. Single Cell QC (if applicable): Quality control for single-cell data
  10. Results: Download all analysis results

Parameter Settings

Event Coverage Parameters

Zeta Score Parameters

FDR Cutoff Parameters

Single Cell QC Parameters

Example Dataset

The application includes the HTS2 screening dataset from the ZetaSuite package:

This dataset demonstrates the complete analysis workflow and can be used to explore the application's features.

Output Files

The application generates several output files:

  1. Z-score Results: Normalized Z-score matrix
  2. Zeta Scores: Regulatory effect scores for each gene
  3. FDR Results: Cutoff thresholds and Screen Strength values
  4. Selected Hits: Genes identified as significant based on Screen Strength
  5. Single Cell Results: Cell quality scores and cutoff values

Interactive Features

Troubleshooting

Common Issues

  1. Package Not Found: Make sure all required packages are installed
  2. Data Format Errors: Ensure CSV files have correct column headers and data types
  3. Memory Issues: For large datasets, consider reducing the number of bins or filtering data
  4. SVM Analysis Fails: Ensure you have sufficient positive and negative control samples

Performance Tips

Error Messages

Advanced Usage

Custom Analysis Workflows

The application supports custom analysis workflows:

  1. SVM Background Correction: Enable SVM analysis for improved accuracy
  2. Separate Direction Analysis: Analyze decrease and increase directions separately
  3. Custom Thresholds: Adjust Screen Strength thresholds for different sensitivity/specificity trade-offs
  4. Batch Processing: Process multiple datasets by uploading different files

Integration with R Scripts

The Shiny app can be integrated with custom R scripts:

# Load results from Shiny app
zscore_results <- read.csv("zscore_results.csv", row.names = 1)
zeta_results <- read.csv("zeta_scores.csv", row.names = 1)

# Continue with custom analysis
# ...

Support

For issues related to the ZetaSuite package functionality, please refer to the main package documentation. For Shiny app-specific issues:

  1. Check the R console for error messages
  2. Ensure all dependencies are properly installed
  3. Verify data format requirements
  4. Check the troubleshooting section above

References

License

This Shiny application is provided under the same license as the ZetaSuite package (MIT + file LICENSE).



Try the ZetaSuite package in your browser

Any scripts or data that you put into this service are public.

ZetaSuite documentation built on Nov. 5, 2025, 6:37 p.m.