Skip to content

viral protein Diversity dynamics Visualization in R (vDiveR) R Shiny Application

License

Notifications You must be signed in to change notification settings

pendy05/vDiveR_RShiny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vDiveR (viral protein Diversity dynamics visualization in R)

vDiveR is a graphical user interface (GUI)-based web application hosted on R Shiny for the visualization of various diversity dynamics. The application allow users to visualize the diversity motifs (index and its variants – major, minor and unique) for elucidation of the underlying inherent dynamics. vDiveR presents a total of eight tabs: 1) homepage, 2) data description, with tabs 3) to 7) presenting five plots depicting sequence variability dynamics and lastly 8) help page tab. vDiveR generates five plots for k-mer positions of a viral protein/proteome:

  1. entropy and incidence of total variants,
  2. relationship between entropy and total variants for k-mer positions of a viral protein,
  3. dynamics of diversity motifs for viral proteome,
  4. dynamics of diversity motifs for individual protein and
  5. distribution of conservation levels (completely conserved, highly conserved, mixed variable, highly diverse, and extremely diverse) of k-mer positions for viral proteome and protein(s).

Figure: Overview of the vDiveR R shiny app. vDiveR consists of eight tabs where each tab includes a brief description of the implemented functionalities. Users must provide either an aligned sequence file or a DiMA JSON output file in tab 2 to initiate the visualization of dynamics in sequence change in the form of plots presented in tabs 3 to 7.

Table of Contents

Background

Viruses are one of the main contributors to the global burden of infectious-related mortality and disability. Sequence diversity, as a result of various evolutionary forces, challenges the design of diagnostic, prophylactic and therapeutic interventions against viruses. A publicly available tool, Diversity Motif Analyser (DiMA), has been developed to facilitate the dissection of protein sequence diversity dynamics for viruses, the understanding of which is critical to develop effective intervention strategies. DiMA quantifies the sequence diversity using Shannon’s entropy for each aligned overlapping k-mer positions, distributes the k-mers into four diversity motifs (index, major, minor and unique) and stores this information in JSON format. However, interpretation and analysis of data stored in JSON data might be a challenging task to biologists who have limited or no knowledge of bioinformatics or programming background. Herein, we present vDiveR, a DiMA wrapper implemented as a web-based application, hosted on R Shiny server, to ease the visualization of outputs from DiMA.

Local Setup

Requirement: Python Virtual Environment

  1. Install “virtualenv” python application cmd package
$ sudo pip install virtualenv
  1. Create a new virtual environment in a folder called “python_env” within your project directory
$ virtualenv python_env
  1. Activate the virtualenv
# Windows
$ source python_env/Scripts/activate
  1. Verify that you have activated the correct version of Python (show show absolute path to your current working directory)
$ which python
  1. Install the numpy & dima-cli python package (NOTE: numpy is a must download package as it is required for reticulate to move data between R and Python)
$ pip install numpy dima-cli==4.1.1 pandas typing-extensions

vDiveR Contents

Scripts

  • app.R : call ui.R and server.R
  • ui.R: user interface (frontend)
  • server.R: server side; deal with reactivity, calculations, plotting etc (backend)

Folders

  • www/: consists of images and sample dataset
  • R/: consists of R functions embedded as part of vDiveR
  • R-individual-scripts/: consists of individual R scripts used for producing plots and table in vDiveR (Note: similar content as R/ but if you would like to access the R functions independently without using the vDiveR web server, please refer to scripts in this folder!)

Bug or Questions

Please leave a message on our GitHub Issues or contact Asif M. Khan (asif@perdanauniversity.edu.my).

Authors

The following individuals have contributed code to vDiveR:

  • Pendy Tok
  • Li Chuin Chong
  • Evgenia Chikina

About

viral protein Diversity dynamics Visualization in R (vDiveR) R Shiny Application

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •