This is the prototype version. See Bangladeshi version: https://github.com/mdabrarfaiyaj/bangladesh-dengue-variant-tracker
This guide will help you get the Dengue Variant Tracker Dashboard running on your system, even with limited RAM (4GB).
-
R (version 4.0 or higher)
- Download: https://cran.r-project.org/
- Verify installation: Open terminal/command prompt, type
R --version
-
RStudio (optional but recommended)
-
Git (for version control)
- Download: https://git-scm.com/downloads
- Verify:
git --version
-
Internet connection (for downloading sequences and packages)
# If using Git:
git clone <your-repo-url>
cd viral_tracker_dashboard
# Or download ZIP and extract, then navigate to folder# Make installation script executable (Mac/Linux)
chmod +x install_packages.R
# Run installation
Rscript install_packages.ROR in R/RStudio console:
source("install_packages.R")What this installs:
- CRAN packages: shiny, shinydashboard, ggplot2, dplyr, tidyr, plotly, DT
- Bioconductor: Biostrings, ShortRead, BSgenome
Troubleshooting:
- If package installation fails, try installing individually:
install.packages("shiny") # Repeat for each package
- For Bioconductor packages:
if (!require("BiocManager")) install.packages("BiocManager") BiocManager::install("Biostrings")
# Make script executable (Mac/Linux)
chmod +x download_data.sh
# Run download
./download_data.shWindows users: Right-click download_data.sh and open with Git Bash, or:
bash download_data.shWhat this does:
- Creates data folders
- Downloads dengue virus sequences from NCBI (or creates test dataset)
- Limits to 50 sequences for low-RAM systems
If download fails: The script includes sample test data. Alternatively:
- Visit: https://www.ncbi.nlm.nih.gov/labs/virus/
- Search: "Dengue virus"
- Download 10-50 sequences as FASTA
- Save to:
data/raw/dengue_sequences.fasta
Rscript qc_analysis.ROR in R/RStudio:
source("qc_analysis.R")What this does:
- Quality control filtering
- Motif pattern detection
- Generate visualizations
- Create processed datasets
Output files created:
data/processed/qc_summary.csv- Quality metricsdata/processed/motif_matches.csv- Detected motifsdata/processed/filtered_sequences.fasta- Clean sequencesplots/*.png- 4 visualization files
Rscript -e "shiny::runApp('app.R')"OR in R/RStudio:
shiny::runApp('app.R')What to expect:
- Browser window opens automatically
- Dashboard runs on http://127.0.0.1:XXXX
- Explore 6 interactive tabs
- Stop server: Press
Ctrl+Cin terminal or click stop in RStudio
- See dataset statistics at a glance
- View sequence length and GC content distributions
- Check top motifs found
- Detailed quality control metrics
- Base composition analysis
- Correlation plots
- Filter by specific motifs
- View match frequencies
- Explore position details
- Try this: Search for custom DNA patterns
- Example motifs:
ATG- Start codonCACAG- 5' UTR regionAATAAA- Poly-A signal
- Adjust mismatch tolerance for fuzzy matching
- Browse complete dataset
- Filter and sort
- Export to CSV
- Project information
- Methodology
- Citations
If you experience lag or crashes:
-
Use test dataset only:
- In
qc_analysis.R, ensureUSE_TEST_DATA <- TRUE(line 13)
- In
-
Close other applications:
- Close browsers, editors before running analysis
-
Process in batches:
- Comment out heavy visualizations temporarily
-
Use Google Colab (free cloud alternative):
# Upload files to Colab # Install packages in Colab environment # Run analysis there
-
Reduce sequence count:
- Edit
download_data.sh, changeseqnum=50toseqnum=10
- Edit
# Initialize repository (if not cloned)
git init
git add .
git commit -m "Initial commit - Dengue Variant Tracker"
# Create repository on GitHub, then:
git remote add origin https://github.com/yourusername/dengue-tracker.git
git push -u origin mainOption 1: shinyapps.io (Recommended)
- Sign up: https://www.shinyapps.io/
- Get token from account settings
- In R console:
library(rsconnect) rsconnect::setAccountInfo(name='yourname', token='YOUR_TOKEN', secret='YOUR_SECRET') rsconnect::deployApp()
- Share your live dashboard URL!
Option 2: Render as static HTML
# For non-interactive version
rmarkdown::render("analysis_report.Rmd") # Create Rmd first# Reinstall missing package
install.packages("package_name")
# Or for Bioconductor:
BiocManager::install("package_name")- Check you're in correct directory:
getwd()in R - Ensure scripts were run in order (download → analysis → dashboard)
- Check R console for error messages
- Verify all data files exist in
data/processed/ - Try clearing browser cache
- Reduce dataset size (use test_dengue.fasta only)
- Close other programs
- Restart R session:
.rs.restartR()in RStudio
- Use manual download instructions in script output
- Check internet connection
- Try sample test data (automatically created)
-
Add more analyses:
- Phylogenetic tree visualization
- Mutation rate calculations
- Serotype classification
-
Improve visualizations:
- Add more plot types
- Create animated transitions
- Export high-res figures
-
Expand dataset:
- Include more sequences (when RAM permits)
- Add other arboviruses (Zika, Chikungunya)
- Time series analysis
-
Write documentation:
- Create detailed methodology
- Add code comments
- Write blog post about findings
-
Present findings:
- Create presentation slides
- Submit to conferences
- Share on ResearchGate
- R Help:
?function_namein R console - Bioconductor: https://support.bioconductor.org/
- Shiny: https://shiny.posit.co/r/getstarted/
- This project: Open issue on GitHub
- R and packages installed
- Data downloaded
- Analysis completed successfully
- Dashboard launches in browser
- All tabs working
- Custom motif search functional
- GitHub repository created
- Dashboard deployed online
- LinkedIn post published
Congratulations! You now have a professional bioinformatics portfolio project! 🎉
For questions or improvements, feel free to contribute via GitHub pull requests.