Skip to content

Provide R-related API services for DeepMAPS website.

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

aelhossiny/rDeepMAPS

Repository files navigation

deepmaps-api

Render and Deploy pkgdown Website R-CMD-check Project Status: WIP - Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

The package is the R API server for DeepMAPS website.

Installation

R package

library(devtools)
install_github("Wang-Cankun/iris3api@master")

Docker build

We split the package to 2 containers, as it can speed up the build and deployment time (40 min -> 5 min).

To build the docker image, enter project root directory first.

Base image

This base image contains all necessary for the package. Including plumber, Seurat, Signac, tidyverse, BioConductor suite (GenomicRanges, SingleCellExperiment, etc.)

# Build
docker build -f base.Dockerfile -t wangcankun100/deepmaps-api-base .

# Test what packages are installed
docker run wangcankun100/deepmaps-api-base

Client image

This client image builds upon the deepmaps-api-base image. It will only install the R package itself.

# Build
docker build --no-cache -f R-client.Dockerfile -t wangcankun100/deepmaps-r-client .
docker push wangcankun100/deepmaps-r-client

# Deploy
docker pull wangcankun100/deepmaps-r-client
docker run -d -v /var/www/nodejs/data/:/data --name deepmaps-r-client -p 8000:8000 wangcankun100/deepmaps-r-client
docker logs deepmaps-r-client
docker restart deepmaps-r-client

# Run
docker run --rm -p 8000:8000 wangcankun100/deepmaps-r-client
docker run -v /var/www/nodejs/data/:/data -p 8000:8000 wangcankun100/deepmaps-r-client

About

Provide R-related API services for DeepMAPS website.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages