| Overview | Start Page |
|---|---|
![]() |
![]() |
Please go to “Reference” page to check the list of analysis functions for statistical and biological analysis in this package.
(Contains setup code for R, launching the web browser directly with an example dataset)
install.packages("remotes") # Skip this step if you already have "remotes" package
remotes::install_github("scottcalcalas/XZDBfunction")
library(XZDBfunction)
XZDB.Run() #Launch a demo (with example datasets)(Step-by-step setup instructions for R, and how to launch the database browser directly with example/your dataset)
?xzdb.help()
xzdb.help() #Get protocols and setup instructions
# Transfer your datasets to the current folder, check everything is OK to run next step.
xzdb.input.all() #Build the database in current folder and copy them to R package.
# After this step, R always uses your own dataset instead of the example dataset
XZDB.Run() # launches browser; if you already ran xzdb.input.all(), it will use your own dataset instead of the example dataset
XZDB.Run(use_current = T) # Froce to run in current path. Require setup datasets in current path piror. Easy to modify and checking the database files.Please click on the following Protocols to view detailed instructions.
Go to the Search tab to obtain detailed search results.
Supported search options:
(Family search: seaching for gene/proteins start with the same letters but haveing different numbers at end. NCBP2 family search will also includes NCBP1.)
(Fuzzy search: use threshold of 0.1 to have a very permissive, broad search.)
Example: exact searching CDK13 and NCBP2 returns all matching rows for either CDK13 or NCBP2 across all datasets.
The app generates three files to “Output” automatically:

Each line represents a row found in our current database, with that database’s description at the beginning.
Use the Check function to: - See which datasets include a specific gene
- Confirm if the gene exists in the database

At the Data info tab, use “Load Data info” button to view dataset metadata and structure.

Open the Output files tab to: - Preview a result file (using the red Preview Selected button)
- Download results (using the Download button in each row)
Note:
Not all outputs can be previewed.
The output folder should be cleared monthly to prevent slowdowns—please save results you want to keep in other folders.

(Optional — Administrator Operation locate at left panel)
After update new datasets folder and datasets information:
datasets/ folderDatasets information.xlsxRun “Rebuild EVERYTHING” at Administrator Operations in the left panel:
Use the “Delete ALL Output files” button to clean the output folder. It’s recommand every month to ensure the browser won’t be slow to run. (It will load the entire output folder in the Output tab everytime.
If you find some issue when you’re using the database browser, check the “Logs” at the bottom of left panel.

Requires an internet connection.
If you search from current result: 
If you type the ID: 
The summary table and the Venn diagram will be like: 
(For package user to setup database inside R)
To use helper to create your own dataset, run:
xzdb.help()
xzdb.input.all() # Run this after modifying the copied filesSynchronize all datasets and index files(include Datasets information.xlsx) into the package shinyapp directly
xzdb.sync.to.shinyapp() #No need to run if you already run xzdb.input.all()Get the currently used datasets inside the package location (If you want to confirm it’s copied successfully)
xzdb.nowDataset() #It copies current using datasets to your working pathExample package storage location, inside R package:
After those steps, start the browser and run “Rebuild EVERYTHING” at Administrator Operations.
(If you want to use it as one click, instead of opening R)
To make a quick start R file, put these two lines:
For example, it can be called Quick_Start.R. The next step is just setting up to run this file using R (not RStudio).
(Check examples at Appendix)
On Windows:
A desktop shortcut can automatically launch the Genomic DB Browser, as long as R is installed.
On Mac:
App_Info folder.
On the first run, the script will automatically install any missing R packages.
Once installation finishes, the app will open in your browser automatically.
Modify the shortcut Target to point to Rscript and your Quick Start script: (For example:)
C:\Users\jcc1885\AppData\Local\Programs\R\R-4.4.3\bin\Rscript.exe "R:\Basic_Sciences\Pharm\Borden_Lab\borden\Database\Genomic result Browser\Quick Start.R"