Adage is a tool that helps you explore gene expression data and discover new insights from machine learning models. This repository contains the code for the "front end", ie the web app itself. The "back end", where the model data is loaded and then provided to the web app, can be found here.
This app was built with the React framework. Specifically, it was created using Create React App, a template/starting point for making React apps with minimal setup.
To edit this source code, you'll likely need to understand some fundamentals of Git, GitHub, HTML, CSS, modern JavaScript, React, JSX, Redux, the Node environment.
If you want to make changes to the behavior of this app for your own purposes and you need help, you can contact the team. If you just want to suggest a change to us, you can create an issue in this repository.
Set up the necessary infrastructure:
- Install Git (the system that tracks changes to the app source code)
- Fork this repository, and clone it to your computer (so you have a local copy of the code to make your own changes to)
- Install Node.js (the environment that tests, builds, and packages the app)
- Install Yarn (the package manager that installs all the third party dependencies for the app)
- Pick and install your favorite command-line interface and text editor for your operating system
In your command line, navigate to the directory where you cloned the repository. All commands listed below should be run from there.
Install the app's package dependencies:
- Run
yarn install
. This may take several minutes.
Run a local test version of the app:
- Run
yarn start
. This will open a new browser tab with a live preview of the app. This command continuously watches for changes in the source code, and automatically updates the preview right in the browser. Pressctrl+c
(or something else, depending on your command line interface) to stop this live preview and run a different command.
Execute all included tests to see if any critical behavior of the app broke due to recent changes:
- Run
yarn test
. Like the previous command, this continuously watches for changes in the source code. Pressctrl+c
to stop the process and run a different command.
Build the app, ie make a bundled, optimized version of the app that can be put on a website:
- Run
yarn build
.