Skip to content

idekerlab/drugcell-web-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project was bootstrapped with Create React App, using the Redux and Redux Toolkit template.

Data Resources

The web-app requires a structured collection of JSON documents that represent the DrugCell Data. These are generated from DrugCell CX networks which are generated by DrugCell analysis.

Downloading CX Data

DrugCell networks should be organized in a single set on an NDEx server, accessible by a set UUID. The JSON summary of a network set is accessible via the following path:

http://public.ndexbio.org/v2/networkset/{setUUID}?accesskey={accessKey}

The accessKey is an optional sharing parameter if the network set is not public. This JSON summary can be saved in a file and used as input for the downloading script below:

./bin/download-networks.js http://public.ndexbio.org ./data/drug-cell-network-set.json ./data/networks/

This will download all of the networks into the ./data/networks/ directory. These networks must be pre-processed to identify individual paths in the network. The script for pre-processing is below:

./bin/build-indexes-and-paths.js ./data/networks/ ./data/public/data/drugs/

Note that the ./data/public/data/drugs/ directory must exist and be empty for this script to work.

Individual paths can be extracted from a single CX file using the following script:

./bin/build-paths.js ./data/networks/example-network.cx ./data/public/data/drugs/

Once the paths are generated, a final index of all drugs must be generated:

./bin/build-drug-index.js ./data/public/data/ ./data/public/data/drugs

Running and Building DrugCell Oracle

With the data directories filled with pre-computed paths and indexes, you can run the DrugCell Oracle web-app.

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

This app can be deployed, and is configured to use its own public/data directory to serve pre-computed paths and indexes.

See the section about deployment for more information.

yarn eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

yarn build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published