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:
- entropy and incidence of total variants,
- relationship between entropy and total variants for k-mer positions of a viral protein,
- dynamics of diversity motifs for viral proteome,
- dynamics of diversity motifs for individual protein and
- 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).
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.
- Install “virtualenv” python application cmd package
$ sudo pip install virtualenv
- Create a new virtual environment in a folder called “python_env” within your project directory
$ virtualenv python_env
- Activate the virtualenv
# Windows
$ source python_env/Scripts/activate
- Verify that you have activated the correct version of Python (show show absolute path to your current working directory)
$ which python
- 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
- app.R : call ui.R and server.R
- ui.R: user interface (frontend)
- server.R: server side; deal with reactivity, calculations, plotting etc (backend)
- 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!)
The vDiveR documentation is available here!
Please leave a message on our GitHub Issues or contact Asif M. Khan ([email protected]).
The following individuals have contributed code to vDiveR:
- Pendy Tok
- Li Chuin Chong
- Evgenia Chikina