Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

nathandunn/XenaAnalysisService

Repository files navigation

XenaAnalysisService

Setup

  install.packages("BiocManager")
  install.packages("plumber")
  install.packages("viper")
  install.packages("Rook")

Analysis

Rscript transform_tpm_to_gene_set_activity.R ./Xena_manual_pathways.gmt ./TCGA-CHOL_logtpm_forTesting.tsv ./test_outfile.tsv BPA

Rscript analysis-wrapper.R  ./test-data/Xena_manual_pathways.gmt ./test-data/TCGA-CHOL_logtpm_forTesting.tsv ./test-data/test_outfile.tsv 

Server

  Rscript analysis-server.R
  curl -v -F tpmdata=@test-data/TCGA-CHOL_logtpm_forTesting.tsv -F gmtdata=@test-data/Xena_manual_pathways.gmt http://localhost:8000/bpa_analysis

Web Server

Uses plumber: https://www.rplumber.io/

install.packages("plumber")

Run server:

Rscript server.R

Test:

curl "http://localhost:8000/echo
curl "http://localhost:8000/echo?msg=hello
curl --data "a=4&b=3" "http://localhost:8000/sum"
curl --data '{"a":4, "b":5}' http://localhost:8000/sum

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published