# SARS-CoV-2-Variant-Browser **Repository Path**: mirrors_ibm/SARS-CoV-2-Variant-Browser ## Basic Information - **Project Name**: SARS-CoV-2-Variant-Browser - **Description**: This is SARS-CoV-2 Variant Browser Web Application Tool - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2025-08-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SARS-CoV-2 Variant Browser The SARS-CoV-2 Variant Browser is a web based application to explore and visualize SARS-CoV-2 variants, apply spatial, temporal and molecular filters, and view data statistics in an easy-to-use graphical interface. ## Prerequiste - `Node.js` is required to prepare data and launch application server. - `Python3` is required to prepare data. ## Getting Started First, clone project, install dependencies and build application with the following commands: ```bash git clone https://github.com/IBM/SARS-CoV-2-Variant-Browser cd SARS-CoV-2-Variant-Browser npm install npm run build ``` ## Prepare Data Before exploring variant data with application, data preparation is necessary. We introduce two properties `version` and `dataset` to manage data version and data set in folder and file names. Please follow the naming conventions to create foloder and files in each steps. 1. Obtain or create raw data You can obtain sample raw data files from [here](https://ibm.box.com/s/gyhcjo5fsx386h2bi3sdg23wb1z3ca52). Put raw data files in the following structures: ``` |-- |-- |-- clade__.tsv |-- cluster__.tsv |-- samples__.tsv |-- variant__.tsv |-- locations_.csv ``` 1. Create stat data from raw data Run the following command to generate stat files. Please note that the script requires numpy and pandas. ```bash python ./tools/StatViewTableProcess/Stat_View_Table_Process.py ``` Stat data will be generated in the following structures: ``` |-- |-- Stat- |-- 00_basic_infomation__.csv |-- 00_gene_variant__.csv |-- ... |-- 07_country_clade_week__.csv ``` 1. Create JSON data files from raw and stat data: Modify DATA_VERSION and DATA_SET environment variables in `.env` file to specify `version` and `dataset`, and run the following command to generate JSON data. ```bash npm run update-data variant ``` Or you can specify environment variables directly in the command line: ```bash DATA_VERSION=r42 DATA_SET=NCBI npm run update-data variant ``` JSON data to be used in the application will be generated in `./data/json` folder. ## Run Application Start server with the following command: ```bash npm start ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. Note that modify DEFAULT_DATA_SET environment variables in `.env` file to specify `dataset`. ## Run Application in Development Mode You can run the development server if you need to modify code for your own enhancement: ```bash npm run dev ``` ## License The SARS-CoV-2 Variant Browser is licensed under the Apache Software License, Version 2. The license's full text can be found in [LICENSE](LICENSE).